TargetEntryProtocol
public protocol TargetEntryProtocol
A GtkTargetEntry
represents a single type of
data than can be supplied for by a widget for a selection
or for supplied or received during drag-and-drop.
The TargetEntryProtocol
protocol exposes the methods and properties of an underlying GtkTargetEntry
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 TargetEntry
.
Alternatively, use TargetEntryRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkTargetEntry
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
target_entry_ptr
Default implementationTyped pointer to the underlying
GtkTargetEntry
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTargetEntry
instance.Declaration
Swift
var target_entry_ptr: UnsafeMutablePointer<GtkTargetEntry>! { get }
-
Required Initialiser for types conforming to
TargetEntryProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()
Extension methodMakes a copy of a
GtkTargetEntry
and its data.Declaration
Swift
@inlinable func copy() -> TargetEntryRef!
-
free()
Extension methodFrees a
GtkTargetEntry
returned fromgtk_target_entry_new()
orgtk_target_entry_copy()
.Declaration
Swift
@inlinable func free()
-
target
Extension methoda string representation of the target type
Declaration
Swift
@inlinable var target: UnsafeMutablePointer<gchar>! { 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 }