FTXUI
6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
screen_interactive.cppm
浏览该文件的文档.
1
/// @module ftxui.component:ScreenInteractive
2
/// @brief Component 模块中 ScreenInteractive 类的模块文件
3
4
module
;
5
6
#include <
ftxui/component/screen_interactive.hpp
>
7
8
export
module
ftxui.component:ScreenInteractive
;
9
10
/**
11
* @namespace ftxui
12
* @brief FTXUI ftxui:: 命名空间
13
*/
14
export
namespace
ftxui
{
15
using
ftxui::ComponentBase
;
16
using
ftxui::Loop
;
17
using
ftxui::Event
;
18
using
ftxui::Component
;
19
20
using
ftxui::Screen
;
21
using
ftxui::ScreenInteractivePrivate;
22
using
ftxui::ScreenInteractive
;
23
}
ftxui::ComponentBase
它将自身实现为 ftxui::Element。它通过响应 ftxui::Event 来实现键盘导航。
定义
component_base.hpp:28
ftxui::Loop
Loop 是一个管理组件事件循环的类。
定义
loop.hpp:55
ftxui::ScreenInteractive
ScreenInteractive 是一个可以处理事件、运行主循环和管理组件的 Screen。
定义
screen_interactive.hpp:33
ftxui::Event
代表一个事件。它可以是按键事件、终端大小调整等等...
定义
event.hpp:28
ftxui::Screen
像素的矩形网格。
定义
screen.hpp:26
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
screen_interactive.hpp