Skip to content
You are viewing documentation for v6.1.5. Switch to latest (main).

ftxui::EntryState ​

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

arguments for ButtonOption::transform, CheckboxOption::transform, Radiobox::transform, MenuEntryOption::transform, MenuOption::transform.

Examples: component/dropdown_custom, component/menu_entries, component/menu_style

Summary ​

SymbolDescription
labelThe label to display.
stateThe state of the button/checkbox/radiobox.
activeWhether the entry is the active one.
focusedWhether the entry is one focused by the user.
indexIndex of the entry when applicable or -1.

Public Attributes ​

label ​

cpp
std::string label;

The label to display.

state ​

cpp
bool state;

The state of the button/checkbox/radiobox.

active ​

cpp
bool active;

Whether the entry is the active one.

focused ​

cpp
bool focused;

Whether the entry is one focused by the user.

index ​

cpp
int index;

Index of the entry when applicable or -1.