Skip to content
You are viewing documentation for v7.0.3. 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
hoveredWhether the input is hovered by the mouse.
focusedWhether the input is focused by the user.
is_placeholderWhether the input is empty and displaying the placeholder.

Public Attributes ​

element ​

cpp
Element element;

hovered ​

cpp
bool hovered;

Whether the input is hovered by the mouse.

focused ​

cpp
bool focused;

Whether the input is focused by the user.

is_placeholder ​

cpp
bool is_placeholder;

Whether the input is empty and displaying the placeholder.