Contents

CGDisplayHideCursor(_:)

Hides the mouse cursor, and increments the hide cursor count.

Declaration

func CGDisplayHideCursor(_ display: CGDirectDisplayID) -> CGError

Parameters

  • display:

    This parameter has no effect. By default, you can pass kCGDirectMainDisplay.

Return Value

A result code. To interpret the result code, see CGError.

Discussion

This function hides the cursor regardless of its current location. The display parameter has no effect. In most cases, the caller must be the foreground application to affect the cursor.

See Also

Functions