FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
maybe.cpp 文件参考

浏览该文件的源代码.

命名空间

namespace  ftxui
 #include "ftxui/component/component_base.hpp" // 用于 ComponentBase
 

函数

Component Maybe (Component child, std::function< bool()> show)
 装饰一个组件 |child|。它仅在 |show| 返回 true 时显示。 true。
 
ComponentDecorator Maybe (std::function< bool()> show)
 装饰一个组件。它仅在 |show| 函数返回 true 时显示。 返回 true。
 
Component Maybe (Component child, const bool *show)
 装饰一个组件 |child|。它仅在 |show| 为 true 时显示。
 
ComponentDecorator Maybe (const bool *show)
 装饰一个组件。它仅在 |show| 为 true 时显示。