Inheritance diagram for CP_EventHandler:
Public Member Functions | |
Constructor / Destructor | |
CP_EventHandler () | |
Constructor. | |
CP_EventHandler (EventTargetRef inTarget) | |
virtual | ~CP_EventHandler () |
Destructor. | |
Events | |
void | Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL) |
void | Remove (UInt32 inEventClass, UInt32 inEventKind) |
bool | HasHandler (UInt32 inEventClass, UInt32 inEventKind) |
CP_EventSignal * | FindHandler (UInt32 inEventClass, UInt32 inEventKind) |
Getters | |
EventTargetRef | GetEventTargetRef () |
Setters | |
void | SetEventTargetRef (EventTargetRef inTarget) |
Events | |
void | Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL) |
void | Remove (UInt32 inEventClass, UInt32 inEventKind) |
bool | HasHandler (UInt32 inEventClass, UInt32 inEventKind) |
CP_EventSignal * | FindHandler (UInt32 inEventClass, UInt32 inEventKind) |
Getters | |
EventTargetRef | GetEventTargetRef () |
Setters | |
void | SetEventTargetRef (EventTargetRef inTarget) |
Protected Attributes | |
CP_EventHandler_Map | fEventHandlers |
EventTargetRef | fTarget |
EventHandlerRef | fEventHandlerRef |
|
Constructor. |
|
Constructor. |
|
Destructor. |
|
Adds the passed in event and event signal handler to the list of events we maintain. This will also register with the Carbon Event handler the fact that we handle the passed in event class and event kind.
|
|
Removes the event hanndler associated with the passed in event class and event kind. This will also delete the event signal associated with the event class and kind, if the event is found.
|
|
Returns true if we have an installed handler for the passed in inEventClass and inEventKind.
|
|
Returns the CP_EventSignal that will handle the passed in Carbon Event, based on the event class and event kind.
|
|
|
|
|
|
|
|
Map that contains all of the registered handlers. |
|
Carbon Event target ref. |