2021-07-08 04:13:33 +08:00
|
|
|
#ifndef FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP
|
|
|
|
#define FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP
|
|
|
|
|
|
|
|
namespace ftxui {
|
|
|
|
|
|
|
|
struct MenuOption {
|
|
|
|
Decorator normal_style = nothing;
|
|
|
|
Decorator focused_style = inverted;
|
|
|
|
Decorator selected_style = bold;
|
|
|
|
Decorator selected_focused_style = focused_style | selected_style;
|
|
|
|
|
|
|
|
// State update callback.
|
|
|
|
std::function<void()> on_change = []() {};
|
|
|
|
std::function<void()> on_enter = []() {};
|
|
|
|
};
|
|
|
|
|
2021-07-08 04:23:07 +08:00
|
|
|
struct ButtonOption {
|
|
|
|
bool border = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
}; // namespace ftxui
|
2021-07-08 04:13:33 +08:00
|
|
|
|
|
|
|
#endif /* end of include guard: FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP */
|