EventSelectionProtocol

public protocol EventSelectionProtocol

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

Generated when a selection is requested or ownership of a selection is taken over by another client application.

  • ptr

    Untyped pointer to the underlying GdkEventSelection instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventSelection instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventSelection Record: EventSelectionProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_SELECTION_CLEAR, GDK_SELECTION_NOTIFY or GDK_SELECTION_REQUEST).

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

    the selection.

    Declaration

    Swift

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

    the target to which the selection should be converted.

    Declaration

    Swift

    @inlinable
    var target: GdkAtom! { get set }
  • property Extension method

    the property in which to place the result of the conversion.

    Declaration

    Swift

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

    the time of the event in milliseconds.

    Declaration

    Swift

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

    the window on which to place property or nil if none.

    Declaration

    Swift

    @inlinable
    var requestor: WindowRef! { get set }