|
FTXUI 6.1.9
C++ functional terminal UI.
|
The ftxui::component module defines the logic that produces interactive components that respond to user events (keyboard, mouse, etc.).
The Example section provides a collection of examples.
A ftxui::ScreenInteractive defines a main loop that renders a component.
A ftxui::Component is a shared pointer to a ftxui::ComponentBase. The latter defines:
ftxui::ComponentBase::Render(): How to render the interface.ftxui::ComponentBase::OnEvent(): How to react to events.ftxui::ComponentBase::Add(): Construct a parent/child relationship between two components. The tree of component is used to define how to navigate using the keyboard.ftxui::Element are used to render a single frame.
ftxui::Component are used to render dynamic user interface, producing multiple frame, and updating its state on events.
Gallery of multiple components. (demo)

All predefined components are available in "ftxui/dom/component.hpp"