Crazy Eddie's GUI System
0.8.3
|
LinkedEvent is an Event subclass that provides a mechanism to link or chain Events together, such that when a specified target event is fired, then this event will additionally fire in response. More...
Public Member Functions | |
LinkedEvent (const String &event_name, EventSet *target_event_set) | |
Constructor. More... | |
void | addLinkedTarget (Event &link_target) |
Add a link target for this event. A link target is an event that will trigger this event. More... | |
Public Member Functions inherited from CEGUI::Event | |
Event (const String &name) | |
Constructs a new Event object with the specified name. | |
virtual | ~Event () |
Destructor for Event objects. Note that this is non-virtual and so you should not sub-class Event. | |
const String & | getName (void) const |
Return the name given to this Event object when it was created. More... | |
Connection | subscribe (const Subscriber &slot) |
Subscribes some function or object to the Event. More... | |
Connection | subscribe (Group group, const Subscriber &slot) |
Subscribes some function or object to the Event. More... | |
void | operator() (EventArgs &args) |
Fires the event. All event subscribers get called in the appropriate sequence. More... | |
Protected Types | |
typedef std::vector < Event::Connection CEGUI_VECTOR_ALLOC(Event::Connection)> | LinkedConnections |
Protected Types inherited from CEGUI::Event | |
typedef std::multimap< Group, Connection, std::less< Group > CEGUI_MULTIMAP_ALLOC(Group, Connection)> | SlotContainer |
Protected Member Functions | |
bool | handler (const EventArgs &args) |
LinkedEvent (const LinkedEvent &e) | |
Protected Member Functions inherited from CEGUI::Event | |
void | unsubscribe (const BoundSlot &slot) |
Disconnects and removes the given BoundSlot from the collection of bound slots attached to this Event, thus 'unsubscribing' it. More... | |
Event (const Event &) | |
Event & | operator= (const Event &) |
Protected Attributes | |
LinkedConnections | d_connections |
collection of connection to the linked Events. | |
const EventSet * | d_owner |
reference to the event set that we added ourself to | |
Protected Attributes inherited from CEGUI::Event | |
SlotContainer | d_slots |
Collection holding ref-counted bound slots. | |
const String | d_name |
Name of this event. | |
Additional Inherited Members | |
Public Types inherited from CEGUI::Event | |
typedef RefCounted< BoundSlot > | Connection |
Connection object. This is a thin 'smart pointer' wrapper around the actual BoundSlot that represents the connection. You can use this object to inspect the current connection state and also to disconnect from the event. | |
typedef CEGUI::SubscriberSlot | Subscriber |
Subscriber object type. This is now just a typedef to SubscriberSlot, the use of the name Event::Subscriber is maintained for hostorical and compatability reasons. | |
typedef unsigned int | Group |
Type for a subscriber group. You can use the subscriber group to order calls to multiple subscribers. Groups are called in ascending order, with subscribers with no group called last. | |
LinkedEvent is an Event subclass that provides a mechanism to link or chain Events together, such that when a specified target event is fired, then this event will additionally fire in response.
Constructor.
name | String object describing the name that this Event will use. |
target_event_set | EventSet that the LinkedEvent should add itself to. |
void CEGUI::LinkedEvent::addLinkedTarget | ( | Event & | link_target | ) |
Add a link target for this event. A link target is an event that will trigger this event.
link_target | Reference to an Event that, when fired, will additionally cause this Event to fire. |