FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
catch_event.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  ftxui
 FTXUI 的 ftxui:: 命名空間
 

Functions

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。