guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
guillaume::components::Menu::Item Struct Reference

Description of one menu item, as given by the user. More...

#include <headers/guillaume/components/menu.hpp>

Public Attributes

std::string label
 Text of the item.
std::string leadingIcon
std::string trailingIcon {}
std::function< void(void)> onPress {}
 Called on press.
bool disabled { false }
bool dense { false }

Detailed Description

Description of one menu item, as given by the user.

Definition at line 86 of file menu.hpp.

Member Data Documentation

◆ dense

bool guillaume::components::Menu::Item::dense { false }

True for a 32 dp high row instead of the regular height.

Definition at line 95 of file menu.hpp.

◆ disabled

bool guillaume::components::Menu::Item::disabled { false }

True when the item ignores presses.

Definition at line 93 of file menu.hpp.

◆ label

std::string guillaume::components::Menu::Item::label

Text of the item.

Definition at line 87 of file menu.hpp.

◆ leadingIcon

std::string guillaume::components::Menu::Item::leadingIcon

Glyph name of the icon before the label; empty for none.

Definition at line 88 of file menu.hpp.

◆ onPress

std::function<void(void)> guillaume::components::Menu::Item::onPress {}

Called on press.

Definition at line 92 of file menu.hpp.

◆ trailingIcon

std::string guillaume::components::Menu::Item::trailingIcon {}

Glyph name of the icon after the label; empty for none.

Definition at line 90 of file menu.hpp.


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