Instance Property

cgEvent

The Core Graphics event object corresponding to this event.

Declaration

var cgEvent: CGEvent? { get }

Discussion

The CGEvent opaque type returned is autoreleased. If no CGEventRef object corresponding to the NSEvent object can be created, this method returns NULL.

See Also

Getting General Event Information

var context: NSGraphicsContext?

The display graphics context for this event.

Deprecated
var locationInWindow: NSPoint

The receiver’s location in the base coordinate system of the associated window.

var timestamp: TimeInterval

The time when the event occurred in seconds since system startup.

var window: NSWindow?

The window object associated with the event.

var windowNumber: Int

The identifier for the window device associated with the event.

var eventRef: UnsafeRawPointer?

An opaque Carbon type associated with this event.