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"
51 class CEGUIEXPORT SubscriberSlot :
52 public AllocatedObject<SubscriberSlot>
97 d_functor_impl(CEGUI_NEW_AO FreeFunctionSlotVoidNoArgs(func))
113 bool operator()(
const EventArgs& args)
const
115 return (*d_functor_impl)(args);
122 bool connected()
const
124 return d_functor_impl != 0;
158 SubscriberSlot(
bool (T::*
function)(), T* obj) :
159 d_functor_impl(new MemberFunctionSlotNoArgs<T>(function, obj))
205 #endif // end of guard _CEGUISubscriberSlot_h_
SubscriberSlot class which is used when subscribing to events.
Definition: SubscriberSlot.h:75
Slot template class that creates a functor that calls back via a functor object pointer.
Definition: FunctorPointerSlot.h:65
Slot template class that creates a functor that calls back via a functor object reference.
Definition: FunctorReferenceSlot.h:65
Slot functor class that calls back via a free function pointer. This variant doesn't require a handle...
Definition: FreeFunctionSlot.h:92
Slot template class that creates a functor that calls back via a class member function....
Definition: MemberFunctionSlot.h:157
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Slot template class that creates a functor that calls back via a class member function....
Definition: MemberFunctionSlot.h:96
Class that enables the creation of a reference binding for a functor object to be used as a callback ...
Definition: FunctorReferenceBinder.h:65
void() SlotFunction()
Slot function type.
Definition: FreeFunctionSlot.h:151
Slot template class that creates a functor that calls back via a copy of a functor object.
Definition: FunctorCopySlot.h:284
Slot template class that creates a functor that calls back via a class member function.
Definition: MemberFunctionSlot.h:65
bool() SlotFunction()
Slot function type.
Definition: FreeFunctionSlot.h:122
void() SlotFunction(const EventArgs &)
Slot function type.
Definition: FreeFunctionSlot.h:96
Slot functor class that calls back via a free function pointer. This variant ignores passed EventArgs...
Definition: FreeFunctionSlot.h:118
Defines abstract interface which will be used when constructing various functor objects that bind slo...
Definition: SlotFunctorBase.h:67
bool() SlotFunction(const EventArgs &)
Slot function type.
Definition: FreeFunctionSlot.h:92
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:73