CrossingEventProtocol

public protocol CrossingEventProtocol : EventProtocol

The CrossingEventProtocol protocol exposes the methods and properties of an underlying GdkCrossingEvent 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 CrossingEvent. Alternatively, use CrossingEventRef as a lighweight, unowned reference if you already have an instance you just want to use.

An event caused by a pointing device moving between surfaces.

  • ptr

    Untyped pointer to the underlying GdkCrossingEvent instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkCrossingEvent instance.

    Default Implementation

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

    Declaration

    Swift

    var crossing_event_ptr: UnsafeMutablePointer<GdkCrossingEvent>! { get }
  • Required Initialiser for types conforming to CrossingEventProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

CrossingEvent Class: CrossingEventProtocol extension (methods and fields)

  • getDetail() Extension method

    Extracts the notify detail from a crossing event.

    Declaration

    Swift

    @inlinable
    func getDetail() -> GdkNotifyType
  • getFocus() Extension method

    Checks if the event surface is the focus surface.

    Declaration

    Swift

    @inlinable
    func getFocus() -> Bool
  • getMode() Extension method

    Extracts the crossing mode from a crossing event.

    Declaration

    Swift

    @inlinable
    func getMode() -> GdkCrossingMode
  • detail Extension method

    Extracts the notify detail from a crossing event.

    Declaration

    Swift

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

    Checks if the event surface is the focus surface.

    Declaration

    Swift

    @inlinable
    var focus: Bool { get }
  • mode Extension method

    Extracts the crossing mode from a crossing event.

    Declaration

    Swift

    @inlinable
    var mode: GdkCrossingMode { get }