Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
IGUITreeView.h
Go to the documentation of this file.
1 // This file is part of the "Irrlicht Engine".
2 // written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de
3 
4 #ifndef __I_GUI_TREE_VIEW_H_INCLUDED__
5 #define __I_GUI_TREE_VIEW_H_INCLUDED__
6 
7 #include "IGUIElement.h"
8 #include "IGUIImageList.h"
9 #include "irrTypes.h"
10 
11 namespace irr
12 {
13 namespace gui
14 {
15  class IGUIFont;
16  class IGUITreeView;
17 
18 
21  {
22  public:
24  virtual IGUITreeView* getOwner() const = 0;
25 
27 
28  virtual IGUITreeViewNode* getParent() const = 0;
29 
31  virtual const wchar_t* getText() const = 0;
32 
34  virtual void setText( const wchar_t* text ) = 0;
35 
37  virtual const wchar_t* getIcon() const = 0;
38 
40  virtual void setIcon( const wchar_t* icon ) = 0;
41 
43  virtual u32 getImageIndex() const = 0;
44 
46  virtual void setImageIndex( u32 imageIndex ) = 0;
47 
49  virtual u32 getSelectedImageIndex() const = 0;
50 
52  virtual void setSelectedImageIndex( u32 imageIndex ) = 0;
53 
55  virtual void* getData() const = 0;
56 
58  virtual void setData( void* data ) = 0;
59 
61  virtual IReferenceCounted* getData2() const = 0;
62 
64  virtual void setData2( IReferenceCounted* data ) = 0;
65 
67  virtual u32 getChildCount() const = 0;
68 
70  virtual void clearChilds() = 0;
71 
73  virtual bool hasChilds() const = 0;
74 
76 
85  const wchar_t* text, const wchar_t* icon = 0,
86  s32 imageIndex=-1, s32 selectedImageIndex=-1,
87  void* data=0, IReferenceCounted* data2=0) =0;
88 
90 
99  const wchar_t* text, const wchar_t* icon = 0,
100  s32 imageIndex=-1, s32 selectedImageIndex=-1,
101  void* data=0, IReferenceCounted* data2=0 ) =0;
102 
104 
115  IGUITreeViewNode* other,
116  const wchar_t* text, const wchar_t* icon = 0,
117  s32 imageIndex=-1, s32 selectedImageIndex=-1,
118  void* data=0, IReferenceCounted* data2=0) =0;
119 
121 
132  IGUITreeViewNode* other,
133  const wchar_t* text, const wchar_t* icon = 0,
134  s32 imageIndex=-1, s32 selectedImageIndex=-1,
135  void* data=0, IReferenceCounted* data2=0) = 0;
136 
138 
139  virtual IGUITreeViewNode* getFirstChild() const = 0;
140 
142 
143  virtual IGUITreeViewNode* getLastChild() const = 0;
144 
146 
149  virtual IGUITreeViewNode* getPrevSibling() const = 0;
150 
152 
155  virtual IGUITreeViewNode* getNextSibling() const = 0;
156 
158 
160  virtual IGUITreeViewNode* getNextVisible() const = 0;
161 
163 
164  virtual bool deleteChild( IGUITreeViewNode* child ) = 0;
165 
167 
168  virtual bool moveChildUp( IGUITreeViewNode* child ) = 0;
169 
171 
172  virtual bool moveChildDown( IGUITreeViewNode* child ) = 0;
173 
175  virtual bool getExpanded() const = 0;
176 
178  virtual void setExpanded( bool expanded ) = 0;
179 
181  virtual bool getSelected() const = 0;
182 
184  virtual void setSelected( bool selected ) = 0;
185 
187  virtual bool isRoot() const = 0;
188 
190 
191  virtual s32 getLevel() const = 0;
192 
194  virtual bool isVisible() const = 0;
195  };
196 
197 
199 
202  class IGUITreeView : public IGUIElement
203  {
204  public:
206  IGUITreeView(IGUIEnvironment* environment, IGUIElement* parent,
207  s32 id, core::rect<s32> rectangle)
208  : IGUIElement( EGUIET_TREE_VIEW, environment, parent, id, rectangle ) {}
209 
211  virtual IGUITreeViewNode* getRoot() const = 0;
212 
214  virtual IGUITreeViewNode* getSelected() const = 0;
215 
217  virtual bool getLinesVisible() const = 0;
218 
220 
221  virtual void setLinesVisible( bool visible ) = 0;
222 
224 
230  virtual void setIconFont( IGUIFont* font ) = 0;
231 
233 
234  virtual void setImageList( IGUIImageList* imageList ) = 0;
235 
237  virtual IGUIImageList* getImageList() const = 0;
238 
240  virtual void setImageLeftOfIcon( bool bLeftOf ) = 0;
241 
243  virtual bool getImageLeftOfIcon() const = 0;
244 
246 
247  virtual IGUITreeViewNode* getLastEventNode() const = 0;
248  };
249 
250 
251 } // end namespace gui
252 } // end namespace irr
253 
254 #endif
255 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Fri Mar 21 2014 04:40:16 by Doxygen (1.8.1.2)