|
FTXUI 6.1.9
C++ functional terminal UI.
|
命名空间 | |
| namespace | ftxui |
| #include "ftxui/component/component_base.hpp" // 用于 ComponentBase | |
函数 | |
| Component | CatchEvent (Component child, std::function< bool(Event event)> on_event) |
| 返回一个组件,使用|on_event|捕获事件。当事件已被处理时,此函数必须返回true,否则返回false。 | |
| ComponentDecorator | CatchEvent (std::function< bool(Event)> on_event) |
| 装饰一个组件,使用|on_event|捕获事件。当事件已被处理时,此函数必须返回true,否则返回false。 | |