Pop-up menu. More...
#include <popupmenu.h>
Public Member Functions | |
Attributes | |
| bool | is_null () const |
| Returns true if this object is invalid. More... | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. More... | |
| std::string | get_class () const |
| Get Class name. More... | |
| PopupMenuItem | get_item (int id) |
| Get item. More... | |
| PopupMenuItem | get_item_at (int index) |
| Get item at. More... | |
| int | get_item_count () const |
| Item count. More... | |
| int | get_minimum_width () const |
| Get Minimum width. More... | |
| virtual Size | get_css_size () const |
| Get Preferred size. More... | |
Events | |
| Callback_v0 & | func_close () |
| bool func_close() More... | |
Operations | |
| void | start (GUIComponent *parent, const Point &pos) |
| Start the popup menu for dialog (not modal) More... | |
| PopupMenuItem | insert_item (const std::string &text, int id=-1, int index=-1) |
| Insert item. More... | |
| PopupMenuItem | insert_item_accel (const std::string &text, const std::string &accel_text="", int id=-1, int index=-1) |
| Insert item accel. More... | |
| PopupMenuItem | insert_separator (int index=-1) |
| Insert separator. More... | |
| void | set_minimum_width (int width_pixels) |
| Set minimum width. More... | |
| void | set_maximum_height (int height_pixels) |
| Set maximum height. More... | |
| void | set_class_name (const std::string &class_name) |
| Set class name. More... | |
| int | find_item (const std::string &text, bool case_sensitive=false) |
| Returns the index of the item that matches the start or the string furthest. More... | |
| void | clear () |
| Delete all menu items. More... | |
Construction | |
| PopupMenu () | |
| virtual | ~PopupMenu () |
| static PopupMenu | create_null_object () |
| Create null object. More... | |
Implementation | |
| class | MenuBar |
| class | MenuBar_Impl |
| class | PopupMenuWindow |
Pop-up menu.