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

Public Member Functions

 TreeMultiItemNode (TreeMultiItemNode *parent, const wxString &caption=wxEmptyString, const wxString &name=wxEmptyString)
 
virtual TreeMultiItemNodeIsTreeMultiItemNode () const
 
void AddNode (TreeMultiItemBase *node)
 
void InsertNode (TreeMultiItemBase *NodePtr, size_t Position)
 
void Clear ()
 
void DeleteNode (TreeMultiItemBase *node)
 
void DeleteNode (int index)
 
TreeMultiItemBaseRemoveNode (TreeMultiItemBase *node)
 
TreeMultiItemBaseRemoveNode (int index)
 
int GetNodeCount () const
 
TreeMultiItemBaseGetNode (int index) const
 
int Index (TreeMultiItemBase *node, bool searchFromEnd=false) const
 
TreeMultiItemBaseGetNodeNext (int &cookie) const
 
TreeMultiItemBaseFirst () const
 
TreeMultiItemBaseLast () const
 
void Fold (bool expand)
 
const wxString & GetCaption () const
 
void SetCaption (const wxString &caption)
 
bool IsExpanded () const
 
- Public Member Functions inherited from TreeMultiItemBase
int GetType () const
 
TreeMultiItemNodeGetParent () const
 
wxString GetName () const
 
void SetName (wxString const &NewName)
 
virtual TreeMultiItemRootIsTreeMultiItemRoot () const
 
virtual TreeMultiItemWindowIsTreeMultiItemWindow () 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

◆ TreeMultiItemNode()

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

visual attributes of the node

TreeMultiItemNode This class is a container holder for multiple TreeMultiItemBase classes. Since both a TreeMultiItemNode and a TreeMultiItemWindow are a descendant from a TreeMultiItemBase class, it can hold multiple of these. In the case of a directory tree structure, it can hold multiple directories, and leafs (files).

Member Function Documentation

◆ Fold()

void TreeMultiItemNode::Fold ( bool  expand)
inline

Fold function sets or clears the expanded flag. Note when excluded from drawing, this will have no effect on redraw

◆ GetCaption()

const wxString & TreeMultiItemNode::GetCaption ( ) const
inline

Return caption

◆ IsExpanded()

bool TreeMultiItemNode::IsExpanded ( ) const
inline

Returns true if the node is expanded. Subnodes can still be collapsed though

◆ IsTreeMultiItemNode()

virtual TreeMultiItemNode * TreeMultiItemNode::IsTreeMultiItemNode ( ) const
inlinevirtual

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

Reimplemented from TreeMultiItemBase.

◆ SetCaption()

void TreeMultiItemNode::SetCaption ( const wxString &  caption)

Set caption


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