FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
style_gallery.cpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. All rights reserved.
2// このソースコードの使用は、LICENSEファイルに記載されているMITライセンスに準拠しています。
3#include <ftxui/dom/elements.hpp> // for text, operator|, Element, bgcolor, color, blink, bold, dim, inverted, underlined, Fit, hbox
4#include <ftxui/screen/screen.hpp> // for Full, Screen
5#include <memory> // for allocator
6
7#include "ftxui/dom/node.hpp" // for Render
8#include "ftxui/screen/color.hpp" // for Color, Color::Blue, ftxui
9
10int main() {
11 using namespace ftxui;
12 // clang-format off
13 auto document =
14 hbox({
15 text("normal") , text(" ") ,
16 text("bold") | bold , text(" ") ,
17 text("italic") | italic , text(" ") ,
18 text("dim") | dim , text(" ") ,
19 text("inverted") | inverted , text(" ") ,
20 text("underlined") | underlined , text(" ") ,
21 text("underlinedDouble") | underlinedDouble , text(" ") ,
22 text("blink") | blink , text(" ") ,
23 text("strikethrough") | strikethrough , text(" ") ,
24 text("color") | color(Color::Blue) , text(" ") ,
25 text("bgcolor") | bgcolor(Color::Blue) , text(" ") ,
26 text("hyperlink") | hyperlink("https://github.com/ArthurSonzogni/FTXUI"),
27 });
28 // clang-format on
29 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
30 Render(screen, document);
31 screen.Print();
32
33 return 0;
34}
FTXUI ftxui:: 名前空間
Definition animation.hpp:9