FTXUI
6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
loop.cppm
浏览该文件的文档.
1
/// @module ftxui.component:Loop
2
/// @brief 组件模块中Loop类的模块文件
3
4
module
;
5
6
#include <
ftxui/component/loop.hpp
>
7
8
export
module
ftxui.component:Loop
;
9
10
/**
11
* @namespace ftxui
12
* @brief FTXUI ftxui:: 命名空间
13
*/
14
export
namespace
ftxui
{
15
using
ftxui::ComponentBase
;
16
using
ftxui::Component
;
17
using
ftxui::ScreenInteractive
;
18
19
using
ftxui::Loop
;
20
}
ftxui::ComponentBase
它将自身实现为 ftxui::Element。它通过响应 ftxui::Event 来实现键盘导航。
定义
component_base.hpp:28
ftxui::Loop
Loop 是一个管理组件事件循环的类。
定义
loop.hpp:55
ftxui::ScreenInteractive
ScreenInteractive 是一个可以处理事件、运行主循环和管理组件的 Screen。
定义
screen_interactive.hpp:33
loop.hpp
ftxui.component
FTXUI组件操作的模块文件。
ftxui
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
定义
animation.hpp:9
ftxui::Component
std::shared_ptr< ComponentBase > Component
定义
component_base.hpp:23