Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUISubscriberSlot_h_
28 #define _CEGUISubscriberSlot_h_
30 #include "CEGUI/Base.h"
31 #include "CEGUI/FreeFunctionSlot.h"
32 #include "CEGUI/FunctorCopySlot.h"
33 #include "CEGUI/FunctorReferenceSlot.h"
34 #include "CEGUI/FunctorPointerSlot.h"
35 #include "CEGUI/MemberFunctionSlot.h"
36 #include "CEGUI/FunctorReferenceBinder.h"
115 return (*d_functor_impl)(args);
124 return d_functor_impl != 0;
205 #endif // end of guard _CEGUISubscriberSlot_h_
SubscriberSlot class which is used when subscribing to events.
Definition: SubscriberSlot.h:53
~SubscriberSlot()
Destructor. Note this is non-virtual, which should be telling you not to sub-class!
bool connected() const
Returns whether the SubscriberSlot is internally connected (bound).
Definition: SubscriberSlot.h:122
void cleanup()
Disconnects the slot internally and performs any required cleanup operations.
Slot template class that creates a functor that calls back via a functor object pointer.
Definition: FunctorPointerSlot.h:42
SubscriberSlot(FreeFunctionSlotNoArgs::SlotFunction *func)
Creates a SubscriberSlot that is bound to a free function.
Definition: SubscriberSlot.h:85
SubscriberSlot(void(T::*function)(), T *obj)
Creates a SubscriberSlot that is bound to a member function.
Definition: SubscriberSlot.h:167
Slot template class that creates a functor that calls back via a functor object reference.
Definition: FunctorReferenceSlot.h:42
Slot functor class that calls back via a free function pointer. This variant ignores passed EventArgs...
Definition: FreeFunctionSlot.h:124
SubscriberSlot()
Default constructor. Creates a SubscriberSlot with no bound slot.
Slot functor class that calls back via a free function pointer. This variant doesn't require a handle...
Definition: FreeFunctionSlot.h:69
Slot template class that creates a functor that calls back via a class member function....
Definition: MemberFunctionSlot.h:134
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Definition: MemoryAllocatedObject.h:110
Slot template class that creates a functor that calls back via a class member function....
Definition: MemberFunctionSlot.h:73
Class that enables the creation of a reference binding for a functor object to be used as a callback ...
Definition: FunctorReferenceBinder.h:42
void() SlotFunction()
Slot function type.
Definition: FreeFunctionSlot.h:127
SubscriberSlot(FreeFunctionSlot::SlotFunction *func)
Creates a SubscriberSlot that is bound to a free function.
Slot template class that creates a functor that calls back via a copy of a functor object.
Definition: FunctorCopySlot.h:260
SubscriberSlot(FreeFunctionSlotVoidNoArgs::SlotFunction *func)
Creates a SubscriberSlot that is bound to a free function.
Definition: SubscriberSlot.h:96
Slot template class that creates a functor that calls back via a class member function.
Definition: MemberFunctionSlot.h:42
SubscriberSlot(void(T::*function)(const EventArgs &), T *obj)
Creates a SubscriberSlot that is bound to a member function.
Definition: SubscriberSlot.h:149
SubscriberSlot(const T &functor)
Creates a SubscriberSlot that is bound to a copy of a functor object.
Definition: SubscriberSlot.h:185
bool() SlotFunction()
Slot function type.
Definition: FreeFunctionSlot.h:98
SubscriberSlot(T *functor)
Creates a SubscriberSlot that is bound to a functor pointer.
Definition: SubscriberSlot.h:194
Slot template class that creates a functor that calls back via a class member function....
Definition: MemberFunctionSlot.h:102
SubscriberSlot(bool(T::*function)(), T *obj)
Creates a SubscriberSlot that is bound to a member function.
Definition: SubscriberSlot.h:158
bool operator()(const EventArgs &args) const
Invokes the slot functor that is bound to this Subscriber. Returns whatever the slot returns,...
Definition: SubscriberSlot.h:113
SubscriberSlot(FreeFunctionSlotVoid::SlotFunction *func)
Creates a SubscriberSlot that is bound to a free function.
Definition: SubscriberSlot.h:74
void() SlotFunction(const EventArgs &)
Slot function type.
Definition: FreeFunctionSlot.h:72
Slot functor class that calls back via a free function pointer. This variant ignores passed EventArgs...
Definition: FreeFunctionSlot.h:95
Defines abstract interface which will be used when constructing various functor objects that bind slo...
Definition: SlotFunctorBase.h:44
SubscriberSlot(const FunctorReferenceBinder< T > &binder)
Creates a SubscriberSlot that is bound to a functor object reference.
Definition: SubscriberSlot.h:176
bool() SlotFunction(const EventArgs &)
Slot function type.
Definition: FreeFunctionSlot.h:44
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:51
SubscriberSlot(bool(T::*function)(const EventArgs &), T *obj)
Creates a SubscriberSlot that is bound to a member function.
Definition: SubscriberSlot.h:140