FTXUI 6.1.9
C++ functional terminal UI.
Chargement...
Recherche...
Aucune correspondance
style_inverted.cpp
Aller à la documentation de ce fichier.
1// Copyright 2020 Arthur Sonzogni. Tous droits réservés.
2// L'utilisation de ce code source est régie par la licence MIT qui peut être trouvée
3// dans le fichier LICENSE.
4#include <ftxui/dom/elements.hpp> // for text, operator|, inverted, Fit, hbox, Element
5#include <ftxui/screen/screen.hpp> // for Full, Screen
6#include <memory> // for allocator
7
8#include "ftxui/dom/node.hpp" // for Render
9#include "ftxui/screen/color.hpp" // for ftxui
10
11int main() {
12 using namespace ftxui;
13 auto document = hbox({
14 text("This text is "),
15 text("inverted") | inverted,
16 text(". Do you like it?"),
17 });
18 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
19 Render(screen, document);
20 screen.Print();
21
22 return 0;
23}
auto screen
void Render(Screen &screen, const Element &element)
Affiche un élément sur un ftxui::Screen.
Definition node.cpp:83
L'espace de noms FTXUI ftxui::
Definition animation.hpp:10
int main()