|
wex v26.04.0
|
Offers a single menu item. More...
#include <wex/ui/menu-item.h>
Public Types | |
| enum | type_t { CHECK , EDIT , EDIT_INVERT , EXIT , HISTORY , MENU , PANES , PRINT , RADIO , SEPARATOR , SUBMENU , VCS } |
| The item types supported. More... | |
Public Member Functions | |
| menu_item (type_t=SEPARATOR) | |
| Default constructor, for a SEPARATOR. | |
| menu_item (wxWindowID id, std::string name=std::string(), data::menu data=data::menu()) | |
| Constructor for a normal MENU item. | |
| menu_item (wxWindowID id, std::string name, type_t type, data::menu data=data::menu()) | |
| Constructor for a checkable item. | |
| menu_item (menu *submenu, std::string name, wxWindowID id=wxID_ANY, data::menu data=data::menu()) | |
| Constructor for a SUBMENU item. | |
| menu_item (const path &p, frame *frame, bool show_modal=true, const data::menu &data=data::menu()) | |
| Constructor for a VCS submenu item. | |
| menu_item (wxWindowID id, file_history &history, data::menu data=data::menu()) | |
| Constructor for HISTORY menu item. | |
| menu_item (const frame *frame) | |
| Constructor for PANES menu items. | |
| void | append (wex::menu *menu) const |
| Appends this item(s) to menu. | |
| const data::menu & | data () const |
| Returns data. | |
| wxWindowID | id () const |
| Returns menu item id. | |
| bool | is_modal () const |
| Returns modality. | |
| const std::string & | name () const |
| Returns menu item name. | |
| const wex::path & | path () const |
| Returns path. | |
| type_t | type () const |
| Returns menu item type. | |
Offers a single menu item.
The item types supported.
| Enumerator | |
|---|---|
| CHECK | a check menu item |
| EDIT | edit menu items |
| EDIT_INVERT | edit invert menu items |
| EXIT | exit menu item |
| HISTORY | file_history menu items |
| MENU | a normal menu item |
| PANES | toggle panes from managed frame menu items |
print menu items | |
| RADIO | a radio menu item |
| SEPARATOR | a separator menu item If previous item was a separator, it ignores this one. If no items have yet been appended, it ignores this one. |
| SUBMENU | a submenu item |
| VCS | vcs menu items |
| wex::menu_item::menu_item | ( | wxWindowID | id, |
| std::string | name = std::string(), | ||
| data::menu | data = data::menu() ) |
| wex::menu_item::menu_item | ( | wxWindowID | id, |
| std::string | name, | ||
| type_t | type, | ||
| data::menu | data = data::menu() ) |
| wex::menu_item::menu_item | ( | menu * | submenu, |
| std::string | name, | ||
| wxWindowID | id = wxID_ANY, | ||
| data::menu | data = data::menu() ) |
| wex::menu_item::menu_item | ( | const path & | p, |
| frame * | frame, | ||
| bool | show_modal = true, | ||
| const data::menu & | data = data::menu() ) |
| wex::menu_item::menu_item | ( | wxWindowID | id, |
| file_history & | history, | ||
| data::menu | data = data::menu() ) |