![]() |
Cinder
0.9.1
|
#include <Signals.h>
Inherited by cinder::signals::ScopedConnection.
Public Member Functions | |
Connection () | |
Connection (const std::shared_ptr< detail::Disconnector > &disconnector, detail::SignalLinkBase *link, int priority) | |
bool | disconnect () |
bool | isConnected () const |
void | enable () |
void | disable () |
bool | isEnabled () const |
Connection is returned from Signal::connect(), which can be used to disconnect the callback slot.
cinder::signals::Connection::Connection | ( | ) |
cinder::signals::Connection::Connection | ( | const std::shared_ptr< detail::Disconnector > & | disconnector, |
detail::SignalLinkBase * | link, | ||
int | priority | ||
) |
bool cinder::signals::Connection::disconnect | ( | ) |
Disconnects this Connection from the callback chain. return true if a disconnection was made, false otherwise.
bool cinder::signals::Connection::isConnected | ( | ) | const |
Returns whether or not this Connection is still connected to the callback chain.
void cinder::signals::Connection::enable | ( | ) |
Enable calling the function linked to this Connection. Does not affect the callback chain. Default is enabled.
void cinder::signals::Connection::disable | ( | ) |
Disable calling the function linked to this Connection. Does not affect the callback chain.
bool cinder::signals::Connection::isEnabled | ( | ) | const |
Returns true if the linked function will be called as part of the callback chain. Default is enabled.