Top Description Inners Fields Constructors Methods
org.lwjgl.system.macosx

public Class CoreGraphics

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Native bindings to <CoreGraphics.h>.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CoreGraphics.Functions

Contains the function pointers loaded from the CoreGraphics SharedLibrary.

Field Summary

Modifier and TypeField and Description
private static final SharedLibrary
public static final int
kCGAnnotatedSessionEventTap

CGEventTapLocation Enum values:

  • HIDEventTap - Specifies that an event tap is placed at the point where HID system events enter the window server.
  • SessionEventTap - Specifies that an event tap is placed at the point where HID system and remote control events enter a login session.
  • AnnotatedSessionEventTap - Specifies that an event tap is placed at the point where session events have been annotated to flow to an application.
public static final int
kCGErrorCannotComplete

Types used for errors and error handlers.

public static final int
kCGErrorFailure

Types used for errors and error handlers.

public static final int
kCGErrorIllegalArgument

Types used for errors and error handlers.

public static final int
kCGErrorInvalidConnection

Types used for errors and error handlers.

public static final int
kCGErrorInvalidContext

Types used for errors and error handlers.

public static final int
kCGErrorInvalidOperation

Types used for errors and error handlers.

public static final int
kCGErrorNoneAvailable

Types used for errors and error handlers.

public static final int
kCGErrorNotImplemented

Types used for errors and error handlers.

public static final int
kCGErrorRangeCheck

Types used for errors and error handlers.

public static final int
kCGErrorSuccess

Types used for errors and error handlers.

public static final int
kCGErrorTypeCheck

Types used for errors and error handlers.

public static final int
public static final int
kCGEventKeyDown

Event types.

public static final int
kCGEventKeyUp

Event types.

public static final int
public static final int
public static final int
kCGEventLeftMouseUp

Event types.

public static final int
kCGEventMouseMoved

Event types.

public static final int
kCGEventMouseSubtypeDefault

Constants used with the MouseEventSubtype event field.

public static final int
kCGEventMouseSubtypeTabletPoint

Constants used with the MouseEventSubtype event field.

public static final int
kCGEventMouseSubtypeTabletProximity

Constants used with the MouseEventSubtype event field.

public static final int
kCGEventNull

Event types.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
kCGEventScrollWheel

Event types.

public static final int
kCGEventSourceGroupID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGEventSourceStateID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGEventSourceUnixProcessID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGEventSourceUserData

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGEventSourceUserID

Constants used as keys to access specialized fields in low-level events.

public static final int
public static final int
public static final int
public static final int
public static final int
kCGEventTargetProcessSerialNumber

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGEventTargetUnixProcessID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGHIDEventTap

CGEventTapLocation Enum values:

  • HIDEventTap - Specifies that an event tap is placed at the point where HID system events enter the window server.
  • SessionEventTap - Specifies that an event tap is placed at the point where HID system and remote control events enter a login session.
  • AnnotatedSessionEventTap - Specifies that an event tap is placed at the point where session events have been annotated to flow to an application.
public static final int
kCGKeyboardEventAutorepeat

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGKeyboardEventKeyboardType

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGKeyboardEventKeycode

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseButtonCenter

Constants that specify buttons on a one, two, or three-button mouse.

public static final int
kCGMouseButtonLeft

Constants that specify buttons on a one, two, or three-button mouse.

public static final int
kCGMouseButtonRight

Constants that specify buttons on a one, two, or three-button mouse.

public static final int
kCGMouseEventButtonNumber

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventClickState

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventDeltaX

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventDeltaY

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventInstantMouser

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventNumber

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventPressure

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventSubtype

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventWindowUnderMousePointer

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollEventUnitLine

Constants that specify the unit of measurement for a scrolling event.

public static final int
kCGScrollEventUnitPixel

Constants that specify the unit of measurement for a scrolling event.

public static final int
kCGScrollWheelEventDeltaAxis1

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventDeltaAxis2

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventDeltaAxis3

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventFixedPtDeltaAxis1

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventFixedPtDeltaAxis2

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventFixedPtDeltaAxis3

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventInstantMouser

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventIsContinuous

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventMomentumPhase

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventPointDeltaAxis1

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventPointDeltaAxis2

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventPointDeltaAxis3

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventScrollCount

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGScrollWheelEventScrollPhase

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGSessionEventTap

CGEventTapLocation Enum values:

  • HIDEventTap - Specifies that an event tap is placed at the point where HID system events enter the window server.
  • SessionEventTap - Specifies that an event tap is placed at the point where HID system and remote control events enter a login session.
  • AnnotatedSessionEventTap - Specifies that an event tap is placed at the point where session events have been annotated to flow to an application.
public static final int
kCGTabletEventDeviceID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventPointButtons

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventPointPressure

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventPointX

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventPointY

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventPointZ

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventRotation

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventTangentialPressure

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventTiltX

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventTiltY

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventVendor1

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventVendor2

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletEventVendor3

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventCapabilityMask

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventDeviceID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventEnterProximity

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventPointerID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventPointerType

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventSystemTabletID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventTabletID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventVendorID

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventVendorPointerSerialNumber

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventVendorPointerType

Constants used as keys to access specialized fields in low-level events.

public static final int
kCGTabletProximityEventVendorUniqueID

Constants used as keys to access specialized fields in low-level events.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
CGEventCreate(long source)

Returns a new event using the event source source.

public static long
CGEventCreateCopy(long event)

Return a copy of event.

public static long
CGEventCreateData(long allocator, long event)

Return a "flattened" data representation of an event.

public static long
CGEventCreateFromData(long allocator, long data)

Returns an event created from a "flattened" data representation of the event.

public static long
CGEventCreateKeyboardEvent(long source, short virtualKey, boolean keyDown)

Returns a new keyboard event.

public static long
CGEventCreateMouseEvent(long source, int mouseType, CGPoint mouseCursorPosition, int mouseButton)

Returns a new mouse event.

public static long
CGEventCreateScrollWheelEvent(long source, int units, int wheelCount, int wheel1)

Returns a new scrollwheel event.

public static long
CGEventCreateScrollWheelEvent(long source, int units, int wheel1)

Returns a new scrollwheel event.

public static long
CGEventCreateScrollWheelEvent2(long source, int units, int wheelCount, int wheel1, int wheel2, int wheel3)

A non-variadic variant version of EventCreateScrollWheelEvent.

public static long
CGEventCreateSourceFromEvent(long event)

Returns an event source created from an existing event.

public static double
CGEventGetDoubleValueField(long event, int field)

Returns the floating-point value of a field in an event.

public static long
CGEventGetFlags(long event)

Returns the event flags of an event.

public static long
CGEventGetIntegerValueField(long event, int field)

Returns the integer value of a field in an event.

public static CGPoint
CGEventGetLocation(long event, CGPoint __result)

Returns the location of an event in global display coordinates.

public static long
CGEventGetTimestamp(long event)

Returns the timestamp of an event.

public static int
CGEventGetType(long event)

Returns the event type of an event (left mouse down, for example).

public static long
CGEventGetTypeID()

Returns the type identifier for the opaque type CGEventRef.

public static CGPoint
CGEventGetUnflippedLocation(long event, CGPoint __result)

Return the location of an event relative to the lower-left corner of the main display.

public static void
CGEventKeyboardGetUnicodeString(long event, CLongBuffer actualStringLength, ShortBuffer unicodeString)

Returns the Unicode string associated with a keyboard event.

public static void
CGEventKeyboardGetUnicodeString(long event, CLongBuffer actualStringLength, short[] unicodeString)

Array version of: EventKeyboardGetUnicodeString

public static void
CGEventKeyboardSetUnicodeString(long event, ShortBuffer unicodeString)

Sets the Unicode string associated with a keyboard event.

public static void
CGEventKeyboardSetUnicodeString(long event, short[] unicodeString)

Array version of: EventKeyboardSetUnicodeString

public static void
CGEventPost(int
the location at which to post the event
tap
,
long
the event to post
event
)

Posts an event into the event stream at a specified location.

public static void
CGEventPostToPid(long pid, long event)

Post an event into the event stream for a specific application.

public static void
CGEventSetDoubleValueField(long event, int field, double value)

Sets the floating-point value of a field in an event.

public static void
CGEventSetFlags(long event, long flags)

Sets the event flags of an event.

public static void
CGEventSetIntegerValueField(long event, int field, long value)

Sets the integer value of a field in an event.

public static void
CGEventSetLocation(long event, CGPoint location)

Sets the location of an event in global display coordinates.

public static void
CGEventSetSource(long event, long source)

Set the event source of an event.

public static void
CGEventSetTimestamp(long event, long timestamp)

Sets the timestamp of an event.

public static void
CGEventSetType(long event, int type)

Sets the event type of an event.

public static long
CGEventTapCreate(int tap, int place, int options, long eventsOfInterest, CGEventTapCallBackI callback, long userInfo)

Creates an event tap.

public static long
CGEventTapCreateForPid(long pid, int place, int options, long eventsOfInterest, CGEventTapCallBackI callback, long userInfo)

Create an event tap for a specified process.

public static void
CGEventTapEnable(long tap, boolean enable)

Enables or disables an event tap.

public static boolean
CGEventTapIsEnabled(long tap)

Return true if tap is enabled; false otherwise.

public static void
CGEventTapPostEvent(long proxy, long event)

Post an event from an event tap into the event stream.

public static int
CGGetEventTapList(CGEventTapInformation.Buffer tapList, IntBuffer eventTapCount)

Gets a list of currently installed event taps.

public static int
CGGetEventTapList(CGEventTapInformation.Buffer tapList, int[] eventTapCount)

Array version of: GetEventTapList

public static SharedLibrary
getLibrary()

Returns the CoreGraphics SharedLibrary.

public static native long
nCGEventCreateMouseEvent(long source, int mouseType, long mouseCursorPosition, int mouseButton, long __functionAddress)

Unsafe version of: EventCreateMouseEvent

public static long
nCGEventCreateMouseEvent(long source, int mouseType, long mouseCursorPosition, int mouseButton)

Unsafe version of: EventCreateMouseEvent

public static native void
nCGEventGetLocation(long event, long __functionAddress, long __result)

Unsafe version of: EventGetLocation

public static void
nCGEventGetLocation(long event, long __result)

Unsafe version of: EventGetLocation

public static native void
nCGEventGetUnflippedLocation(long event, long __functionAddress, long __result)

Unsafe version of: EventGetUnflippedLocation

public static void
nCGEventGetUnflippedLocation(long event, long __result)

Unsafe version of: EventGetUnflippedLocation

public static void
nCGEventKeyboardGetUnicodeString(long event, long maxStringLength, long actualStringLength, long unicodeString)

Unsafe version of: EventKeyboardGetUnicodeString

public static void
nCGEventKeyboardSetUnicodeString(long event, long stringLength, long unicodeString)

Unsafe version of: EventKeyboardSetUnicodeString

public static native void
nCGEventSetLocation(long event, long location, long __functionAddress)

Unsafe version of: EventSetLocation

public static void
nCGEventSetLocation(long event, long location)

Unsafe version of: EventSetLocation

public static long
nCGEventTapCreate(int tap, int place, int options, long eventsOfInterest, long callback, long userInfo)

Unsafe version of: EventTapCreate

public static long
nCGEventTapCreateForPid(long pid, int place, int options, long eventsOfInterest, long callback, long userInfo)

Unsafe version of: EventTapCreateForPid

public static int
nCGGetEventTapList(int maxNumberOfTaps, long tapList, long eventTapCount)

Unsafe version of: GetEventTapList

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait