Cinder  0.9.1
Public Member Functions | List of all members
cinder::signals::Connection Class Reference

#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
 

Detailed Description

Connection is returned from Signal::connect(), which can be used to disconnect the callback slot.

Constructor & Destructor Documentation

cinder::signals::Connection::Connection ( )
cinder::signals::Connection::Connection ( const std::shared_ptr< detail::Disconnector > &  disconnector,
detail::SignalLinkBase link,
int  priority 
)

Member Function Documentation

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.


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