![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
MenuNode
Contained in: global
Derived from:
none
Derived by:
CL_PopupMenu
Group: GUI (Controls)
#include <ClanLib/gui.h>
public function member index: |
||
Construction: |
||
CL_MenuNode | (CL_PopupMenu* popupmenu); | |
virtual | ~CL_MenuNode | (); |
Attributes: |
||
bool | is_selected | () const; |
bool | is_collapsed | () const; |
bool | has_children | () const; |
void* | get_userdata | () const; |
CL_Component* | get_component | () const; |
Operations: |
||
CL_MenuNode* | insert_item | (const std::string& text, int index = -1); |
CL_MenuNode* | 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_MenuNode* 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_MenuNode | (const CL_MenuNode& 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.