|
FTXUI
5.0.0
C++ functional terminal UI.
|
Option for the Menu component. More...
Inherited by MenuBase.
Static Public Member Functions | |
| static MenuOption | Horizontal () |
| Standard options for an horizontal menu. This can be useful to implement a tab bar. More... | |
| static MenuOption | HorizontalAnimated () |
| Standard options for an animated horizontal menu. This can be useful to implement a tab bar. More... | |
| static MenuOption | Vertical () |
| Standard options for a vertical menu. This can be useful to implement a list of selectable items. More... | |
| static MenuOption | VerticalAnimated () |
| Standard options for an animated vertical menu. This can be useful to implement a list of selectable items. More... | |
| static MenuOption | Toggle () |
| Standard options for a horitontal menu with some separator. This can be useful to implement a tab bar. More... | |
Data Fields | |
| ConstStringListRef | entries |
| Ref< int > | selected = 0 |
More... | |
| UnderlineOption | underline |
More... | |
| MenuEntryOption | entries_option |
| Direction | direction = Direction::Down |
| std::function< Element()> | elements_prefix |
| std::function< Element()> | elements_infix |
| std::function< Element()> | elements_postfix |
| std::function< void()> | on_change |
| std::function< void()> | on_enter |
More... | |
| Ref< int > | focused_entry = 0 |
More... | |
Option for the Menu component.
Definition at line 85 of file component_options.hpp.
|
static |
Standard options for an horizontal menu. This can be useful to implement a tab bar.
Definition at line 76 of file component_options.cpp.
|
static |
Standard options for an animated horizontal menu. This can be useful to implement a tab bar.
Definition at line 101 of file component_options.cpp.
|
static |
Standard options for a vertical menu. This can be useful to implement a list of selectable items.
Definition at line 111 of file component_options.cpp.
|
static |
Standard options for an animated vertical menu. This can be useful to implement a list of selectable items.
Definition at line 133 of file component_options.cpp.
|
static |
Standard options for a horitontal menu with some separator. This can be useful to implement a tab bar.
Definition at line 156 of file component_options.cpp.
| ConstStringListRef entries |
Definition at line 93 of file component_options.hpp.
| Ref<int> selected = 0 |
The list of entries.
Definition at line 94 of file component_options.hpp.
| UnderlineOption underline |
The index of the selected entry.
Definition at line 97 of file component_options.hpp.
| MenuEntryOption entries_option |
Definition at line 98 of file component_options.hpp.
| Direction direction = Direction::Down |
Definition at line 99 of file component_options.hpp.
| std::function<Element()> elements_prefix |
Definition at line 100 of file component_options.hpp.
| std::function<Element()> elements_infix |
Definition at line 101 of file component_options.hpp.
| std::function<Element()> elements_postfix |
Definition at line 102 of file component_options.hpp.
| std::function<void()> on_change |
Definition at line 105 of file component_options.hpp.
| std::function<void()> on_enter |
Called when the selected entry changes.
Definition at line 106 of file component_options.hpp.
| Ref<int> focused_entry = 0 |
Called when the user presses enter.
Definition at line 107 of file component_options.hpp.