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
GtkTargetPair
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GtkTargetPair
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTargetPair
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkTargetPair>! { get }
-
Required Initialiser for types conforming to
TargetPairProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
target
Extension methodGdkAtom
representation of the target typeDeclaration
Swift
@inlinable var target: GdkAtom! { get set }
-
flags
Extension methodGtkTargetFlags
for DNDDeclaration
Swift
@inlinable var flags: guint { get set }
-
info
Extension methodan application-assigned integer ID which will get passed as a parameter to e.g the
GtkWidget::selection-get
signal. It allows the application to identify the target type without extensive string compares.Declaration
Swift
@inlinable var info: guint { get set }