|
FTXUI 6.1.9
C++ functional terminal UI.
|
Option for the Menu component. More...
#include <component_options.hpp>
Collaboration diagram for MenuOption:Static Public Member Functions | |
| static MenuOption | Horizontal () |
| Standard options for an horizontal menu. This can be useful to implement a tab bar. | |
| static MenuOption | HorizontalAnimated () |
| Standard options for an animated horizontal menu. This can be useful to implement a tab bar. | |
| static MenuOption | Vertical () |
| Standard options for a vertical menu. This can be useful to implement a list of selectable items. | |
| static MenuOption | VerticalAnimated () |
| Standard options for an animated vertical menu. This can be useful to implement a list of selectable items. | |
| static MenuOption | Toggle () |
| Standard options for a horitontal menu with some separator. This can be useful to implement a tab bar. | |
Data Fields | |
| ConstStringListRef | entries |
| Ref< int > | selected = 0 |
| UnderlineOption | underline |
| 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 |
| Ref< int > | focused_entry = 0 |
Option for the Menu component.
Definition at line 84 of file component_options.hpp.
|
static |
Standard options for an horizontal menu. This can be useful to implement a tab bar.
Definition at line 75 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 100 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 110 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 132 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 155 of file component_options.cpp.
| ConstStringListRef entries |
Definition at line 92 of file component_options.hpp.
| Ref<int> selected = 0 |
The list of entries.
Definition at line 93 of file component_options.hpp.
| UnderlineOption underline |
The index of the selected entry.
Definition at line 96 of file component_options.hpp.
| MenuEntryOption entries_option |
Definition at line 97 of file component_options.hpp.
| Direction direction = Direction::Down |
Definition at line 98 of file component_options.hpp.
| std::function<Element()> elements_prefix |
Definition at line 99 of file component_options.hpp.
| std::function<Element()> elements_infix |
Definition at line 100 of file component_options.hpp.
| std::function<Element()> elements_postfix |
Definition at line 101 of file component_options.hpp.
| std::function<void()> on_change |
Definition at line 104 of file component_options.hpp.
| std::function<void()> on_enter |
Called when the selected entry changes.
Definition at line 105 of file component_options.hpp.
| Ref<int> focused_entry = 0 |
Called when the user presses enter.
Definition at line 106 of file component_options.hpp.