#include <CEvent.h>
Public Types | |
typedef UInt32 | Type |
typedef UInt32 | Flags |
enum | { kUnknown, kQuit, kSystem, kTimer, kLast } |
enum | { kNone = 0x00, kDeliverImmediately = 0x01, kDontFreeData = 0x02 } |
Public Member Functions | |
CEvent (Type type, void *target=NULL, void *data=NULL, UInt32 flags=kNone) | |
Create CEvent with data. | |
accessors | |
Type | getType () const |
Get event type. | |
void * | getTarget () const |
Get the event target. | |
void * | getData () const |
Get the event data. | |
Flags | getFlags () const |
Get event flags. | |
Static Public Member Functions | |
manipulators | |
Type | registerType (const char *name) |
Creates a new event type. | |
Type | registerTypeOnce (Type &type, const char *name) |
Creates a new event type. | |
const char * | getTypeName (Type type) |
Get name for event. | |
void | deleteData (const CEvent &) |
Release event data. |
A CEvent
holds an event type and a pointer to event data.
Definition at line 25 of file CEvent.h.
|
|
|
|
|
Create
The |
|
Release event data. Deletes event data for the given event (using free()). Definition at line 83 of file CEvent.cpp. References getData(), getFlags(), getType(), kQuit, kSystem, kTimer, and kUnknown. Referenced by CEventQueue::addEvent(), and CEventQueue::adoptBuffer(). |
|
Get the event data. Returns the event data. Definition at line 53 of file CEvent.cpp. Referenced by deleteData(), CStreamFilter::filterEvent(), CXWindowsScreen::handleSystemEvent(), COSXScreen::handleSystemEvent(), and CMSWindowsScreen::handleSystemEvent(). |
|
Get event flags. Returns the event flags. Definition at line 59 of file CEvent.cpp. Referenced by CEventQueue::addEvent(), and deleteData(). |
|
Get the event target. Returns the event target. Definition at line 47 of file CEvent.cpp. Referenced by CEventQueue::dispatchEvent(). |
|
Get event type. Returns the event type. Definition at line 41 of file CEvent.cpp. Referenced by CEventQueue::addEvent(), deleteData(), CEventQueue::dispatchEvent(), CStreamFilter::filterEvent(), and CPacketStreamFilter::filterEvent(). |
|
Get name for event.
Returns the name for the event Definition at line 77 of file CEvent.cpp. |
|
Creates a new event type. Returns a unique event type id. Definition at line 65 of file CEvent.cpp. |
|