lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Menu items. More...
#include <context_menu.h>
Public Attributes | |
std::string | label |
The label text of the menu item. Use an empty string to make a separator. | |
int | image_png_resource = 0 |
The image resource to use for the menu item (placed on the left). More... | |
std::string | image_file |
The image to use for the menu item (placed on the left). More... | |
std::string | font = "Segoe UI" |
The font to use. | |
float | font_size = 9.f |
The font size. | |
std::vector< menu_item > | children |
The children of the menu item (used to make a tree). More... | |
Menu items.
std::vector<menu_item> liblec::lecui::menu_item::children |
The children of the menu item (used to make a tree).
Separators cannot have children. As such, this field is ignored in separators.
std::string liblec::lecui::menu_item::image_file |
The image to use for the menu item (placed on the left).
Used only if image_png_resource is zero.
int liblec::lecui::menu_item::image_png_resource = 0 |
The image resource to use for the menu item (placed on the left).
Takes precedence over image_file.