Struct core_graphics::event::EventField
source · pub struct EventField;
Expand description
Constants used as keys to access specialized fields in low-level events.
Implementations
sourceimpl EventField
impl EventField
sourcepub const MOUSE_EVENT_NUMBER: CGEventField = 0u32
pub const MOUSE_EVENT_NUMBER: CGEventField = 0u32
Key to access an integer field that contains the mouse button event number. Matching mouse-down and mouse-up events will have the same event number.
sourcepub const MOUSE_EVENT_CLICK_STATE: CGEventField = 1u32
pub const MOUSE_EVENT_CLICK_STATE: CGEventField = 1u32
Key to access an integer field that contains the mouse button click state. A click state of 1 represents a single click. A click state of 2 represents a double-click. A click state of 3 represents a triple-click.
sourcepub const MOUSE_EVENT_PRESSURE: CGEventField = 2u32
pub const MOUSE_EVENT_PRESSURE: CGEventField = 2u32
Key to access a double field that contains the mouse button pressure. The pressure value may range from 0 to 1, with 0 representing the mouse being up. This value is commonly set by tablet pens mimicking a mouse.
sourcepub const MOUSE_EVENT_BUTTON_NUMBER: CGEventField = 3u32
pub const MOUSE_EVENT_BUTTON_NUMBER: CGEventField = 3u32
Key to access an integer field that contains the mouse button number.
sourcepub const MOUSE_EVENT_DELTA_X: CGEventField = 4u32
pub const MOUSE_EVENT_DELTA_X: CGEventField = 4u32
Key to access an integer field that contains the horizontal mouse delta since the last mouse movement event.
sourcepub const MOUSE_EVENT_DELTA_Y: CGEventField = 5u32
pub const MOUSE_EVENT_DELTA_Y: CGEventField = 5u32
Key to access an integer field that contains the vertical mouse delta since the last mouse movement event.
sourcepub const MOUSE_EVENT_INSTANT_MOUSER: CGEventField = 6u32
pub const MOUSE_EVENT_INSTANT_MOUSER: CGEventField = 6u32
Key to access an integer field. The value is non-zero if the event should be ignored by the Inkwell subsystem.
sourcepub const MOUSE_EVENT_SUB_TYPE: CGEventField = 7u32
pub const MOUSE_EVENT_SUB_TYPE: CGEventField = 7u32
Key to access an integer field that encodes the mouse event subtype as a `kCFNumberIntType’.
sourcepub const KEYBOARD_EVENT_AUTOREPEAT: CGEventField = 8u32
pub const KEYBOARD_EVENT_AUTOREPEAT: CGEventField = 8u32
Key to access an integer field, non-zero when this is an autorepeat of a key-down, and zero otherwise.
sourcepub const KEYBOARD_EVENT_KEYCODE: CGEventField = 9u32
pub const KEYBOARD_EVENT_KEYCODE: CGEventField = 9u32
Key to access an integer field that contains the virtual keycode of the key-down or key-up event.
sourcepub const KEYBOARD_EVENT_KEYBOARD_TYPE: CGEventField = 10u32
pub const KEYBOARD_EVENT_KEYBOARD_TYPE: CGEventField = 10u32
Key to access an integer field that contains the keyboard type identifier.
sourcepub const SCROLL_WHEEL_EVENT_DELTA_AXIS_1: CGEventField = 11u32
pub const SCROLL_WHEEL_EVENT_DELTA_AXIS_1: CGEventField = 11u32
Key to access an integer field that contains scrolling data. This field typically contains the change in vertical position since the last scrolling event from a Mighty Mouse scroller or a single-wheel mouse scroller.
sourcepub const SCROLL_WHEEL_EVENT_DELTA_AXIS_2: CGEventField = 12u32
pub const SCROLL_WHEEL_EVENT_DELTA_AXIS_2: CGEventField = 12u32
Key to access an integer field that contains scrolling data. This field typically contains the change in horizontal position since the last scrolling event from a Mighty Mouse scroller.
sourcepub const SCROLL_WHEEL_EVENT_FIXED_POINT_DELTA_AXIS_1: CGEventField = 93u32
pub const SCROLL_WHEEL_EVENT_FIXED_POINT_DELTA_AXIS_1: CGEventField = 93u32
Key to access a field that contains scrolling data. The scrolling data represents a line-based or pixel-based change in vertical position since the last scrolling event from a Mighty Mouse scroller or a single-wheel mouse scroller. The scrolling data uses a fixed-point 16.16 signed integer format. If this key is passed to `CGEventGetDoubleValueField’, the fixed-point value is converted to a double value.
sourcepub const SCROLL_WHEEL_EVENT_FIXED_POINT_DELTA_AXIS_2: CGEventField = 94u32
pub const SCROLL_WHEEL_EVENT_FIXED_POINT_DELTA_AXIS_2: CGEventField = 94u32
Key to access a field that contains scrolling data. The scrolling data represents a line-based or pixel-based change in horizontal position since the last scrolling event from a Mighty Mouse scroller. The scrolling data uses a fixed-point 16.16 signed integer format. If this key is passed to `CGEventGetDoubleValueField’, the fixed-point value is converted to a double value.
sourcepub const SCROLL_WHEEL_EVENT_POINT_DELTA_AXIS_1: CGEventField = 96u32
pub const SCROLL_WHEEL_EVENT_POINT_DELTA_AXIS_1: CGEventField = 96u32
Key to access an integer field that contains pixel-based scrolling data. The scrolling data represents the change in vertical position since the last scrolling event from a Mighty Mouse scroller or a single-wheel mouse scroller.
sourcepub const SCROLL_WHEEL_EVENT_POINT_DELTA_AXIS_2: CGEventField = 97u32
pub const SCROLL_WHEEL_EVENT_POINT_DELTA_AXIS_2: CGEventField = 97u32
Key to access an integer field that contains pixel-based scrolling data. The scrolling data represents the change in horizontal position since the last scrolling event from a Mighty Mouse scroller.
sourcepub const SCROLL_WHEEL_EVENT_INSTANT_MOUSER: CGEventField = 14u32
pub const SCROLL_WHEEL_EVENT_INSTANT_MOUSER: CGEventField = 14u32
Key to access an integer field that indicates whether the event should be ignored by the Inkwell subsystem. If the value is non-zero, the event should be ignored.
sourcepub const TABLET_EVENT_POINT_X: CGEventField = 15u32
pub const TABLET_EVENT_POINT_X: CGEventField = 15u32
Key to access an integer field that contains the absolute X coordinate in tablet space at full tablet resolution.
sourcepub const TABLET_EVENT_POINT_Y: CGEventField = 16u32
pub const TABLET_EVENT_POINT_Y: CGEventField = 16u32
Key to access an integer field that contains the absolute Y coordinate in tablet space at full tablet resolution.
sourcepub const TABLET_EVENT_POINT_Z: CGEventField = 17u32
pub const TABLET_EVENT_POINT_Z: CGEventField = 17u32
Key to access an integer field that contains the absolute Z coordinate in tablet space at full tablet resolution.
sourcepub const TABLET_EVENT_POINT_BUTTONS: CGEventField = 18u32
pub const TABLET_EVENT_POINT_BUTTONS: CGEventField = 18u32
Key to access an integer field that contains the tablet button state. Bit 0 is the first button, and a set bit represents a closed or pressed button. Up to 16 buttons are supported.
sourcepub const TABLET_EVENT_POINT_PRESSURE: CGEventField = 19u32
pub const TABLET_EVENT_POINT_PRESSURE: CGEventField = 19u32
Key to access a double field that contains the tablet pen pressure. A value of 0.0 represents no pressure, and 1.0 represents maximum pressure.
sourcepub const TABLET_EVENT_TILT_X: CGEventField = 20u32
pub const TABLET_EVENT_TILT_X: CGEventField = 20u32
Key to access a double field that contains the horizontal tablet pen tilt. A value of 0 represents no tilt, and 1 represents maximum tilt.
sourcepub const TABLET_EVENT_TILT_Y: CGEventField = 21u32
pub const TABLET_EVENT_TILT_Y: CGEventField = 21u32
Key to access a double field that contains the vertical tablet pen tilt. A value of 0 represents no tilt, and 1 represents maximum tilt.
sourcepub const TABLET_EVENT_ROTATION: CGEventField = 22u32
pub const TABLET_EVENT_ROTATION: CGEventField = 22u32
Key to access a double field that contains the tablet pen rotation.
sourcepub const TABLET_EVENT_TANGENTIAL_PRESSURE: CGEventField = 23u32
pub const TABLET_EVENT_TANGENTIAL_PRESSURE: CGEventField = 23u32
Key to access a double field that contains the tangential pressure on the device. A value of 0.0 represents no pressure, and 1.0 represents maximum pressure.
sourcepub const TABLET_EVENT_DEVICE_ID: CGEventField = 24u32
pub const TABLET_EVENT_DEVICE_ID: CGEventField = 24u32
Key to access an integer field that contains the system-assigned unique device ID.
sourcepub const TABLET_EVENT_VENDOR_1: CGEventField = 25u32
pub const TABLET_EVENT_VENDOR_1: CGEventField = 25u32
Key to access an integer field that contains a vendor-specified value.
sourcepub const TABLET_EVENT_VENDOR_2: CGEventField = 26u32
pub const TABLET_EVENT_VENDOR_2: CGEventField = 26u32
Key to access an integer field that contains a vendor-specified value.
sourcepub const TABLET_EVENT_VENDOR_3: CGEventField = 27u32
pub const TABLET_EVENT_VENDOR_3: CGEventField = 27u32
Key to access an integer field that contains a vendor-specified value.
sourcepub const TABLET_PROXIMITY_EVENT_VENDOR_ID: CGEventField = 28u32
pub const TABLET_PROXIMITY_EVENT_VENDOR_ID: CGEventField = 28u32
Key to access an integer field that contains the vendor-defined ID, typically the USB vendor ID.
sourcepub const TABLET_PROXIMITY_EVENT_TABLET_ID: CGEventField = 29u32
pub const TABLET_PROXIMITY_EVENT_TABLET_ID: CGEventField = 29u32
Key to access an integer field that contains the vendor-defined tablet ID, typically the USB product ID.
sourcepub const TABLET_PROXIMITY_EVENT_POINTER_ID: CGEventField = 30u32
pub const TABLET_PROXIMITY_EVENT_POINTER_ID: CGEventField = 30u32
Key to access an integer field that contains the vendor-defined ID of the pointing device.
sourcepub const TABLET_PROXIMITY_EVENT_DEVICE_ID: CGEventField = 31u32
pub const TABLET_PROXIMITY_EVENT_DEVICE_ID: CGEventField = 31u32
Key to access an integer field that contains the system-assigned device ID.
sourcepub const TABLET_PROXIMITY_EVENT_SYSTEM_TABLET_ID: CGEventField = 32u32
pub const TABLET_PROXIMITY_EVENT_SYSTEM_TABLET_ID: CGEventField = 32u32
Key to access an integer field that contains the system-assigned unique tablet ID.
sourcepub const TABLET_PROXIMITY_EVENT_VENDOR_POINTER_TYPE: CGEventField = 33u32
pub const TABLET_PROXIMITY_EVENT_VENDOR_POINTER_TYPE: CGEventField = 33u32
Key to access an integer field that contains the vendor-assigned pointer type.
sourcepub const TABLET_PROXIMITY_EVENT_VENDOR_POINTER_SERIAL_NUMBER: CGEventField = 34u32
pub const TABLET_PROXIMITY_EVENT_VENDOR_POINTER_SERIAL_NUMBER: CGEventField = 34u32
Key to access an integer field that contains the vendor-defined pointer serial number.
sourcepub const TABLET_PROXIMITY_EVENT_VENDOR_UNIQUE_ID: CGEventField = 35u32
pub const TABLET_PROXIMITY_EVENT_VENDOR_UNIQUE_ID: CGEventField = 35u32
Key to access an integer field that contains the vendor-defined unique ID.
sourcepub const TABLET_PROXIMITY_EVENT_CAPABILITY_MASK: CGEventField = 36u32
pub const TABLET_PROXIMITY_EVENT_CAPABILITY_MASK: CGEventField = 36u32
Key to access an integer field that contains the device capabilities mask.
sourcepub const TABLET_PROXIMITY_EVENT_POINTER_TYPE: CGEventField = 37u32
pub const TABLET_PROXIMITY_EVENT_POINTER_TYPE: CGEventField = 37u32
Key to access an integer field that contains the pointer type.
sourcepub const TABLET_PROXIMITY_EVENT_ENTER_PROXIMITY: CGEventField = 38u32
pub const TABLET_PROXIMITY_EVENT_ENTER_PROXIMITY: CGEventField = 38u32
Key to access an integer field that indicates whether the pen is in proximity to the tablet. The value is non-zero if the pen is in proximity to the tablet and zero when leaving the tablet.
sourcepub const EVENT_TARGET_PROCESS_SERIAL_NUMBER: CGEventField = 39u32
pub const EVENT_TARGET_PROCESS_SERIAL_NUMBER: CGEventField = 39u32
Key to access a field that contains the event target process serial number. The value is a 64-bit value.
sourcepub const EVENT_TARGET_UNIX_PROCESS_ID: CGEventField = 40u32
pub const EVENT_TARGET_UNIX_PROCESS_ID: CGEventField = 40u32
Key to access a field that contains the event target Unix process ID.
sourcepub const EVENT_SOURCE_UNIX_PROCESS_ID: CGEventField = 41u32
pub const EVENT_SOURCE_UNIX_PROCESS_ID: CGEventField = 41u32
Key to access a field that contains the event source Unix process ID.
sourcepub const EVENT_SOURCE_USER_DATA: CGEventField = 42u32
pub const EVENT_SOURCE_USER_DATA: CGEventField = 42u32
Key to access a field that contains the event source user-supplied data, up to 64 bits.
sourcepub const EVENT_SOURCE_USER_ID: CGEventField = 43u32
pub const EVENT_SOURCE_USER_ID: CGEventField = 43u32
Key to access a field that contains the event source Unix effective UID.
sourcepub const EVENT_SOURCE_GROUP_ID: CGEventField = 44u32
pub const EVENT_SOURCE_GROUP_ID: CGEventField = 44u32
Key to access a field that contains the event source Unix effective GID.
sourcepub const EVENT_SOURCE_STATE_ID: CGEventField = 45u32
pub const EVENT_SOURCE_STATE_ID: CGEventField = 45u32
Key to access a field that contains the event source state ID used to create this event.
sourcepub const SCROLL_WHEEL_EVENT_IS_CONTINUOUS: CGEventField = 88u32
pub const SCROLL_WHEEL_EVENT_IS_CONTINUOUS: CGEventField = 88u32
Key to access an integer field that indicates whether a scrolling event contains continuous, pixel-based scrolling data. The value is non-zero when the scrolling data is pixel-based and zero when the scrolling data is line-based.
sourcepub const MOUSE_EVENT_WINDOW_UNDER_MOUSE_POINTER: CGEventField = 91u32
pub const MOUSE_EVENT_WINDOW_UNDER_MOUSE_POINTER: CGEventField = 91u32
Added in 10.5; made public in 10.7.