NexusForce
1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
slider.hpp
浏览该文件的文档.
1
#ifndef NEFORCE_TUI_COMPONENT_SLIDER_HPP__
2
#define NEFORCE_TUI_COMPONENT_SLIDER_HPP__
3
10
11
#include "
NeForce/tui/component/component.hpp
"
12
#include "
NeForce/tui/dom/ref.hpp
"
13
NEFORCE_BEGIN_NAMESPACE__
14
NEFORCE_BEGIN_TUI__
15
NEFORCE_BEGIN_COMPONENTS__
16
21
26
30
struct
slider_options
{
31
string
label;
32
int
* value =
nullptr
;
33
int
min_value = 0;
34
int
max_value = 0;
35
int
increment = 1;
36
};
37
43
unique_ptr<component_base>
NEFORCE_API
slider
(
slider_options
options);
44
// Components
46
// TUI
48
49
NEFORCE_END_COMPONENTS__
50
NEFORCE_END_TUI__
51
NEFORCE_END_NAMESPACE__
52
#endif
// NEFORCE_TUI_COMPONENT_SLIDER_HPP__
neforce::unique_ptr
独占智能指针
定义
unique_ptr.hpp:206
component.hpp
TUI组件基类
neforce::tui::components::slider
unique_ptr< component_base > slider(slider_options options)
滑块组件
ref.hpp
状态绑定适配器
neforce::tui::components::slider_options
窗口配置
定义
slider.hpp:30
include
NeForce
tui
component
slider.hpp
制作者
1.16.0