Contents

CGEventSourceSetPixelsPerLine

Sets the scale of pixels per line in a scrolling event source.

Declaration

extern void CGEventSourceSetPixelsPerLine(CGEventSourceRef source, double pixelsPerLine);

Parameters

  • source:

    The event source to access.

  • pixelsPerLine:

    The scale of pixels per line in the specified event source.

Discussion

This function sets the scale of pixels per line in the specified event source. For example, if you pass the value 12.0 in the pixelsPerLine parameter, the scale of pixels per line in the event source would be changed to 12.0. Every scrolling event can be interpreted to be scrolling by pixel or by line. By default, the scale is about ten pixels per line. You can retrieve the scale with the function CGEventSourceGetPixelsPerLine.

See Also

Functions