FTXUI 7.0.3
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。