Home | All Classes | Grouped Classes | Index | Search

Class CL_TreeNode

TreeView node More...

Derived from: none
Derived by: CL_TreeView
Group: GUI (Controls)

#include <ClanLib/gui.h>

Construction:

CL_TreeNode

The treenode constructor.

Attributes:

is_selected

Returns true if node is selected

is_collapsed

Return true if node is collapsed

has_children

Return true if node has sub-items

get_userdata

Returns the attaches userdata, if any.

get_component

Returns the CL_Component this node uses.

Operations:

insert_item

Inserts an item at index.

set_component

Sets/changes a new component for the node.

set_collapsed

Collapse this node.

set_selected

Select this node.

clear_selection

Deselects current selected item.

invert_selection

Inverts the selection. Works only in Multi selection mode.

clear

Deletes all items in the tree.

set_userdata

Attaches userdata to node.

draw_nodes

Detailed description:



Questions or comments, write to the
ClanLib mailing list.