EventPropertyProtocol

public protocol EventPropertyProtocol

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

Describes a property change on a window.

  • ptr

    Untyped pointer to the underlying GdkEventProperty instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventProperty instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventProperty Record: EventPropertyProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_PROPERTY_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 }
  • atom Extension method

    the property that was changed.

    Declaration

    Swift

    @inlinable
    var atom: GdkAtom! { get set }
  • time Extension method

    the time of the event in milliseconds.

    Declaration

    Swift

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

    whether the property was changed (GDK_PROPERTY_NEW_VALUE) or deleted (GDK_PROPERTY_DELETE).

    Declaration

    Swift

    @inlinable
    var state: PropertyState { get set }