Crazy Eddie's GUI System
0.8.7
|
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 4521 4522)
298 template<
typename Arg1,
typename Arg2>
309 template<
typename Arg1,
typename Arg2>
331 const String& subscriber_name);
354 const String& subscriber_name);
375 const String& eventNamespace =
"");
458 #if defined(_MSC_VER)
459 # pragma warning(pop)
462 #endif // end of guard _CEGUIEventSet_h_
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: EventSet.h:299
SubscriberSlot class which is used when subscribing to events.
Definition: SubscriberSlot.h:53
EventSet(const EventSet &)
Definition: EventSet.h:431
virtual Event::Connection subscribeEvent(const String &name, Event::Subscriber subscriber)
Subscribes a handler to the named Event. If the named Event is not yet present in the EventSet,...
void removeEvent(Event &event)
Removes the given event from the EventSet. All connections to the event are disconnected,...
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: String.h:5580
EventIterator getEventIterator(void) const
Return a EventSet::EventIterator object to iterate over the events currently added to the EventSet.
bool isEventPresent(const String &name)
Checks to see if an Event with the given name is present in this EventSet.
void addEvent(Event &event)
Adds the given Event object to the EventSet. Ownership of the object passes to EventSet and it will b...
bool d_muted
true if events for this EventSet have been muted.
Definition: EventSet.h:439
virtual Event::Connection subscribeScriptedEvent(const String &name, const String &subscriber_name)
Subscribes the named Event to a scripted funtion.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Interface providing event signaling and handling.
Definition: EventSet.h:167
ScriptModule * getScriptModule() const
Helper to return the script module pointer or throw.
virtual Event::Connection subscribeEvent(const String &name, Event::Group group, Event::Subscriber subscriber)
Subscribes a handler to the specified group of the named Event. If the named Event is not yet present...
virtual ~EventSet(void)
Destructor for EventSet objects.
Event * getEventObject(const String &name, bool autoAdd=false)
Return a pointer to the Event object with the given name, optionally adding such an Event object to t...
unsigned int Group
Type for a subscriber group. You can use the subscriber group to order calls to multiple subscribers....
Definition: Event.h:84
virtual Event::Connection subscribeScriptedEvent(const String &name, Event::Group group, const String &subscriber_name)
Subscribes the specified group of the named Event to a scripted funtion.
EventSet & operator=(const EventSet &)
Definition: EventSet.h:433
void removeAllEvents(void)
Remove all Event objects from the EventSet. Add connections will be disconnected, and all Event objec...
void fireEvent_impl(const String &name, EventArgs &args)
Implementation event firing member.
void setMutedState(bool setting)
Set the mute state for this EventSet.
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: EventSet.h:310
void removeEvent(const String &name)
Removes the Event with the given name. All connections to the event are disconnected,...
virtual void fireEvent(const String &name, EventArgs &args, const String &eventNamespace="")
Fires the named event passing the given EventArgs object.
iterator class for maps
Definition: IteratorBase.h:197
void addEvent(const String &name)
Creates a new Event object with the given name and adds it to the EventSet.
Defines an 'event' which can be subscribed to by interested parties.
Definition: Event.h:59
String class used within the GUI system.
Definition: String.h:64
EventSet()
Constructor for EventSet objects.
bool isMuted(void) const
Return whether the EventSet is muted or not.
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:51
Abstract interface required for all scripting support modules to be used with the CEGUI system.
Definition: ScriptModule.h:47