GL Studio API
|
#include <events.h>
Public Member Functions | |
ObjectEvent (DisplayObject *initiator, const char *eventName, const char *eventData=NULL) | |
ObjectEvent (DisplayObject *initiator, unsigned short eventSubtypeArg) | |
DisplayObject * | Initiator () const |
void | Initiator (DisplayObject *initiator) |
const char * | EventName () const |
void | EventName (const char *newName) |
const char * | EventData () const |
void | EventData (const char *newData) |
bool | EventNameIs (const char *eventName) const |
bool | EventDataIs (const char *eventData) const |
Public Member Functions inherited from DisplayEvent | |
DisplayEvent () | |
DisplayEvent (const DisplayEvent &source) | |
virtual | ~DisplayEvent () |
Additional Inherited Members | |
Public Attributes inherited from DisplayEvent | |
unsigned short | eventType |
unsigned short | eventSubtype |
The ObjectEvent class This event is intended to be emitted by objects, rather than by a mouse or keyboard.
|
inline |
Create an ObjectEvent, setting the initator and event name
initiator | Pointer to the object that initated the event |
eventName | Name of the event |
eventData | Data of the event |
|
inline |
Create an ObjectEvent, setting the initator and event subtype
initiator | Pointer to the object that initated the event |
eventSubtypeArg | The arbitrary event subtype |
|
inline |
|
inline |
Set the data of the event, NULL terminated. For CRT safety, this should only be called by the constructing code
newData | The name to set |
|
inline |
return true if the name of this event matches the given name.
eventData | The name to compare |
|
inline |
|
inline |
Set the name of the event For CRT safety, this should only be called by the constructing code
newName | The name to set |
|
inline |
return true if the name of this event matches the given name.
eventName | The name to compare |
|
inline |
|
inline |
Set which object initiated the event
initiator | Pointer to the object that initiated the event |