13 bool checked[3] = {
false,
false,
false};
18 Add(Container::Vertical({
22 Slider(
"Curseur", &slider, 0.f, 100.f),
30 int window_1_left = 20;
31 int window_1_top = 10;
32 int window_1_width = 40;
33 int window_1_height = 20;
37 .title =
"Première fenêtre",
38 .left = &window_1_left,
40 .width = &window_1_width,
41 .height = &window_1_height,
46 .title =
"Ma fenêtre",
53 .title =
"Ma fenêtre",
62 auto window_5 =
Window({});
64 auto window_container = Container::Stacked({
73 return text(
"window_1: " +
74 std::to_string(window_1_width) +
"x" +
75 std::to_string(window_1_height) +
" + " +
76 std::to_string(window_1_left) +
"," +
77 std::to_string(window_1_top));
80 auto layout = Container::Vertical({
Component DummyWindowContent()
void Add(Component children)
Ajoute un enfant. @param child L'enfant à attacher.
static ScreenInteractive Fullscreen()
Il implémente son propre rendu en tant que ftxui::Element. Il implémente la navigation au clavier en ...
Component Renderer(Component child, std::function< Element()>)
Renvoie un nouveau composant, similaire à |child|, mais utilisant |render| comme événement Component:...
Component Checkbox(CheckboxOption options)
Dessine un élément à cocher.
Element text(std::wstring text)
Affiche un morceau de texte unicode.
L'espace de noms FTXUI ftxui::
std::shared_ptr< T > Make(Args &&... args)
Component Window(WindowOptions option)
Component Slider(SliderOption< T > options)
Un curseur dans n'importe quelle direction.
std::shared_ptr< ComponentBase > Component