MouseEvent

public struct MouseEvent : CustomDebugStringConvertible

Describes a mouse event, the pos property contains the view relative position where the mouse event took place, and the absPos contains the screen absolute position of where the event took place.

The state of the mouse event is described in flags and is used to determine what kind of event this is (movement, press, release, click).

The view property, if set, indicates on which view the event took place.

  • pos

    The X (column) location for the mouse event

    Declaration

    Swift

    public var pos: Point
  • The X position for the event in global coordinates

    Declaration

    Swift

    public var absPos: Point
  • The event flags

    Declaration

    Swift

    public var flags: MouseFlags
  • If set, the current view at the location of the mouse event

    Declaration

    Swift

    public var view: View?
  • Declaration

    Swift

    public var debugDescription: String { get }