FTXUI
5.0.0
C++ functional terminal UI.
|
Option for the AnimatedButton component. More...
Static Public Member Functions | |
static ButtonOption | Ascii () |
Create a ButtonOption, highlighted using [] characters. More... | |
static ButtonOption | Simple () |
Create a ButtonOption, inverted when focused. More... | |
static ButtonOption | Border () |
Create a ButtonOption. The button is shown using a border, inverted when focused. This is the current default. More... | |
static ButtonOption | Animated () |
Create a ButtonOption, using animated colors. More... | |
static ButtonOption | Animated (Color color) |
Create a ButtonOption, using animated colors. More... | |
static ButtonOption | Animated (Color background, Color foreground) |
Create a ButtonOption, using animated colors. More... | |
static ButtonOption | Animated (Color background, Color foreground, Color background_active, Color foreground_active) |
Create a ButtonOption, using animated colors. More... | |
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 112 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 125 of file component_options.hpp.
std::function<void()> on_click = [] {} |
Definition at line 126 of file component_options.hpp.
std::function<Element(const EntryState&)> transform |
Definition at line 129 of file component_options.hpp.
AnimatedColorsOption animated_colors |
Definition at line 130 of file component_options.hpp.