TargetPairProtocol
public protocol TargetPairProtocol
A GtkTargetPair is used to represent the same
information as a table of GtkTargetEntry, but in
an efficient form.
The TargetPairProtocol protocol exposes the methods and properties of an underlying GtkTargetPair 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 TargetPair.
Alternatively, use TargetPairRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkTargetPairinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GtkTargetPairinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTargetPairinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkTargetPair>! { get } -
Required Initialiser for types conforming to
TargetPairProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
targetExtension methodGdkAtomrepresentation of the target typeDeclaration
Swift
@inlinable var target: GdkAtom! { get set } -
flagsExtension methodGtkTargetFlagsfor DNDDeclaration
Swift
@inlinable var flags: guint { get set } -
infoExtension methodan application-assigned integer ID which will get passed as a parameter to e.g the
GtkWidget::selection-getsignal. It allows the application to identify the target type without extensive string compares.Declaration
Swift
@inlinable var info: guint { get set }
View on GitHub
Install in Dash
TargetPairProtocol Protocol Reference