Instance Property

mouseLocationOutsideOfEventStream

The current location of the pointer reckoned in the window’s base coordinate system, regardless of the current event being handled or of any events pending.

Declaration

var mouseLocationOutsideOfEventStream: NSPoint { get }

Discussion

For the same information in screen coordinates, use NSEvent's mouseLocation.

See Also

Handling Mouse Events

var acceptsMouseMovedEvents: Bool

A Boolean value that indicates whether the window accepts mouse-moved events.

var ignoresMouseEvents: Bool

A Boolean value that indicates whether the window is transparent to mouse events.

class func windowNumber(at: NSPoint, belowWindowWithWindowNumber: Int) -> Int

Returns the number of the frontmost window that would be hit by a mouse-down at the specified screen location.

func trackEvents(matching: NSEvent.EventTypeMask, timeout: TimeInterval, mode: RunLoop.Mode, handler: (NSEvent?, UnsafeMutablePointer<ObjCBool>) -> Void)

Tracks events that match the specified mask using the specified tracking handler until the tracking handler explicitly terminates tracking.