EventAnyProtocol

public protocol EventAnyProtocol

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

Contains the fields which are common to all event structs. Any event pointer can safely be cast to a pointer to a GdkEventAny to access these fields.

  • ptr

    Untyped pointer to the underlying GdkEventAny instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventAny instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventAny Record: EventAnyProtocol extension (methods and fields)

  • type Extension method

    the type of the event.

    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 }