Enumeration

CGScrollEventUnit

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

Declaration

enum CGScrollEventUnit : UInt32

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

case pixel

Specifies that the unit of measurement is pixels.

case line

Specifies that the unit of measurement is lines.