The GlobalEventSet singleton allows you to subscribe to an event for all instances of a class. The GlobalEventSet effectively supports "late binding" to events; which means you can subscribe to some event that does not actually exist (yet). More...
Inherits GUI::EventSet.
Public Member Functions | |
void | fireEvent (string name, EventArgs args, string eventNamespace="") |
Fires the named event passing the given EventArgs object. | |
Public Member Functions inherited from GUI::EventSet | |
void | addEvent (string name) |
Add a new Event to the EventSet with the given name. | |
void | removeEvent (string name) |
Removes the Event with the given name. All connections to the event are disconnected. | |
void | removeAllEvents () |
Remove all Event objects from the EventSet. | |
bool | isEventPresent (string name) |
Checks to see if an Event with the given name is present in the EventSet. | |
EventConnection | subscribeEvent (string name, string subscriber_name) |
Subscribes the named Event to a scripted funtion. | |
bool | isMuted () |
Return whether the EventSet is muted or not. | |
void | setMutedState (bool setting) |
Set the mute state for this EventSet. |
Additional Inherited Members | |
Public Attributes inherited from GUI::EventSet | |
Event | Event |
Can be used to iterate over the events currently added to the EventSet. |
The GlobalEventSet singleton allows you to subscribe to an event for all instances of a class. The GlobalEventSet effectively supports "late binding" to events; which means you can subscribe to some event that does not actually exist (yet).
void GUI::GlobalEventSet::fireEvent | ( | string | name, |
EventArgs | args, | ||
string | eventNamespace = "" |
||
) |
Fires the named event passing the given EventArgs object.
name | String object holding the name of the Event that is to be fired (triggered) |
args | The EventArgs (or derived) object that is to be bassed to each subscriber of the Event. Once all subscribers have been called the 'handled' field of the event is updated appropriately. |
eventNamespace | String object describing the namespace prefix to use when firing the global event. |
Reimplemented from GUI::EventSet.