|
FTXUI
5.0.0
C++ functional terminal UI.
|
Option for the Input component. More...
Static Public Member Functions | |
| static InputOption | Default () |
| Create the default input style: | |
| static InputOption | Spacious () |
| A white on black style with high margins: | |
Data Fields | |
| StringRef | content = "" |
| The content of the input. | |
| StringRef | placeholder = "" |
| The content of the input when it's empty. | |
| std::function< Element(InputState)> | transform |
| Ref< bool > | password = false |
| Ref< bool > | multiline = true |
| < Obscure the input content using '*'. | |
| std::function< void()> | on_change = [] {} |
| < Whether the input can be multiline. | |
| std::function< void()> | on_enter = [] {} |
| Called when the user presses enter. | |
| Ref< int > | cursor_position = 0 |
Option for the Input component.
Definition at line 162 of file component_options.hpp.
|
static |
Create the default input style:
Standard options for the input component.
Definition at line 313 of file component_options.cpp.
|
static |
A white on black style with high margins:
Standard options for a more beautiful input component.
Definition at line 336 of file component_options.cpp.
| StringRef content = "" |
The content of the input.
Definition at line 171 of file component_options.hpp.
| StringRef placeholder = "" |
The content of the input when it's empty.
Definition at line 174 of file component_options.hpp.
| std::function<Element(InputState)> transform |
Definition at line 177 of file component_options.hpp.
| Ref<bool> password = false |
Definition at line 178 of file component_options.hpp.
| Ref<bool> multiline = true |
< Obscure the input content using '*'.
Definition at line 179 of file component_options.hpp.
| std::function<void()> on_change = [] {} |
< Whether the input can be multiline.
Called when the content changes.
Definition at line 182 of file component_options.hpp.
| std::function<void()> on_enter = [] {} |
Called when the user presses enter.
Definition at line 184 of file component_options.hpp.
| Ref<int> cursor_position = 0 |
Definition at line 187 of file component_options.hpp.