Top Description Inners Fields Methods
com.sun.jna.platform.mac

public Interface Carbon

extends Library
Imports
java.nio.IntBuffer, java.util.List, com.sun.jna.Library, .Callback, .Native, .Pointer, .Structure, .Structure.FieldOrder, com.sun.jna.ptr.PointerByReference

Author: Denis Tulskiy Date: 7/25/11

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final Carbon
public static final int
public static final int
Inherited from com.sun.jna.Library:
OPTION_ALLOW_OBJECTSOPTION_CALLING_CONVENTIONOPTION_CLASSLOADEROPTION_FUNCTION_MAPPEROPTION_INVOCATION_MAPPEROPTION_OPEN_FLAGSOPTION_STRING_ENCODINGOPTION_STRUCTURE_ALIGNMENTOPTION_SYMBOL_PROVIDEROPTION_TYPE_MAPPER

Method Summary

Modifier and TypeMethod and Description
public Pointer

Returns:

event dispatcher reference
GetEventDispatcherTarget
()

Obtains the event target reference for the standard toolbox dispatcher

public int
GetEventParameter(Pointer inEvent, int inName, int inDesiredType, Pointer outActualType, int inBufferSize, IntBuffer outActualSize, Carbon.EventHotKeyID outData)

Obtains a parameter from the specified event.

public 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.

public int
RegisterEventHotKey(int inHotKeyCode, int inHotKeyModifiers, Carbon.EventHotKeyID.ByValue inHotKeyID, Pointer inTarget, int inOptions, PointerByReference outRef)

Registers a global hot key.

public int
RemoveEventHandler(Pointer inHandlerRef)

Removes the specified event handler

public int
UnregisterEventHotKey(Pointer inHotKey)

Unregisters a global hot key.

Field Detail

cmdKeyback to summary
public static final int cmdKey
controlKeyback to summary
public static final int controlKey
INSTANCEback to summary
public static final Carbon INSTANCE
optionKeyback to summary
public static final int optionKey
shiftKeyback to summary
public static final int shiftKey

Method Detail

GetEventDispatcherTargetback to summary
public Pointer GetEventDispatcherTarget()

Obtains the event target reference for the standard toolbox dispatcher

Returns:Pointer

event dispatcher reference

GetEventParameterback to summary
public int GetEventParameter(Pointer inEvent, int inName, int inDesiredType, Pointer outActualType, int inBufferSize, IntBuffer outActualSize, Carbon.EventHotKeyID outData)

Obtains a parameter from the specified event.

InstallEventHandlerback to summary
public 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.

RegisterEventHotKeyback to summary
public int RegisterEventHotKey(int inHotKeyCode, int inHotKeyModifiers, Carbon.EventHotKeyID.ByValue inHotKeyID, Pointer inTarget, int inOptions, PointerByReference outRef)

Registers a global hot key.

RemoveEventHandlerback to summary
public int RemoveEventHandler(Pointer inHandlerRef)

Removes the specified event handler

UnregisterEventHotKeyback to summary
public int UnregisterEventHotKey(Pointer inHotKey)

Unregisters a global hot key.

com.sun.jna.platform.mac back to summary

public Interface Carbon.EventHandlerProcPtr

extends Callback

Field Summary

Inherited from com.sun.jna.Callback:
FORBIDDEN_NAMESMETHOD_NAME

Method Summary

Modifier and TypeMethod and Description
public int
callback(Pointer inHandlerCallRef, Pointer inEvent, Pointer inUserData)

Method Detail

callbackback to summary
public int callback(Pointer inHandlerCallRef, Pointer inEvent, Pointer inUserData)
com.sun.jna.platform.mac back to summary

public Class Carbon.EventHotKeyID

extends Structure
Class Inheritance
Known Direct Subclasses
com.sun.jna.platform.mac.Carbon.EventHotKeyID.ByValue
Annotations
@FieldOrder:signature, id

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public int
public int
Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

idback to summary
public int id
signatureback to summary
public int signature

Constructor Detail

EventHotKeyIDback to summary
public EventHotKeyID()
com.sun.jna.platform.mac back to summary

public Class Carbon.EventHotKeyID.ByValue

extends EventHotKeyID
implements ByValue
Class Inheritance
All Implemented Interfaces
com.sun.jna.Structure.ByValue

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

ByValueback to summary
public ByValue()
com.sun.jna.platform.mac back to summary

public Class Carbon.EventTypeSpec

extends Structure
Class Inheritance
Annotations
@FieldOrder:eventClass, eventKind

Field Summary

Modifier and TypeField and Description
public int
public int
Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

eventClassback to summary
public int eventClass
eventKindback to summary
public int eventKind

Constructor Detail

EventTypeSpecback to summary
public EventTypeSpec()