|
FTXUI 6.1.9
C++ functional terminal UI.
|
Option for the AnimatedButton component. More...
#include <component_options.hpp>
Collaboration diagram for ButtonOption:Static Public Member Functions | |
| static ButtonOption | Ascii () |
| Create a ButtonOption, highlighted using [] characters. | |
| static ButtonOption | Simple () |
| Create a ButtonOption, inverted when focused. | |
| static ButtonOption | Border () |
| Create a ButtonOption. The button is shown using a border, inverted when focused. This is the current default. | |
| static ButtonOption | Animated () |
| Create a ButtonOption, using animated colors. | |
| static ButtonOption | Animated (Color color) |
| Create a ButtonOption, using animated colors. | |
| static ButtonOption | Animated (Color background, Color foreground) |
| Create a ButtonOption, using animated colors. | |
| static ButtonOption | Animated (Color background, Color foreground, Color background_active, Color foreground_active) |
| Create a ButtonOption, using animated colors. | |
Data Fields | |
| ConstStringRef | label = "Button" |
| std::function< void()> | on_click = [] {} |
| std::function< Element(const EntryState &)> | transform |
| AnimatedColorsOption | animated_colors |
Option for the AnimatedButton component.
Definition at line 111 of file component_options.hpp.
|
static |
Create a ButtonOption, highlighted using [] characters.
Definition at line 164 of file component_options.cpp.
|
static |
Create a ButtonOption, inverted when focused.
Definition at line 177 of file component_options.cpp.
|
static |
Create a ButtonOption. The button is shown using a border, inverted when focused. This is the current default.
Definition at line 192 of file component_options.cpp.
|
static |
Create a ButtonOption, using animated colors.
Definition at line 210 of file component_options.cpp.
|
static |
Create a ButtonOption, using animated colors.
Definition at line 218 of file component_options.cpp.
|
static |
Create a ButtonOption, using animated colors.
Definition at line 229 of file component_options.cpp.
|
static |
Create a ButtonOption, using animated colors.
Definition at line 242 of file component_options.cpp.
| ConstStringRef label = "Button" |
Definition at line 124 of file component_options.hpp.
| std::function<void()> on_click = [] {} |
Definition at line 125 of file component_options.hpp.
| std::function<Element(const EntryState&)> transform |
Definition at line 128 of file component_options.hpp.
| AnimatedColorsOption animated_colors |
Definition at line 129 of file component_options.hpp.