Home | All Classes | Grouped Classes | Index | Search
Menu component More...
Derived from:
CL_Component
Derived by:
none
Group: GUI (Controls)
#include <ClanLib/gui.h>
Construction:
CL_Menu Constructor |
Attributes:
Returns true if the menu is open | |
Returns true if the menu is vertical, false if horizontal | |
Returns true if the root menu collapses when a click outside the menus takes place. Ignored by non-root menus. | |
Returns true if menu resized automatically when its parent is resized. | |
Returns true if the mouse cursor is on top of the menu | |
Returns true if the mouse cursor is in a open submenu of the menu | |
Returns the parent node of this menu. | |
Returns the top level parent of the menu tree. | |
Returns a list containing the CL_MenuNode's in this menu. | |
Returns the total height of items in a menu | |
Returns the total width of items in a menu | |
Returns true if the menus submenus need to be clicked to open. By default they open on mouse enter for vertical menus and on click with horizontal menus when it doesn't have focus. | |
Returns a pointer to the menu in the path given, or 0 if no such menu exsists. | |
Returns a pointer to the menu node in the path given, or 0 if no such menu exsists. | |
Returns a pointer to the menu item (CL_Component*) in the path given, or 0 if no such menu item exsists. |
Signals:
This signal is emitted when a repositioning of the menus is requsted. |
Operations:
Calculates a position and size for the menu, using code in the GUI theme. | |
Makes the menu resize automatically when its parent is resized | |
Makes the menu vertical (true) or horizontal (false). | |
Set weather the root menu should collapse when a click outside the menus takes place. Ignored by non-root menus. | |
Add a CL_MenuNode to the menu. | |
Remove a CL_MenuNode from the menu. | |
Set the parent node of this menu. | |
Open the menu. | |
Close the menu. | |
Close all submenus of the menu. | |
Set the opening mode of submenus to open on click (true) or open on mouse over (false) | |
Convenience function for easy creation of menus. Creates needed menus, items and nodes automatically | |
Convenience function for easy creation of menus. Creates needed menus, items and nodes automatically | |
Convenience function for easy creation of menus. Creates needed menus, items and nodes automatically Returns the parent node of the created item. | |
Convenience function for easy creation of menus. Creates a toggling menu item in the specified path. Returns the parent node of the created item. |
Detailed description:
!group=GUI/Controls! !header=gui.h!