29 #ifndef _CEGUIEventSet_h_ 30 #define _CEGUIEventSet_h_ 32 #include "CEGUI/Base.h" 33 #include "CEGUI/String.h" 34 #include "CEGUI/Event.h" 35 #include "CEGUI/IteratorBase.h" 38 #if defined (_MSC_VER) 39 # pragma warning(push) 40 # pragma warning(disable : 4251) 91 void addEvent(
const String& name);
108 void addEvent(
Event& event);
119 void removeEvent(
const String& name);
130 void removeEvent(
Event& event);
137 void removeAllEvents(
void);
148 bool isEventPresent(
const String& name);
196 template<
typename Arg1,
typename Arg2>
207 template<
typename Arg1,
typename Arg2>
229 const String& subscriber_name);
252 const String& subscriber_name);
273 const String& eventNamespace =
"");
286 bool isMuted(
void)
const;
298 void setMutedState(
bool setting);
319 Event* getEventObject(
const String& name,
bool autoAdd =
false);
335 CEGUI_MAP_ALLOC(String, Event*)> EventMap;
351 EventIterator getEventIterator(
void)
const;
357 #if defined(_MSC_VER) 358 # pragma warning(pop) 361 #endif // end of guard _CEGUIEventSet_h_ Abstract interface required for all scripting support modules to be used with the CEGUI system...
Definition: cegui/include/CEGUI/ScriptModule.h:45
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: cegui/include/CEGUI/String.h:5579
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
SubscriberSlot class which is used when subscribing to events.
Definition: cegui/include/CEGUI/SubscriberSlot.h:51
bool d_muted
true if events for this EventSet have been muted.
Definition: cegui/include/CEGUI/EventSet.h:338
Class that collects together a set of Event objects.
Definition: cegui/include/CEGUI/EventSet.h:64
iterator class for maps
Definition: cegui/include/CEGUI/IteratorBase.h:196
Event::Connection subscribeEvent(const String &name, Event::Group group, Arg1 arg1, Arg2 arg2)
Subscribes a handler to the named Event. If the named Event is not yet present in the EventSet...
Definition: cegui/include/CEGUI/EventSet.h:208
Defines an 'event' which can be subscribed to by interested parties.
Definition: cegui/include/CEGUI/Event.h:57
unsigned int Group
Type for a subscriber group. You can use the subscriber group to order calls to multiple subscribers...
Definition: cegui/include/CEGUI/Event.h:84
Event::Connection subscribeEvent(const String &name, Arg1 arg1, Arg2 arg2)
Subscribes a handler to the named Event. If the named Event is not yet present in the EventSet...
Definition: cegui/include/CEGUI/EventSet.h:197
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62