FTXUI/include/ftxui
2020-07-21 01:22:42 +02:00
..
component Fix default char for checkbox and radiobox on Windows. 2020-07-21 01:22:42 +02:00
dom Split frame into {x,y}frame 2020-06-07 15:59:09 +02:00
screen Use shared_ptr instead of unique_ptr for elements. 2020-05-20 20:51:20 +02:00
util Add automatic formatting and license. 2020-04-19 21:01:09 +02:00
README.md Update README.md 2020-02-04 11:48:01 +01:00

Level of abstractions:

  • Level 0: terminal output.
  • Level 1: ftxui::Screen
  • Level 2: ftxui::Node
  • Level 3: ftxui::Component

Level 0: terminal output.

This is std::cout. You can send text to it.

Level 1: ftxui::Screen

A rectangular grid of characters. Use Terminal::ToString() to append its content to the console (level 0).

Level 2: ftxui::Node

A hierarchial set of element. They handle layout and render themself on the screen (level 1) See elements.hpp

You can make implement your own.

Level 3: ftxui::Component

A hierarchical set of components. Components store some state and react to events:

  • keyboard
  • mouse
  • terminal event

Components renders themself by producing ftxui::Node (Level 2)

Implement your own!