EventCrossingProtocol

public protocol EventCrossingProtocol

The EventCrossingProtocol protocol exposes the methods and properties of an underlying GdkEventCrossing instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see EventCrossing. Alternatively, use EventCrossingRef as a lighweight, unowned reference if you already have an instance you just want to use.

Generated when the pointer enters or leaves a window.

  • ptr

    Untyped pointer to the underlying GdkEventCrossing instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed pointer to the underlying GdkEventCrossing instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GdkEventCrossing instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GdkEventCrossing>! { get }
  • Required Initialiser for types conforming to EventCrossingProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventCrossing Record: EventCrossingProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_ENTER_NOTIFY or GDK_LEAVE_NOTIFY).

    Declaration

    Swift

    @inlinable
    var type: GdkEventType { get set }
  • window Extension method

    the window which received the event.

    Declaration

    Swift

    @inlinable
    var window: WindowRef! { get set }
  • sendEvent Extension method

    true if the event was sent explicitly.

    Declaration

    Swift

    @inlinable
    var sendEvent: gint8 { get set }
  • subwindow Extension method

    the window that was entered or left.

    Declaration

    Swift

    @inlinable
    var subwindow: WindowRef! { get set }
  • time Extension method

    the time of the event in milliseconds.

    Declaration

    Swift

    @inlinable
    var time: guint32 { get set }
  • x Extension method

    the x coordinate of the pointer relative to the window.

    Declaration

    Swift

    @inlinable
    var x: gdouble { get set }
  • y Extension method

    the y coordinate of the pointer relative to the window.

    Declaration

    Swift

    @inlinable
    var y: gdouble { get set }
  • xRoot Extension method

    the x coordinate of the pointer relative to the root of the screen.

    Declaration

    Swift

    @inlinable
    var xRoot: gdouble { get set }
  • yRoot Extension method

    the y coordinate of the pointer relative to the root of the screen.

    Declaration

    Swift

    @inlinable
    var yRoot: gdouble { get set }
  • mode Extension method

    the crossing mode (GDK_CROSSING_NORMAL, GDK_CROSSING_GRAB, GDK_CROSSING_UNGRAB, GDK_CROSSING_GTK_GRAB, GDK_CROSSING_GTK_UNGRAB or GDK_CROSSING_STATE_CHANGED). GDK_CROSSING_GTK_GRAB, GDK_CROSSING_GTK_UNGRAB, and GDK_CROSSING_STATE_CHANGED were added in 2.14 and are always synthesized, never native.

    Declaration

    Swift

    @inlinable
    var mode: GdkCrossingMode { get set }
  • detail Extension method

    the kind of crossing that happened (GDK_NOTIFY_INFERIOR, GDK_NOTIFY_ANCESTOR, GDK_NOTIFY_VIRTUAL, GDK_NOTIFY_NONLINEAR or GDK_NOTIFY_NONLINEAR_VIRTUAL).

    Declaration

    Swift

    @inlinable
    var detail: GdkNotifyType { get set }
  • focus Extension method

    true if window is the focus window or an inferior.

    Declaration

    Swift

    @inlinable
    var focus: gboolean { get set }
  • state Extension method

    a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.

    Declaration

    Swift

    @inlinable
    var state: ModifierType { get set }