FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
style_blink.cpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. All rights reserved.
2// このソースコードの使用は、LICENSEファイルにあるMITライセンスに準拠しています。
3// text, operator|, blink, Fit, hbox, Element のため
4#include <ftxui/dom/elements.hpp> // for text, operator|, blink, Fit, hbox, Element
5// Full, Screen のため
6#include <ftxui/screen/screen.hpp> // for Full, Screen
7// アロケータのため
8#include <memory> // for allocator
9
10// Render のため
11#include "ftxui/dom/node.hpp" // for Render
12// ftxui のため
13#include "ftxui/screen/color.hpp" // for ftxui
14
15int main() {
16 using namespace ftxui;
17 auto document = //
18 hbox({
19 text("このテキストは"),
20 text("点滅します") | blink,
21 text("。気に入りましたか?"),
22 });
23 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
24 Render(screen, document);
25 screen.Print();
26
27 return 0;
28}
FTXUI ftxui:: 名前空間
Definition animation.hpp:9