Modifier and Type | Interface and Description |
---|---|
static interface |
Carbon.EventHandlerProcPtr |
static class |
Carbon.EventHotKeyID |
static class |
Carbon.EventTypeSpec |
Library.Handler
Modifier and Type | Field and Description |
---|---|
static int |
cmdKey |
static int |
controlKey |
static Carbon |
INSTANCE |
static int |
optionKey |
static int |
shiftKey |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
Pointer |
GetEventDispatcherTarget()
Obtains the event target reference for the standard toolbox dispatcher
|
int |
GetEventParameter(Pointer inEvent,
int inName,
int inDesiredType,
Pointer outActualType,
int inBufferSize,
IntBuffer outActualSize,
Carbon.EventHotKeyID outData)
Obtains a parameter from the specified event.
|
int |
InstallEventHandler(Pointer inTarget,
Carbon.EventHandlerProcPtr inHandler,
int inNumTypes,
Carbon.EventTypeSpec[] inList,
Pointer inUserData,
PointerByReference outRef)
Installs an event handler on a specified event target.
|
int |
RegisterEventHotKey(int inHotKeyCode,
int inHotKeyModifiers,
Carbon.EventHotKeyID.ByValue inHotKeyID,
Pointer inTarget,
int inOptions,
PointerByReference outRef)
Registers a global hot key.
|
int |
RemoveEventHandler(Pointer inHandlerRef)
Removes the specified event handler
|
int |
UnregisterEventHotKey(Pointer inHotKey)
Unregisters a global hot key.
|
static final Carbon INSTANCE
static final int cmdKey
static final int shiftKey
static final int optionKey
static final int controlKey
Pointer GetEventDispatcherTarget()
int InstallEventHandler(Pointer inTarget, Carbon.EventHandlerProcPtr inHandler, int inNumTypes, Carbon.EventTypeSpec[] inList, Pointer inUserData, PointerByReference outRef)
int RegisterEventHotKey(int inHotKeyCode, int inHotKeyModifiers, Carbon.EventHotKeyID.ByValue inHotKeyID, Pointer inTarget, int inOptions, PointerByReference outRef)
int GetEventParameter(Pointer inEvent, int inName, int inDesiredType, Pointer outActualType, int inBufferSize, IntBuffer outActualSize, Carbon.EventHotKeyID outData)
int RemoveEventHandler(Pointer inHandlerRef)
int UnregisterEventHotKey(Pointer inHotKey)