mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
1011 B
1011 B
Modules
FTXUI is organized into three modules, each building upon the previous:
- @subpage module-screen — low-level rendering
- @subpage module-dom — layout and composition
- @subpage module-component — user interaction
[ @subpage module-screen ]
Defines:
ftxui::Screen: a 2D grid of styled characters.ftxui::Pixel: the unit of rendering.- Helpers like
ftxui::ColorandDimension.
Use for direct terminal drawing and styling.
[ @subpage module-dom ]
Provides:
ftxui::Element: a tree structure for layout and UI.- Composable and responsive elements.
Render()to draw onto aScreen.
Ideal for structured, styled UIs.
[ @subpage module-component ]
Adds:
ftxui::Component: stateful, interactive widgets.- Built-ins:
Checkbox,Input,Menu,Button. - Supports keyboard/cursor input and composition.
Use for interactive apps.
Modules can be used independently, or together: screen → dom → component.