27 #ifndef _CEGUIMemberFunctionSlot_h_
28 #define _CEGUIMemberFunctionSlot_h_
30 #include "CEGUI/SlotFunctorBase.h"
41 class MemberFunctionSlot :
public SlotFunctorBase
52 virtual bool operator()(
const EventArgs& args)
54 return (d_object->*d_function)(args);
72 class MemberFunctionSlotVoid :
public SlotFunctorBase
83 virtual bool operator()(
const EventArgs& args)
85 (d_object->*d_function)(args);
101 class MemberFunctionSlotNoArgs :
public SlotFunctorBase
112 virtual bool operator()(
const EventArgs& )
114 return (d_object->*d_function)();
133 class MemberFunctionSlotVoidNoArgs :
public SlotFunctorBase
144 virtual bool operator()(
const EventArgs& )
146 (d_object->*d_function)();
158 #endif // end of guard _CEGUIMemberFunctionSlot_h_
void(T::* MemberFunctionType)(const EventArgs &)
Member function slot type.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:76
bool(T::* MemberFunctionType)(const EventArgs &)
Member function slot type.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:45
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Base class used as the argument to all subscribers Event object.
Definition: cegui/include/CEGUI/EventArgs.h:49
void(T::* MemberFunctionType)()
Member function slot type.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:137
bool(T::* MemberFunctionType)()
Member function slot type.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:105
Slot template class that creates a functor that calls back via a class member function.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:41
Slot template class that creates a functor that calls back via a class member function. This variant doesn't require a handler that returns bool.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:72
Slot template class that creates a functor that calls back via a class member function. This variant ignores passed EventArgs.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:101
Slot template class that creates a functor that calls back via a class member function. This variant ignores passed EventArgs and the handler doesn't have to return a bool.
Definition: cegui/include/CEGUI/MemberFunctionSlot.h:133