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
GdkEventSelection
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
type
Extension methodthe type of the event (
GDK_SELECTION_CLEAR
,GDK_SELECTION_NOTIFY
orGDK_SELECTION_REQUEST
).Declaration
Swift
@inlinable var type: GdkEventType { get set }
-
window
Extension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set }
-
sendEvent
Extension methodtrue
if the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set }
-
selection
Extension methodthe selection.
Declaration
Swift
@inlinable var selection: GdkAtom! { get set }
-
target
Extension methodthe target to which the selection should be converted.
Declaration
Swift
@inlinable var target: GdkAtom! { get set }
-
property
Extension methodthe property in which to place the result of the conversion.
Declaration
Swift
@inlinable var property: GdkAtom! { get set }
-
time
Extension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set }
-
requestor
Extension method