![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
TreeView node
Contained in: global
Derived from:
none
Derived by:
CL_TreeView
Group: GUI (Controls)
#include <ClanLib/gui.h>
public function member index: |
||
Construction: |
||
CL_TreeNode | (CL_TreeView* root_tree); | |
virtual | ~CL_TreeNode | (); |
Attributes: |
||
bool | is_selected | () const; |
bool | is_collapsed | () const; |
bool | has_children | () const; |
void* | get_userdata | () const; |
CL_Component* | get_component | () const; |
Operations: |
||
CL_TreeNode* | insert_item | (const std::string& text, int index = -1); |
CL_TreeNode* | insert_item | (CL_Component* component, bool delete_component = false, int index = -1); |
void | set_component | (CL_Component* component, bool delete_component = false); |
void | set_collapsed | (bool collapse = true); |
void | set_selected | (bool select = true); |
void | set_selected | (CL_TreeNode* node, bool select = true); |
void | clear_selection | (); |
void | invert_selection | (); |
void | clear | (); |
void | set_userdata | (void* data); |
void | draw_nodes | (CL_Point& point); |
private function member index: |
||
Implementation: |
||
CL_TreeNode | (const CL_TreeNode& copy); | |
If index is negative, text is inserted at the end of the list.
Returns the node of the item.
If index is negative, text is inserted at the end of the list.
Set delete_component to true if you want the component to be deleted when
this node gets deleted.
Returns the node of the item.
Mostly used when add(CL_Component *) is used with a NULL parameter.
Set delete_component to true if you want the component to be deleted when
this node gets deleted.