Node for gui tree view. More...
#include <IGUITreeView.h>
Public Member Functions | |
virtual IGUITreeViewNode * | addChildBack (const wchar_t *text, const wchar_t *icon=0, s32 imageIndex=-1, s32 selectedImageIndex=-1, void *data=0, IReferenceCounted *data2=0)=0 |
Adds a new node behind the last child node. More... | |
virtual IGUITreeViewNode * | addChildFront (const wchar_t *text, const wchar_t *icon=0, s32 imageIndex=-1, s32 selectedImageIndex=-1, void *data=0, IReferenceCounted *data2=0)=0 |
Adds a new node before the first child node. More... | |
virtual void | clearChildren ()=0 |
removes all children (recursive) from this node More... | |
_IRR_DEPRECATED_ void | clearChilds () |
removes all children (recursive) from this node More... | |
virtual bool | deleteChild (IGUITreeViewNode *child)=0 |
Deletes a child node. More... | |
virtual u32 | getChildCount () const =0 |
returns the child item count More... | |
virtual void * | getData () const =0 |
returns the user data (void*) of this node More... | |
virtual IReferenceCounted * | getData2 () const =0 |
returns the user data2 (IReferenceCounted) of this node More... | |
virtual bool | getExpanded () const =0 |
Returns true if the node is expanded (children are visible). More... | |
virtual IGUITreeViewNode * | getFirstChild () const =0 |
Return the first child node from this node. More... | |
virtual const wchar_t * | getIcon () const =0 |
returns the icon text of the node More... | |
virtual u32 | getImageIndex () const =0 |
returns the image index of the node More... | |
virtual IGUITreeViewNode * | getLastChild () const =0 |
Return the last child node from this node. More... | |
virtual s32 | getLevel () const =0 |
Returns the level of this node. More... | |
virtual IGUITreeViewNode * | getNextSibling () const =0 |
Returns the next sibling node from this node. More... | |
virtual IGUITreeViewNode * | getNextVisible () const =0 |
Returns the next visible (expanded, may be out of scrolling) node from this node. More... | |
virtual IGUITreeView * | getOwner () const =0 |
returns the owner (tree view) of this node More... | |
virtual IGUITreeViewNode * | getParent () const =0 |
Returns the parent node of this node. More... | |
virtual IGUITreeViewNode * | getPrevSibling () const =0 |
Returns the previous sibling node from this node. More... | |
virtual bool | getSelected () const =0 |
Returns true if the node is currently selected. More... | |
virtual u32 | getSelectedImageIndex () const =0 |
returns the image index of the node More... | |
virtual const wchar_t * | getText () const =0 |
returns the text of the node More... | |
virtual bool | hasChildren () const =0 |
returns true if this node has child nodes More... | |
_IRR_DEPRECATED_ bool | hasChilds () const |
returns true if this node has child nodes More... | |
virtual IGUITreeViewNode * | insertChildAfter (IGUITreeViewNode *other, const wchar_t *text, const wchar_t *icon=0, s32 imageIndex=-1, s32 selectedImageIndex=-1, void *data=0, IReferenceCounted *data2=0)=0 |
Adds a new node behind the other node. More... | |
virtual IGUITreeViewNode * | insertChildBefore (IGUITreeViewNode *other, const wchar_t *text, const wchar_t *icon=0, s32 imageIndex=-1, s32 selectedImageIndex=-1, void *data=0, IReferenceCounted *data2=0)=0 |
Adds a new node before the other node. More... | |
virtual bool | isRoot () const =0 |
Returns true if this node is the root node. More... | |
virtual bool | isVisible () const =0 |
Returns true if this node is visible (all parents are expanded). More... | |
virtual bool | moveChildDown (IGUITreeViewNode *child)=0 |
Moves a child node one position down. More... | |
virtual bool | moveChildUp (IGUITreeViewNode *child)=0 |
Moves a child node one position up. More... | |
virtual void | setData (void *data)=0 |
sets the user data (void*) of this node More... | |
virtual void | setData2 (IReferenceCounted *data)=0 |
sets the user data2 (IReferenceCounted) of this node More... | |
virtual void | setExpanded (bool expanded)=0 |
Sets if the node is expanded. More... | |
virtual void | setIcon (const wchar_t *icon)=0 |
sets the icon text of the node More... | |
virtual void | setImageIndex (u32 imageIndex)=0 |
sets the image index of the node More... | |
virtual void | setSelected (bool selected)=0 |
Sets this node as selected. More... | |
virtual void | setSelectedImageIndex (u32 imageIndex)=0 |
sets the image index of the node More... | |
virtual void | setText (const wchar_t *text)=0 |
sets the text of the node More... | |
![]() | |
IReferenceCounted () | |
Constructor. More... | |
virtual | ~IReferenceCounted () |
Destructor. More... | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. More... | |
const c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
s32 | getReferenceCount () const |
Get the reference count. More... | |
void | grab () const |
Grabs the object. Increments the reference counter by one. More... | |
Additional Inherited Members | |
![]() | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
Node for gui tree view.
Definition at line 27 of file IGUITreeView.h.
|
pure virtual |
Adds a new node behind the last child node.
text | text of the new node |
icon | icon text of the new node |
imageIndex | index of the image for the new node (-1 = none) |
selectedImageIndex | index of the selected image for the new node (-1 = same as imageIndex) |
data | user data (void*) of the new node |
data2 | user data2 (IReferenceCounted*) of the new node |
Referenced by hasChilds().
|
pure virtual |
Adds a new node before the first child node.
text | text of the new node |
icon | icon text of the new node |
imageIndex | index of the image for the new node (-1 = none) |
selectedImageIndex | index of the selected image for the new node (-1 = same as imageIndex) |
data | user data (void*) of the new node |
data2 | user data2 (IReferenceCounted*) of the new node |
Referenced by hasChilds().
|
pure virtual |
removes all children (recursive) from this node
Referenced by clearChilds().
|
inline |
removes all children (recursive) from this node
Definition at line 82 of file IGUITreeView.h.
References clearChildren(), and hasChildren().
|
pure virtual |
Deletes a child node.
Referenced by hasChilds().
|
pure virtual |
returns the child item count
|
pure virtual |
returns the user data (void*) of this node
|
pure virtual |
returns the user data2 (IReferenceCounted) of this node
|
pure virtual |
Returns true if the node is expanded (children are visible).
Referenced by hasChilds().
|
pure virtual |
Return the first child node from this node.
Referenced by hasChilds().
|
pure virtual |
returns the icon text of the node
|
pure virtual |
returns the image index of the node
|
pure virtual |
Return the last child node from this node.
Referenced by hasChilds().
|
pure virtual |
Returns the level of this node.
The root node has level 0. Direct children of the root has level 1 ...
Referenced by hasChilds().
|
pure virtual |
Returns the next sibling node from this node.
Referenced by hasChilds().
|
pure virtual |
Returns the next visible (expanded, may be out of scrolling) node from this node.
Referenced by hasChilds().
|
pure virtual |
returns the owner (tree view) of this node
|
pure virtual |
Returns the parent node of this node.
For the root node this will return 0.
|
pure virtual |
Returns the previous sibling node from this node.
Referenced by hasChilds().
|
pure virtual |
Returns true if the node is currently selected.
Referenced by hasChilds(), and irr::gui::IGUITreeView::IGUITreeView().
|
pure virtual |
returns the image index of the node
|
pure virtual |
returns the text of the node
|
pure virtual |
returns true if this node has child nodes
Referenced by clearChilds(), and hasChilds().
|
inline |
returns true if this node has child nodes
Definition at line 93 of file IGUITreeView.h.
References addChildBack(), addChildFront(), deleteChild(), getExpanded(), getFirstChild(), getLastChild(), getLevel(), getNextSibling(), getNextVisible(), getPrevSibling(), getSelected(), hasChildren(), insertChildAfter(), insertChildBefore(), isRoot(), isVisible(), moveChildDown(), moveChildUp(), setExpanded(), and setSelected().
|
pure virtual |
Adds a new node behind the other node.
The other node has also te be a child node from this node.
other | Node to insert after |
text | text of the new node |
icon | icon text of the new node |
imageIndex | index of the image for the new node (-1 = none) |
selectedImageIndex | index of the selected image for the new node (-1 = same as imageIndex) |
data | user data (void*) of the new node |
data2 | user data2 (IReferenceCounted*) of the new node |
Referenced by hasChilds().
|
pure virtual |
Adds a new node before the other node.
The other node has also te be a child node from this node.
other | Node to insert before |
text | text of the new node |
icon | icon text of the new node |
imageIndex | index of the image for the new node (-1 = none) |
selectedImageIndex | index of the selected image for the new node (-1 = same as imageIndex) |
data | user data (void*) of the new node |
data2 | user data2 (IReferenceCounted*) of the new node |
Referenced by hasChilds().
|
pure virtual |
Returns true if this node is the root node.
Referenced by hasChilds().
|
pure virtual |
Returns true if this node is visible (all parents are expanded).
Referenced by hasChilds().
|
pure virtual |
Moves a child node one position down.
Referenced by hasChilds().
|
pure virtual |
Moves a child node one position up.
Referenced by hasChilds().
|
pure virtual |
sets the user data (void*) of this node
|
pure virtual |
sets the user data2 (IReferenceCounted) of this node
|
pure virtual |
Sets if the node is expanded.
Referenced by hasChilds().
|
pure virtual |
sets the icon text of the node
|
pure virtual |
sets the image index of the node
|
pure virtual |
Sets this node as selected.
Referenced by hasChilds().
|
pure virtual |
sets the image index of the node
|
pure virtual |
sets the text of the node