FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
SliderOption< T > Struct Template Reference

#include <component_options.hpp>

+ Collaboration diagram for SliderOption< T >:

Data Fields

Ref< T > value
 
ConstRef< T > min = T(0)
 
ConstRef< T > max = T(100)
 
ConstRef< T > increment = (max() - min()) / 20
 
Direction direction = Direction::Right
 
Color color_active = Color::White
 
Color color_inactive = Color::GrayDark
 
std::function< void()> on_change
 

Detailed Description

Field Documentation

◆ value

◆ min

template<typename T >
ConstRef<T> min = T(0)

◆ max

◆ increment

◆ direction

◆ color_active

template<typename T >
Color color_active = Color::White

◆ color_inactive

template<typename T >
Color color_inactive = Color::GrayDark

◆ on_change

template<typename T >
std::function<void()> on_change

Definition at line 230 of file component_options.hpp.


The documentation for this struct was generated from the following file: