FTXUI  3.0.0
C++ functional terminal UI.
Loading...
Searching...
No Matches
maybe.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  ftxui
 

Functions

Component Maybe (Component, std::function< bool()>)
 
ComponentDecorator Maybe (std::function< bool()> show)
 Decorate a component. It is shown only when the |show| function returns true. @params show a function returning whether the decoratorated component should be shown.
 
Component Maybe (Component child, const bool *show)
 Decorate a component |child|. It is shown only when |show| is true. @params child the compoennt to decorate. @params show a boolean. |child| is shown when |show| is true.
 
ComponentDecorator Maybe (const bool *show)
 Decorate a component. It is shown only when |show| is true. @params show a boolean. |child| is shown when |show| is true.