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
11using namespace ftxui;
12
13int 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
23 screen.Loop(Radiobox(&radiobox_list, &selected));
24 return 0;
25}
auto screen
static ScreenInteractive TerminalOutput()
Component Radiobox(RadioboxOption options)
Une liste d'éléments, où un seul peut être sélectionné.
L'espace de noms FTXUI ftxui::
Definition animation.hpp:10