FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
examples/dom/separator.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, center, separator, operator|, flex, Element, vbox, Fit, hbox, border
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 ftxui
9
10int main() {
11 using namespace ftxui;
12 auto document = hbox({
13 text("left-column"),
14 separator(),
15 vbox({
16 center(text("top")) | flex,
17 separator(),
18 center(text("bottom")),
19 }) | flex,
20 separator(),
21 text("right-column"),
22 }) |
23 border;
24 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
25 Render(screen, document);
26 screen.Print();
27
28 return 0;
29}
FTXUI ftxui:: 名前空間
Definition animation.hpp:9