|
CPGen
C++ project generator
|
Abstract base class for all TUI components. More...


Go to the source code of this file.
Classes | |
| class | Component |
| Abstract base for all TUI widgets. More... | |
Abstract base class for all TUI components.
Every interactive element displayed by the TUI (checkboxes, text inputs, groups, …) inherits from Component and implements the three virtual methods: render, handleInput, and optionally setFocused.
Components are exclusively owned via std::unique_ptr. The non-copyable, non-movable constraint enforced by the deleted special members reflects this: once a component is constructed and transferred to its owner (e.g. a ComponentGroup or View), it must not be copied or moved.