ToolMap
Loading...
Searching...
No Matches
TreeMultiItemWindow Class Reference
Inheritance diagram for TreeMultiItemWindow:
TreeMultiItemBase

Public Member Functions

 TreeMultiItemWindow (TreeMultiItemNode *parent, const wxString &name=wxEmptyString)
 
virtual TreeMultiItemWindowIsTreeMultiItemWindow () const
 
void AssignWindow (wxWindow *wnd)
 
wxWindow * GetWindow ()
 
void SetFrontSpacing (int frontSpacing)
 
int GetFrontSpacing () const
 
void SetTopSpacing (int topSpacing)
 
int GetTopSpacing () const
 
void SetHorizontalSpan (bool span)
 
bool GetHorizontalSpan () const
 
- Public Member Functions inherited from TreeMultiItemBase
int GetType () const
 
TreeMultiItemNodeGetParent () const
 
wxString GetName () const
 
void SetName (wxString const &NewName)
 
virtual TreeMultiItemRootIsTreeMultiItemRoot () const
 
virtual TreeMultiItemNodeIsTreeMultiItemNode () const
 
void SetExcluded (bool excluded)
 
void SetX (int x)
 
int GetX () const
 
void SetY (int y)
 
int GetY () const
 
void SetHeight (int height)
 
int GetHeight () const
 
void SetWidth (int width)
 
int GetWidth () const
 
bool IsVisible ()
 
bool IsExcluded () const
 
bool IsSelected (void) const
 
void Select (void)
 
void ToggleSelection (void)
 
void Unselect (void)
 

Additional Inherited Members

- Protected Member Functions inherited from TreeMultiItemBase
 TreeMultiItemBase (TreeMultiItemNode *parent)
 
- Protected Attributes inherited from TreeMultiItemBase
wxString _name
 
bool _excluded
 
int _type
 
int _x
 
int _y
 
int _width
 
int _height
 

Constructor & Destructor Documentation

◆ TreeMultiItemWindow()

TreeMultiItemWindow::TreeMultiItemWindow ( TreeMultiItemNode parent,
const wxString &  name = wxEmptyString 
)

TreeMultiItemWindow This class is a possible end node for the tree. If you want multiple types of end-nodes you should copy this file and adjust it with a different class name.

Member Function Documentation

◆ AssignWindow()

void TreeMultiItemWindow::AssignWindow ( wxWindow *  wnd)

Assigns the given window to this TreeMultiItemWindow, and also destroys the present window. If the assigned window is 0, this item is not drawn and removed from the tree visually

Todo:
This might need rivision for retaining the sizer size maybe we need to check whether size is <> 0,0 before get best size

◆ GetWindow()

wxWindow * TreeMultiItemWindow::GetWindow ( )
inline

Get window method

◆ IsTreeMultiItemWindow()

virtual TreeMultiItemWindow * TreeMultiItemWindow::IsTreeMultiItemWindow ( ) const
inlinevirtual

returns the instance pointer if the current node is a TreeMultiItemWindow, and nullptr when it's not.

Reimplemented from TreeMultiItemBase.


The documentation for this class was generated from the following files: