TextFieldOptions struct
#include <nxt/text_field.hpp>
Rendering options for text_field.
Public variables
-
std::
string_view prefix - Static prefix (e.g. "> "). Always visible at column 0.
-
std::
string_view placeholder - Shown in
placeholder_fgwhen the field is empty. - TextFieldStyle style
- bool focused
Variable documentation
bool nxt:: tui:: TextFieldOptions:: focused
When false, the cursor is not drawn and editing keys (if you pass them in) should be ignored by the caller.