lecui 1.0.0-alpha.20
lecui C++ user interface library
Public Attributes | List of all members
liblec::lecui::menu_item Struct Reference

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_itemchildren
 The children of the menu item (used to make a tree). More...
 

Detailed Description

Menu items.

Member Data Documentation

◆ children

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.

◆ image_file

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.

◆ image_png_resource

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.


The documentation for this struct was generated from the following file: