<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_TreeNode - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_TreeNode</h1> <p> TreeView node <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <a href="CL_TreeView.html">CL_TreeView</a> <br>Group: GUI (Controls)</p> <p> #include <ClanLib/gui.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_TreeNode__CL_TreeNode.html">CL_TreeNode</a></p></td><td valign=top><p> The treenode constructor.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_TreeNode__is_selectable.html">is_selectable</a></p></td><td valign=top><p> Returns true if node is selectable.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__is_collapsable.html">is_collapsable</a></p></td><td valign=top><p> Returns true if node is collapsable.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__is_selected.html">is_selected</a></p></td><td valign=top><p> Returns true if node is selected.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__is_collapsed.html">is_collapsed</a></p></td><td valign=top><p> Return true if node is collapsed.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__has_children.html">has_children</a></p></td><td valign=top><p> Return true if node has sub-items.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__is_root.html">is_root</a></p></td><td valign=top><p> Returns true if node is root item.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_current_item.html">get_current_item</a></p></td><td valign=top><p> Returns the current selected item. Note: This searches children as well.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_userdata.html">get_userdata</a></p></td><td valign=top><p> Returns the attaches userdata, if any.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_component.html">get_component</a></p></td><td valign=top><p> Returns the CL_Component this node uses.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_treeview.html">get_treeview</a></p></td><td valign=top><p> Returns the CL_TreeView this node belongs to.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_parent.html">get_parent</a></p></td><td valign=top><p> Returns the parent node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_depth.html">get_depth</a></p></td><td valign=top><p> Returns the depth of this node. Root node starts at 1.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_placement_offset.html">get_placement_offset</a></p></td><td valign=top><p> Returns the x offset the component is located at. Used by themes to align columns correctly.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__get_items_height.html">get_items_height</a></p></td><td valign=top><p> Returns the height of all opened items.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_TreeNode__insert_item.html">insert_item</a></p></td><td valign=top><p> Inserts a child item. </p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__remove_item.html">remove_item</a></p></td><td valign=top><p> Removes an item from tree. Note that it searches children as well for the item. Returns true if item was found and deleted.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__set_component.html">set_component</a></p></td><td valign=top><p> Sets/changes a new component for the node. It takes ownership of the component, and deletes it on shutdown.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__set_collapsed.html">set_collapsed</a></p></td><td valign=top><p> Collapse this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__set_collapsable.html">set_collapsable</a></p></td><td valign=top><p> Set the tree to collapsable or not. If set to false, item will never be collapsable by the user.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__set_selectable.html">set_selectable</a></p></td><td valign=top><p> Set the tree to selectable or not. If set to false, item will never be selectable by the user.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__set_selected.html">set_selected</a></p></td><td valign=top><p> Select this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__clear_selection.html">clear_selection</a></p></td><td valign=top><p> Deselects current selected item.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__invert_selection.html">invert_selection</a></p></td><td valign=top><p> Inverts the selection. Works only in Multi selection mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__clear.html">clear</a></p></td><td valign=top><p> Deletes all items in the tree.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__set_userdata.html">set_userdata</a></p></td><td valign=top><p> Attaches userdata to node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__set_placement_offset.html">set_placement_offset</a></p></td><td valign=top><p> Set the x offset the component is located at. Used by themes to align columns correctly.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_TreeNode__draw_nodes.html">draw_nodes</a></p></td><td valign=top><p></p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=GUI/Controls! !header=gui.h! <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->