Enumeration

CGScrollEventUnit

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

Declaration

typedef enum CGScrollEventUnit : uint32_t {
    ...
} CGScrollEventUnit;

Overview

You may pass one of these constants to the function CGEventCreateScrollWheelEvent to specify the unit of measurement for the event. The constant kCGScrollEventUnitPixel produces an event that most applications interpret as a smooth scrolling event. By default, the scale is about ten pixels per line. You can alter the scale with the function CGEventSourceSetPixelsPerLine.

Topics

Constants

kCGScrollEventUnitPixel

Specifies that the unit of measurement is pixels.

kCGScrollEventUnitLine

Specifies that the unit of measurement is lines.