FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
SliderOption< T > 模板结构体 参考

#include <component_options.hpp>

Public 属性

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
 

详细描述

template<typename T>
struct ftxui::SliderOption< T >
示例
examples/component/scrollbar.cpp , 以及 examples/component/slider_direction.cpp.

在文件 component_options.hpp228 行定义.

类成员变量说明

◆ 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

template<typename T >
Direction direction = Direction::Right

◆ 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

在文件 component_options.hpp236 行定义.


该结构体的文档由以下文件生成: