Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
Revealer Class Reference

#include "stage/model/expander-revealer.hpp"

Description

Functor component to support the default implementation of revealing an UI-Element.

It is built based on a closure (lambda) detailing what actually to do in order to bring a given UI element into sight. A default constructed Revealer disables this feature, which can be detected through the canReveal() function.

Definition at line 147 of file expander-revealer.hpp.

Public Types

using RevealeItFun = std::function< void()>
 

Public Member Functions

 Revealer ()
 
 Revealer (RevealeItFun how_to_uncover_the_element)
 
bool canReveal () const
 
void operator() ()
 

Private Attributes

RevealeItFun revealIt_
 

Constructor & Destructor Documentation

◆ Revealer() [1/2]

Revealer ( )
inline

Definition at line 156 of file expander-revealer.hpp.

◆ Revealer() [2/2]

Revealer ( RevealeItFun  how_to_uncover_the_element)
inline

Definition at line 157 of file expander-revealer.hpp.

References Revealer::canReveal().

+ Here is the call graph for this function:

Member Typedef Documentation

◆ RevealeItFun

using RevealeItFun = std::function<void()>

Definition at line 150 of file expander-revealer.hpp.

Member Function Documentation

◆ canReveal()

bool canReveal ( ) const
inline

Definition at line 164 of file expander-revealer.hpp.

References Revealer::revealIt_.

Referenced by Revealer::Revealer(), Tangible::doReveal(), and Revealer::operator()().

+ Here is the caller graph for this function:

◆ operator()()

void operator() ( )
inline

Definition at line 170 of file expander-revealer.hpp.

References Revealer::canReveal(), and Revealer::revealIt_.

+ Here is the call graph for this function:

Member Data Documentation

◆ revealIt_

RevealeItFun revealIt_
private

Definition at line 153 of file expander-revealer.hpp.

Referenced by Revealer::canReveal(), and Revealer::operator()().

+ Collaboration diagram for Revealer:

The documentation for this class was generated from the following file: