|
TracktionEngine
|
A SelectableListener that safely handles listener to a Selectable and uses a lambda for its callback. More...
#include <tracktion_Selectable.h>
Public Member Functions | |
| LambdaSelectableListener ()=default | |
| Constructs an empty listener. | |
| ~LambdaSelectableListener () override | |
| Destructor. | |
| LambdaSelectableListener (Selectable &s) | |
| Constructs a listener for a Selectable. | |
| void | reset (Selectable *s=nullptr) |
| Resets the Selectable. | |
Public Member Functions inherited from tracktion::engine::SelectableListener | |
| virtual | ~SelectableListener () |
Public Attributes | |
| std::function< void()> | onSelectableChanged |
| std::function< void()> | onSelectableAboutToBeDeleted |
A SelectableListener that safely handles listener to a Selectable and uses a lambda for its callback.
|
default |
Constructs an empty listener.
|
override |
Destructor.
References reset().
| tracktion::engine::LambdaSelectableListener::LambdaSelectableListener | ( | Selectable & | s | ) |
Constructs a listener for a Selectable.
References reset().
| void tracktion::engine::LambdaSelectableListener::reset | ( | Selectable * | s = nullptr | ) |
Resets the Selectable.
Referenced by LambdaSelectableListener(), and ~LambdaSelectableListener().
| std::function<void()> tracktion::engine::LambdaSelectableListener::onSelectableChanged |
| std::function<void()> tracktion::engine::LambdaSelectableListener::onSelectableAboutToBeDeleted |