lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Menu items. More...
#include <form_menu.h>
Public Attributes | |
std::string | label |
The label text of the menu item. | |
std::function< void()> | action = nullptr |
The action handler. | |
std::vector< form_menu_item > | children |
The children of the menu item (used to make a tree). | |
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. | |
Menu items.
std::string liblec::lecui::form_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::form_menu_item::image_png_resource = 0 |
The image resource to use for the menu item (placed on the left).
Takes precedence over image_file.