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: More... | |
static InputOption | Spacious () |
A white on black style with high margins: More... | |
Data Fields | |
StringRef | content = "" |
The content of the input. More... | |
StringRef | placeholder = "" |
The content of the input when it's empty. More... | |
std::function< Element(InputState)> | transform |
Ref< bool > | password = false |
Obscure the input content using '*'. More... | |
Ref< bool > | multiline = true |
Whether the input can be multiline. More... | |
Ref< bool > | insert = true |
Insert or overtype character mode. More... | |
std::function< void()> | on_change = [] {} |
Called when the content changes. More... | |
std::function< void()> | on_enter = [] {} |
Called when the user presses enter. More... | |
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 312 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 335 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 |
Obscure the input content using '*'.
Definition at line 178 of file component_options.hpp.
Ref<bool> multiline = true |
Whether the input can be multiline.
Definition at line 179 of file component_options.hpp.
Ref<bool> insert = true |
Insert or overtype character mode.
Definition at line 180 of file component_options.hpp.
std::function<void()> on_change = [] {} |
Called when the content changes.
Definition at line 183 of file component_options.hpp.
std::function<void()> on_enter = [] {} |
Called when the user presses enter.
Definition at line 185 of file component_options.hpp.
Ref<int> cursor_position = 0 |
Definition at line 188 of file component_options.hpp.