|
FTXUI 6.1.9
C++ functional terminal UI.
|
Option for the Input component. More...
#include <component_options.hpp>
Collaboration diagram for InputOption: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 |
| Obscure the input content using '*'. | |
| Ref< bool > | multiline = true |
| Whether the input can be multiline. | |
| Ref< bool > | insert = true |
| Insert or overtype character mode. | |
| std::function< void()> | on_change = [] {} |
| Called when the content changes. | |
| std::function< void()> | on_enter = [] {} |
| Called when the user presses enter. | |
| Ref< int > | cursor_position = 0 |
Option for the Input component.
Definition at line 161 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 170 of file component_options.hpp.
| StringRef placeholder = "" |
The content of the input when it's empty.
Definition at line 173 of file component_options.hpp.
| std::function<Element(InputState)> transform |
Definition at line 176 of file component_options.hpp.
| Ref<bool> password = false |
Obscure the input content using '*'.
Definition at line 177 of file component_options.hpp.
| Ref<bool> multiline = true |
Whether the input can be multiline.
Definition at line 178 of file component_options.hpp.
| Ref<bool> insert = true |
Insert or overtype character mode.
Definition at line 179 of file component_options.hpp.
| std::function<void()> on_change = [] {} |
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.