EventOwnerChangeProtocol

public protocol EventOwnerChangeProtocol

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

Generated when the owner of a selection changes. On X11, this information is only available if the X server supports the XFIXES extension.

  • ptr

    Untyped pointer to the underlying GdkEventOwnerChange instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventOwnerChange instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventOwnerChange Record: EventOwnerChangeProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_OWNER_CHANGE).

    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 }
  • owner Extension method

    the new owner of the selection, or nil if there is none

    Declaration

    Swift

    @inlinable
    var owner: WindowRef! { get set }
  • reason Extension method

    the reason for the ownership change as a GdkOwnerChange value

    Declaration

    Swift

    @inlinable
    var reason: GdkOwnerChange { get set }
  • selection Extension method

    the atom identifying the selection

    Declaration

    Swift

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

    the timestamp of the event

    Declaration

    Swift

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

    the time at which the selection ownership was taken over

    Declaration

    Swift

    @inlinable
    var selectionTime: guint32 { get set }