ftxui::MenuOption
MenuBase
component_options.hpp
ConstStringListRef ConstStringListRef entries entries ftxui::MenuOption::entries
Ref< int > Ref<int> selected selected ftxui::MenuOption::selected = 0

> The list of entries.

UnderlineOption UnderlineOption underline underline ftxui::MenuOption::underline

> The index of the selected entry.

MenuEntryOption MenuEntryOption entries_option entries_option ftxui::MenuOption::entries_option
Direction Direction direction direction ftxui::MenuOption::direction = Direction::Down
std::function< Element()> std::function<Element()> elements_prefix elements_prefix ftxui::MenuOption::elements_prefix
std::function< Element()> std::function<Element()> elements_infix elements_infix ftxui::MenuOption::elements_infix
std::function< Element()> std::function<Element()> elements_postfix elements_postfix ftxui::MenuOption::elements_postfix
std::function< void()> std::function<void()> on_change on_change ftxui::MenuOption::on_change
std::function< void()> std::function<void()> on_enter on_enter ftxui::MenuOption::on_enter

> Called when the selected entry changes.

Ref< int > Ref<int> focused_entry focused_entry ftxui::MenuOption::focused_entry = 0

> Called when the user presses enter.

MenuOption MenuOption Horizontal () Horizontal ftxui::MenuOption::Horizontal

Standard options for an horizontal menu. This can be useful to implement a tab bar.

MenuOption MenuOption HorizontalAnimated () HorizontalAnimated ftxui::MenuOption::HorizontalAnimated

Standard options for an animated horizontal menu. This can be useful to implement a tab bar.

MenuOption MenuOption Vertical () Vertical ftxui::MenuOption::Vertical

Standard options for a vertical menu. This can be useful to implement a list of selectable items.

MenuOption MenuOption VerticalAnimated () VerticalAnimated ftxui::MenuOption::VerticalAnimated

Standard options for an animated vertical menu. This can be useful to implement a list of selectable items.

MenuOption MenuOption Toggle () Toggle ftxui::MenuOption::Toggle

Standard options for a horitontal menu with some separator. This can be useful to implement a tab bar.

Option for the Menu component.

MenuOption
entries
focused_entry
selected
underline
entries_option
AnimatedColorOption
active
inactive
AnimatedColorsOption
background
foreground
Color
ConstRef< std::string >
ConstStringListRef
ConstStringRef
MenuEntryOption
label
animated_colors
Ref< int >
UnderlineOption
color_active
color_inactive
- ftxui::MenuOption
  direction
- ftxui::MenuOption
  elements_infix
- ftxui::MenuOption
  elements_postfix
- ftxui::MenuOption
  elements_prefix
- ftxui::MenuOption
  entries
- ftxui::MenuOption
  entries_option
- ftxui::MenuOption
  focused_entry
- ftxui::MenuOption
  Horizontal
- ftxui::MenuOption
  HorizontalAnimated
- ftxui::MenuOption
  on_change
- ftxui::MenuOption
  on_enter
- ftxui::MenuOption
  selected
- ftxui::MenuOption
  Toggle
- ftxui::MenuOption
  underline
- ftxui::MenuOption
  Vertical
- ftxui::MenuOption
  VerticalAnimated