Skip to content
You are viewing documentation for v5.0.0. Switch to latest (main).

ftxui::InputState ​

cpp
#include <ftxui/component/component_options.hpp>

Used to define style for the Input component.

Examples: component/input_style

Summary ​

SymbolDescription
element
hovered
focused< Whether the input is hovered by the mouse.
is_placeholder< Whether the input is focused by the user.

Public Attributes ​

element ​

cpp
Element element;

hovered ​

cpp
bool hovered;

focused ​

cpp
bool focused;

< Whether the input is hovered by the mouse.

is_placeholder ​

cpp
bool is_placeholder;

< Whether the input is focused by the user.