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.
-
Untyped pointer to the underlying
GdkEventSelectioninstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkEventSelectioninstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventSelectioninstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventSelection>! { get } -
Required Initialiser for types conforming to
EventSelectionProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type of the event (
GDK_SELECTION_CLEAR,GDK_SELECTION_NOTIFYorGDK_SELECTION_REQUEST).Declaration
Swift
@inlinable var type: GdkEventType { get set } -
windowExtension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set } -
sendEventExtension methodtrueif the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set } -
selectionExtension methodthe selection.
Declaration
Swift
@inlinable var selection: GdkAtom! { get set } -
targetExtension methodthe target to which the selection should be converted.
Declaration
Swift
@inlinable var target: GdkAtom! { get set } -
propertyExtension methodthe property in which to place the result of the conversion.
Declaration
Swift
@inlinable var property: GdkAtom! { get set } -
timeExtension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set } -
requestorExtension method
View on GitHub
Install in Dash
EventSelectionProtocol Protocol Reference