FTXUI
6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
style_inverted.cpp
Go to the documentation of this file.
1
// Copyright 2020 Arthur Sonzogni. All rights reserved.
2
// Use of this source code is governed by the MIT license that can be found in
3
// the LICENSE file.
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
11
int
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
}
color.hpp
elements.hpp
ftxui
The FTXUI ftxui:: namespace.
Definition
animation.hpp:10
node.hpp
screen.hpp
main
int main()
Definition
style_inverted.cpp:11
examples
dom
style_inverted.cpp
Generated by
1.12.0