FTXUI
6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
examples/component/slider.cpp
Go to the documentation of this file.
1
#include "
ftxui/component/captured_mouse.hpp
"
// for ftxui
2
#include "
ftxui/component/component.hpp
"
// for Slider
3
#include "
ftxui/component/screen_interactive.hpp
"
// for 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
// Copyright 2020 Arthur Sonzogni. All rights reserved.
15
// Use of this source code is governed by the MIT license that can be found in
16
// the LICENSE file.
captured_mouse.hpp
component.hpp
main
int main()
Definition
examples/component/slider.cpp:7
ftxui::ScreenInteractive::TerminalOutput
static ScreenInteractive TerminalOutput()
ターミナル出力の幅に一致し、描画されるコンポーネントの高さに一致するScreenInteractiveを作成します。
Definition
screen_interactive.cpp:325
ftxui
FTXUI ftxui:: 名前空間
Definition
animation.hpp:9
ftxui::Slider
Component Slider(SliderOption< T > options)
どの方向にも対応するスライダー。
Definition
src/ftxui/component/slider.cpp:315
screen_interactive.hpp