wex v24.10.0
|
Adds artid, edit, printing and tool menu items to wxMenu. More...
#include <wex/ui/menu.h>
Inherits wxMenu.
Public Types | |
enum | { IS_EMPTY = 0 , IS_LINES , IS_POPUP , IS_READ_ONLY , IS_SELECTED , IS_VISUAL , ALLOW_CLEAR , CAN_PASTE } |
The menu flags. More... | |
typedef std::bitset< 8 > | menu_t |
A typedef containing menu flags. | |
typedef std::vector< menu_item > | menu_items_t |
A typedef. | |
Public Member Functions | |
menu (menu_t style=menu_t_def(), const menu_items_t &items={{}}) | |
Default constructor. | |
menu (const menu_items_t &items, menu_t style=menu_t_def()) | |
Constructor with a vector of items. | |
menu (const std::string &title, menu_t style) | |
Construct a menu with a title. | |
size_t | append (const menu_items_t &items) |
Appends a vector of items. | |
auto & | style () const |
Returns the style. | |
auto & | style () |
Sets the style. | |
Static Public Member Functions | |
static menu_t | menu_t_def () |
Returns default menu flags. | |
Adds artid, edit, printing and tool menu items to wxMenu.
anonymous enum |
The menu flags.
size_t wex::menu::append | ( | const menu_items_t & | items | ) |
Appends a vector of items.
Returns number of items appended.