FTXUI 6.1.9
C++ functional terminal UI.
Chargement...
Recherche...
Aucune correspondance
style_italic.cpp
Aller à la documentation de ce fichier.
1// Copyright 2025 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 dans
3// 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("Ce texte est "),
15 text("italique") | italic,
16 text(". L'aimez-vous ?"),
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()