#include <omgui/event.h>
Inherits omgui::ConnectionBody.
Public Member Functions | |
void | add_ref () |
void | block (bool b=true) |
bool | blocked () const |
bool | connected () const |
ConnectionImpl (Signal &signal, Signal::slot_type slot) | |
void | disconnect () |
SlotBase & | get_slot () const |
bool | operator== (const ConnectionImpl &other) const |
void | release () |
void | set_iterator (const Signal::Slots::iterator &it) |
Private Types | |
enum | { CONNECTED = 1, BLOCKED = 2 } |
Private Attributes | |
Signal::Slots::iterator | it_ |
Signal & | signal_ |
Signal::slot_type | slot_ |
int | state_ |
Tracks the connected or blocked state of the slot. |
omgui::ConnectionImpl::ConnectionImpl | ( | Signal & | signal, | |
Signal::slot_type | slot | |||
) |
void omgui::RefCounted::add_ref | ( | ) | [virtual, inherited] |
Implements omgui::RefCountable.
void omgui::ConnectionImpl::block | ( | bool | = true |
) | [virtual] |
Blocks the slot, preventing it from being signalled. To unblock the slot and allow it to be signalled again, call block(false).
Implements omgui::ConnectionBody.
bool omgui::ConnectionImpl::blocked | ( | ) | const [virtual] |
Returns whether or not the slot is blocked
Implements omgui::ConnectionBody.
bool omgui::ConnectionImpl::connected | ( | ) | const [virtual] |
Returns whether or not the slot is connected
Implements omgui::ConnectionBody.
void omgui::ConnectionImpl::disconnect | ( | ) | [virtual] |
Disconnects the slot. The slot will no longer be signalled.
Implements omgui::ConnectionBody.
SlotBase & omgui::ConnectionImpl::get_slot | ( | ) | const |
bool omgui::ConnectionImpl::operator== | ( | const ConnectionImpl & | other | ) | const |
Test for equality by comparing SlotBase pointers
void omgui::RefCounted::release | ( | ) | [virtual, inherited] |
Implements omgui::RefCountable.
void omgui::ConnectionImpl::set_iterator | ( | const Signal::Slots::iterator & | it | ) |
Signal::Slots::iterator omgui::ConnectionImpl::it_ [private] |
Signal& omgui::ConnectionImpl::signal_ [private] |
int omgui::ConnectionImpl::state_ [private] |
Tracks the connected or blocked state of the slot.