| Modifier and Type | Class and Description |
|---|---|
| public static class | CoreGraphics.
Contains the function pointers loaded from the CoreGraphics |
| Modifier and Type | Field and Description |
|---|---|
| private static final SharedLibrary | |
| public static final int | kCGAnnotatedSessionEventTap
|
| 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 | kCGEventFlagsChanged
Event types. |
| public static final int | kCGEventKeyDown
Event types. |
| public static final int | kCGEventKeyUp
Event types. |
| public static final int | kCGEventLeftMouseDown
Event types. |
| public static final int | kCGEventLeftMouseDragged
Event types. |
| public static final int | kCGEventLeftMouseUp
Event types. |
| public static final int | kCGEventMouseMoved
Event types. |
| public static final int | kCGEventMouseSubtypeDefault
Constants used with the |
| public static final int | kCGEventMouseSubtypeTabletPoint
Constants used with the |
| public static final int | kCGEventMouseSubtypeTabletProximity
Constants used with the |
| public static final int | kCGEventNull
Event types. |
| public static final int | kCGEventOtherMouseDown
Event types. |
| public static final int | kCGEventOtherMouseDragged
Event types. |
| public static final int | kCGEventOtherMouseUp
Event types. |
| public static final int | kCGEventRightMouseDown
Event types. |
| public static final int | kCGEventRightMouseDragged
Event types. |
| public static final int | kCGEventRightMouseUp
Event types. |
| 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 | kCGEventTabletPointer
Event types. |
| public static final int | kCGEventTabletProximity
Event types. |
| public static final int | kCGEventTapDisabledByTimeout
Event types. |
| public static final int | kCGEventTapDisabledByUserInput
Event types. |
| 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
|
| 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
|
| 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. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static long | |
| public static long | |
| public static long | |
| 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 | |
| public static long | CGEventCreateScrollWheelEvent2(long source, int units, int wheelCount, int wheel1, int wheel2, int wheel3)
A non-variadic variant version of |
| public static long | |
| public static double | CGEventGetDoubleValueField(long event, int field)
Returns the floating-point value of a field in an event. |
| public static long | |
| public static long | |
| public static CGPoint | CGEventGetLocation(long event, CGPoint __result)
Returns the location of an event in global display coordinates. |
| public static long | |
| public static int | |
| public static long | |
| 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: |
| 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: |
| 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 | |
| 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 | |
| public static void | |
| public static void | |
| 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 | |
| public static boolean | |
| public static void | |
| public static int | CGGetEventTapList(CGEventTapInformation.
Gets a list of currently installed event taps. |
| public static int | CGGetEventTapList(CGEventTapInformation.
Array version of: |
| public static SharedLibrary | |
| public static native long | nCGEventCreateMouseEvent(long source, int mouseType, long mouseCursorPosition, int mouseButton, long __functionAddress)
Unsafe version of: |
| public static long | nCGEventCreateMouseEvent(long source, int mouseType, long mouseCursorPosition, int mouseButton)
Unsafe version of: |
| public static native void | nCGEventGetLocation(long event, long __functionAddress, long __result)
Unsafe version of: |
| public static void | |
| public static native void | nCGEventGetUnflippedLocation(long event, long __functionAddress, long __result)
Unsafe version of: |
| public static void | |
| public static void | nCGEventKeyboardGetUnicodeString(long event, long maxStringLength, long actualStringLength, long unicodeString)
Unsafe version of: |
| public static void | nCGEventKeyboardSetUnicodeString(long event, long stringLength, long unicodeString)
Unsafe version of: |
| public static native void | nCGEventSetLocation(long event, long location, long __functionAddress)
Unsafe version of: |
| public static void | |
| public static long | nCGEventTapCreate(int tap, int place, int options, long eventsOfInterest, long callback, long userInfo)
Unsafe version of: |
| public static long | nCGEventTapCreateForPid(long pid, int place, int options, long eventsOfInterest, long callback, long userInfo)
Unsafe version of: |
| public static int | nCGGetEventTapList(int maxNumberOfTaps, long tapList, long eventTapCount)
Unsafe version of: |