Description of one menu item, as given by the user.
More...
#include <headers/guillaume/components/menu.hpp>
Description of one menu item, as given by the user.
Definition at line 86 of file menu.hpp.
◆ 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 |
◆ 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: