Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TreeCtrl » [solved] Can we get the private members of TreeCtrl made protected?
Re: Can we get the private members of TreeCtrl made protected? [message #44811 is a reply to message #44758] Thu, 02 July 2015 14:01 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Here is the list of things I need protected for my Paint:

protected:
	struct Item : Node {
		union {
			int            parent;
			int            freelink;
		};

		bool           free;
		bool           isopen;
		bool           sel;
		Vector<int>    child;
		int            linei;

		Size GetValueSize(const Display *treedisplay) const;
		Size GetCtrlSize() const;
		Size GetSize(const Display *treedisplay) const;

		Item() { isopen = false; linei = -1; parent = -1; canselect = true; sel = false; free = false; }
	};
	struct Line : Moveable<Line> {
		int  level;
		int  itemi;
		int  ll;
		int  y;
	};
	
	ScrollBars   sb;	
	Scroller     scroller;
	bool         nobg;
	int          levelcx;
	bool         noroot;
	Vector<Line> line;	
	Array<Item>  item;	
	int          dropitem, dropinsert;
	bool         highlight_ctrl;		
	int          cursor;
	bool         nocursor;
	bool         multiselect;
	
	const Display *display;
	
	int    FindLine(int y) const;
	const Display *GetStyle(int i, Color& fg, Color& bg, dword& st);


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Node id calculation after removal ?
Next Topic: Manually set option in OptionTree
Goto Forum:
  


Current Time: Sun Jun 02 08:38:33 CEST 2024

Total time taken to generate the page: 0.01513 seconds