TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
engine::LambdaSelectableListener Class Reference

A SelectableListener that safely handles listener to a Selectable and uses a lambda for its callback. More...

#include <tracktion_Selectable.h>

Inheritance diagram for engine::LambdaSelectableListener:

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 engine::SelectableListener
virtual ~SelectableListener ()
 

Public Attributes

std::function< void()> onSelectableChanged
 
std::function< void()> onSelectableAboutToBeDeleted
 

Detailed Description

A SelectableListener that safely handles listener to a Selectable and uses a lambda for its callback.

Constructor & Destructor Documentation

◆ LambdaSelectableListener() [1/2]

engine::LambdaSelectableListener::LambdaSelectableListener ( )
default

Constructs an empty listener.

◆ ~LambdaSelectableListener()

engine::LambdaSelectableListener::~LambdaSelectableListener ( )
override

Destructor.

◆ LambdaSelectableListener() [2/2]

engine::LambdaSelectableListener::LambdaSelectableListener ( Selectable s)

Constructs a listener for a Selectable.

Member Function Documentation

◆ reset()

void engine::LambdaSelectableListener::reset ( Selectable s = nullptr)

Resets the Selectable.

Member Data Documentation

◆ onSelectableChanged

std::function<void()> engine::LambdaSelectableListener::onSelectableChanged

◆ onSelectableAboutToBeDeleted

std::function<void()> engine::LambdaSelectableListener::onSelectableAboutToBeDeleted

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