FTXUI
6.1.9
C++ functional terminal UI.
Chargement...
Recherche...
Aucune correspondance
examples/component/radiobox.cpp
Aller à la documentation de ce fichier.
1
// Copyright 2020 Arthur Sonzogni. All rights reserved.
2
// L'utilisation de ce code source est régie par la licence MIT que l'on peut trouver dans
3
// le fichier LICENSE.
4
#include <string>
// for string, allocator, basic_string
5
#include <vector>
// for vector
6
7
#include "
ftxui/component/captured_mouse.hpp
"
// for ftxui
8
#include "
ftxui/component/component.hpp
"
// for Radiobox
9
#include "
ftxui/component/screen_interactive.hpp
"
// for ScreenInteractive
10
11
using namespace
ftxui
;
12
13
int
main
() {
14
std::vector<std::string> radiobox_list = {
15
"Use gcc"
,
16
"Use clang"
,
17
"Use emscripten"
,
18
"Use tcc"
,
19
};
20
int
selected = 0;
21
22
auto
screen
=
ScreenInteractive::TerminalOutput
();
23
screen
.Loop(
Radiobox
(&radiobox_list, &selected));
24
return
0;
25
}
captured_mouse.hpp
component.hpp
screen
auto screen
Definition
composition.cpp:56
main
int main()
Definition
examples/component/radiobox.cpp:13
ftxui::ScreenInteractive::TerminalOutput
static ScreenInteractive TerminalOutput()
Definition
screen_interactive.cpp:331
ftxui::Radiobox
Component Radiobox(RadioboxOption options)
Une liste d'éléments, où un seul peut être sélectionné.
Definition
src/ftxui/component/radiobox.cpp:204
ftxui
L'espace de noms FTXUI ftxui::
Definition
animation.hpp:10
screen_interactive.hpp