FTXUI 6.1.9
C++ functional terminal UI.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Modules
SliderOption< T > Struct Template Reference

#include <component_options.hpp>

Public Attributes

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

template<typename T>
struct ftxui::SliderOption< T >
Examples
[demo]examples/component/scrollbar.cpp, and [demo]examples/component/slider_direction.cpp.

Definition at line 225 of file component_options.hpp.

Member Data Documentation

◆ value

template<typename T >
Ref<T> value

◆ min

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

◆ max

template<typename T >
ConstRef<T> max = T(100)

◆ increment

template<typename T >
ConstRef<T> increment = (max() - min()) / 20

◆ 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 233 of file component_options.hpp.


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