FTXUI
6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
examples/component/slider.cpp
浏览该文件的文档.
1
#include "
ftxui/component/captured_mouse.hpp
"
// 适用于 ftxui
2
#include "
ftxui/component/component.hpp
"
// 适用于 滑块
3
#include "
ftxui/component/screen_interactive.hpp
"
// 适用于 ScreenInteractive
4
5
using namespace
ftxui
;
6
7
int
main
() {
8
auto
screen =
ScreenInteractive::TerminalOutput
();
9
int
value = 50;
10
auto
slider =
Slider
(
"Value:"
, &value, 0, 100, 1);
11
screen.Loop(slider);
12
}
13
14
// 版权所有 2020 Arthur Sonzogni. 保留所有权利。
15
// 此源代码的使用受 MIT 许可的约束,MIT 许可可在
16
// LICENSE 文件中找到。
captured_mouse.hpp
component.hpp
main
int main()
定义
examples/component/slider.cpp:7
ftxui::ScreenInteractive::TerminalOutput
static ScreenInteractive TerminalOutput()
定义
screen_interactive.cpp:330
ftxui
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
定义
animation.hpp:9
ftxui::Slider
Component Slider(SliderOption< T > options)
任意方向的滑块。
定义
src/ftxui/component/slider.cpp:316
screen_interactive.hpp