28 #ifndef _CEGUISubscriberSlot_h_
29 #define _CEGUISubscriberSlot_h_
31 #include "CEGUIBase.h"
32 #include "CEGUIFreeFunctionSlot.h"
33 #include "CEGUIFunctorCopySlot.h"
34 #include "CEGUIFunctorReferenceSlot.h"
35 #include "CEGUIFunctorPointerSlot.h"
36 #include "CEGUIMemberFunctionSlot.h"
37 #include "CEGUIFunctorReferenceBinder.h"
82 return (*d_functor_impl)(args);
91 return d_functor_impl != 0;
145 #endif // end of guard _CEGUISubscriberSlot_h_
SubscriberSlot(bool(T::*function)(const EventArgs &), T *obj)
Creates a SubscriberSlot that is bound to a member function.
Definition: CEGUISubscriberSlot.h:107
Slot template class that creates a functor that calls back via a functor object pointer.
Definition: CEGUIFunctorPointerSlot.h:42
Slot template class that creates a functor that calls back via a copy of a functor object...
Definition: CEGUIFunctorCopySlot.h:42
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
Slot template class that creates a functor that calls back via a functor object reference.
Definition: CEGUIFunctorReferenceSlot.h:42
SubscriberSlot class which is used when subscribing to events.
Definition: CEGUISubscriberSlot.h:52
SubscriberSlot(const T &functor)
Creates a SubscriberSlot that is bound to a copy of a functor object.
Definition: CEGUISubscriberSlot.h:125
bool operator()(const EventArgs &args) const
Invokes the slot functor that is bound to this Subscriber. Returns whatever the slot returns...
Definition: CEGUISubscriberSlot.h:80
Slot template class that creates a functor that calls back via a class member function.
Definition: CEGUIMemberFunctionSlot.h:42
Defines abstract interface which will be used when constructing various functor objects that bind slo...
Definition: CEGUISlotFunctorBase.h:44
bool connected() const
Returns whether the SubscriberSlot is internally connected (bound).
Definition: CEGUISubscriberSlot.h:89
SubscriberSlot(const FunctorReferenceBinder< T > &binder)
Creates a SubscriberSlot that is bound to a functor object reference.
Definition: CEGUISubscriberSlot.h:116
bool( SlotFunction)(const EventArgs &)
Slot function type.
Definition: CEGUIFreeFunctionSlot.h:44
SubscriberSlot(T *functor)
Creates a SubscriberSlot that is bound to a functor pointer.
Definition: CEGUISubscriberSlot.h:134
Class that enables the creation of a reference binding for a functor object to be used as a callback ...
Definition: CEGUIFunctorReferenceBinder.h:42