|
wex
v21.04.0
|
Adds artid, edit, printing and tool menu items to wxMenu. More...
#include <wex/menu.h>
Inherits wxMenu.
Public Types | |
| enum | { IS_EMPTY = 0 , IS_POPUP , IS_READ_ONLY , IS_SELECTED , IS_VISUAL , ALLOW_CLEAR , CAN_PASTE , DEFAULT = CAN_PASTE } |
| The menu flags. More... | |
Public Member Functions | |
| menu (menu_t style=menu_t().set(DEFAULT), const std::vector< menu_item > &items={{}}) | |
| Default constructor. | |
| menu (const std::vector< menu_item > &items) | |
| Constructor with a vector of items. | |
| menu (const std::string &title, menu_t style) | |
| Construct a menu with a title. | |
| size_t | append (const std::vector< menu_item > &items) |
| Appends a vector of items. More... | |
| auto & | style () const |
| Returns the style. | |
| auto & | style () |
| Sets the style. | |
Adds artid, edit, printing and tool menu items to wxMenu.
| anonymous enum |
The menu flags.
| size_t wex::menu::append | ( | const std::vector< menu_item > & | items | ) |
Appends a vector of items.
Returns number of items appended.