FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
component_base.cppm
浏览该文件的文档.
1/// @module ftxui.component:ComponentBase
2/// @brief Component 模块的 ComponentBase 类的模块文件
3
4module;
5
7
9
10 /**
11 * @namespace ftxui
12 * @brief FTXUI ftxui:: 命名空间
13 */export namespace ftxui {
14 using ftxui::Delegate;
15 using ftxui::Focus;
16 using ftxui::Event;
17
18 /**
19 * @namespace animation
20 * @brief FTXUI ftxui::animation:: 命名空间
21 */
22 namespace animation {
24 }
25
27 using ftxui::Component;
29}
它将自身实现为 ftxui::Element。它通过响应 ftxui::Event 来实现键盘导航。
代表一个事件。它可以是按键事件、终端大小调整等等...
FTXUI组件操作的模块文件。
FTXUI ftxui::animation:: 命名空间
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
std::vector< Component > Components
std::shared_ptr< ComponentBase > Component