2018-10-10 01:06:03 +08:00
|
|
|
#
|
|
|
|
* Level 0: terminal output.
|
|
|
|
* Level 1: ftxui::Screen
|
2019-01-12 22:00:08 +08:00
|
|
|
* Level 2: ftxui::Node
|
|
|
|
* Level 3: ftxui::Component
|
2018-10-10 01:06:03 +08:00
|
|
|
|
|
|
|
## Level 0: terminal output.
|
|
|
|
The terminal you know, you can append text on it. It is represented by
|
|
|
|
std::cout.
|
|
|
|
|
|
|
|
## Level 1: ftxui::Screen
|
|
|
|
A rectangular grid of characters.
|
|
|
|
Use Terminal::ToString() to append its content into the console.
|
|
|
|
|
2019-01-12 22:00:08 +08:00
|
|
|
## Level 2: ftxui::Node
|
2018-10-10 01:06:03 +08:00
|
|
|
A hierarchical set of element.
|
|
|
|
They handle layout and Render themself on the screen.
|
|
|
|
See ftxui/dom/elements.hpp
|
|
|
|
|
|
|
|
You can make implement your own.
|
|
|
|
|
2019-01-12 22:00:08 +08:00
|
|
|
## Level 3: ftxui::Component
|
2018-10-10 01:06:03 +08:00
|
|
|
A hierarchical set of component. A component render itself by producing
|
2019-01-12 22:00:08 +08:00
|
|
|
ftxui::Node in Component::Render().
|
2019-01-05 09:03:49 +08:00
|
|
|
|
2018-10-10 01:06:03 +08:00
|
|
|
Some component can handle events:
|
|
|
|
* keyboard
|
|
|
|
* mouse
|
|
|
|
* terminal event
|
|
|
|
|
2018-10-21 20:18:11 +08:00
|
|
|
Implement your own!
|