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/app.hpp" // for App
2#include "ftxui/component/captured_mouse.hpp" // for ftxui
3#include "ftxui/component/component.hpp" // for Slider
4
5using namespace ftxui;
6
7int main() {
8 auto screen = App::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.
static App TerminalOutput()
Definition app.cpp:325
The FTXUI ftxui:: namespace.
Definition animation.hpp:10
Component Slider(SliderOption< T > options)
A slider in any direction.