1#ifndef FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP
2#define FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP
114 Color background_active,
115 Color foreground_active);
A class representing terminal colors.
An adapter. Own or reference an mutable object.
float QuadraticInOut(float p)
std::function< float(float)> Function
std::chrono::duration< double > Duration
bool active
< The state of the button/checkbox/radiobox
AnimatedColorOption foreground
bool focused
< Whether the entry is the active one.
std::shared_ptr< Node > Element
std::function< void()> on_enter
Called when the user presses enter.
AnimatedColorOption background
std::function< Element(const EntryState &state)> transform
Ref< int > cursor_position
Ref< bool > password
Obscure the input content using '*'.
bool state
< The label to display.
AnimatedColorsOption animated_colors
std::function< void()> on_change
Called when the content changes.
Decorator color(Color)
Decorate using a foreground color.
arguments for |ButtonOption::transform|, |CheckboxOption::transform|, |Radiobox::transform|,...
Option about a potentially animated color.
animation::easing::Function function
animation::Duration duration
void Set(Color inactive, Color active, animation::Duration duration=std::chrono::milliseconds(250), animation::easing::Function function=animation::easing::QuadraticInOut)
Option for the Checkbox component.
static CheckboxOption Simple()
Option for standard Checkbox.
std::function< void()> on_change
Called when the user change the state.
std::function< Element(const EntryState &)> transform
Option for the Radiobox component.
std::function< void()> on_change
Called when the selected entry changes.
static RadioboxOption Simple()
Option for standard Radiobox.
std::function< Element(const EntryState &)> transform
animation::Duration follower_duration
animation::easing::Function leader_function
animation::Duration follower_delay
void SetAnimationFunction(animation::easing::Function f)
animation::Duration leader_duration
void SetAnimation(animation::Duration d, animation::easing::Function f)
void SetAnimationDuration(animation::Duration d)
animation::easing::Function follower_function
animation::Duration leader_delay