 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_GUI_TREE_VIEW_H_INCLUDED__
6 #define __I_GUI_TREE_VIEW_H_INCLUDED__
38 virtual const wchar_t*
getText()
const = 0;
41 virtual void setText(
const wchar_t* text ) = 0;
44 virtual const wchar_t*
getIcon()
const = 0;
47 virtual void setIcon(
const wchar_t* icon ) = 0;
62 virtual void*
getData()
const = 0;
65 virtual void setData(
void* data ) = 0;
108 const wchar_t* text,
const wchar_t* icon = 0,
109 s32 imageIndex=-1,
s32 selectedImageIndex=-1,
122 const wchar_t* text,
const wchar_t* icon = 0,
123 s32 imageIndex=-1,
s32 selectedImageIndex=-1,
139 const wchar_t* text,
const wchar_t* icon = 0,
140 s32 imageIndex=-1,
s32 selectedImageIndex=-1,
156 const wchar_t* text,
const wchar_t* icon = 0,
157 s32 imageIndex=-1,
s32 selectedImageIndex=-1,
210 virtual bool isRoot()
const = 0;
_IRR_DEPRECATED_ void clearChilds()
removes all children (recursive) from this node
virtual IGUITreeViewNode * getLastChild() const =0
Return the last child node from this node.
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.
virtual bool getSelected() const =0
Returns true if the node is currently selected.
virtual IGUIImageList * getImageList() const =0
Returns the image list which is used for the nodes.
virtual u32 getImageIndex() const =0
returns the image index of the node
virtual bool hasChildren() const =0
returns true if this node has child nodes
virtual IReferenceCounted * getData2() const =0
returns the user data2 (IReferenceCounted) of this node
virtual void * getData() const =0
returns the user data (void*) of this node
virtual void setIconFont(IGUIFont *font)=0
Sets the font which should be used as icon font.
virtual IGUITreeViewNode * getSelected() const =0
returns the selected node of the tree or 0 if none is selected
virtual bool isVisible() const =0
Returns true if this node is visible (all parents are expanded).
virtual const wchar_t * getIcon() const =0
returns the icon text of the node
virtual void setText(const wchar_t *text)=0
sets the text of the node
@ EGUIET_TREE_VIEW
A Tree View.
virtual IGUITreeViewNode * getPrevSibling() const =0
Returns the previous sibling node from this node.
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.
Default tree view GUI element.
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.
virtual void setImageLeftOfIcon(bool bLeftOf)=0
Sets if the image is left of the icon. Default is true.
virtual u32 getSelectedImageIndex() const =0
returns the image index of the node
virtual bool getExpanded() const =0
Returns true if the node is expanded (children are visible).
virtual bool moveChildUp(IGUITreeViewNode *child)=0
Moves a child node one position up.
virtual void setExpanded(bool expanded)=0
Sets if the node is expanded.
virtual const wchar_t * getText() const =0
returns the text of the node
signed int s32
32 bit signed variable.
virtual u32 getChildCount() const =0
returns the child item count
virtual void clearChildren()=0
removes all children (recursive) from this node
virtual bool getImageLeftOfIcon() const =0
Returns if the Image is left of the icon. Default is true.
virtual void setSelected(bool selected)=0
Sets this node as selected.
Base class of most objects of the Irrlicht Engine.
virtual IGUITreeViewNode * getParent() const =0
Returns the parent node of this node.
_IRR_DEPRECATED_ bool hasChilds() const
returns true if this node has child nodes
virtual void setSelectedImageIndex(u32 imageIndex)=0
sets the image index of the node
virtual bool moveChildDown(IGUITreeViewNode *child)=0
Moves a child node one position down.
virtual bool deleteChild(IGUITreeViewNode *child)=0
Deletes a child node.
virtual void setImageIndex(u32 imageIndex)=0
sets the image index of the node
virtual bool getLinesVisible() const =0
returns true if the tree lines are visible
virtual void setLinesVisible(bool visible)=0
sets if the tree lines are visible
virtual IGUITreeViewNode * getFirstChild() const =0
Return the first child node from this node.
virtual void setData2(IReferenceCounted *data)=0
sets the user data2 (IReferenceCounted) of this node
virtual void setData(void *data)=0
sets the user data (void*) of this node
virtual void setIcon(const wchar_t *icon)=0
sets the icon text of the node
virtual IGUITreeViewNode * getNextVisible() const =0
Returns the next visible (expanded, may be out of scrolling) node from this node.
Everything in the Irrlicht Engine can be found in this namespace.
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.
IGUITreeView(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual s32 getLevel() const =0
Returns the level of this node.
unsigned int u32
32 bit unsigned variable.
virtual IGUITreeViewNode * getLastEventNode() const =0
Returns the node which is associated to the last event.
GUI Environment. Used as factory and manager of all other GUI elements.
virtual void setImageList(IGUIImageList *imageList)=0
Sets the image list which should be used for the image and selected image of every node.
#define _IRR_DEPRECATED_
Defines a deprecated macro which generates a warning at compile time.
virtual IGUITreeViewNode * getNextSibling() const =0
Returns the next sibling node from this node.
virtual IGUITreeView * getOwner() const =0
returns the owner (tree view) of this node
Base class of all GUI elements.
virtual bool isRoot() const =0
Returns true if this node is the root node.
virtual IGUITreeViewNode * getRoot() const =0
returns the root node (not visible) from the tree.