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
GtkTargetEntryinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
target_entry_ptrDefault implementationTyped pointer to the underlying
GtkTargetEntryinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTargetEntryinstance.Declaration
Swift
var target_entry_ptr: UnsafeMutablePointer<GtkTargetEntry>! { get } -
Required Initialiser for types conforming to
TargetEntryProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodMakes a copy of a
GtkTargetEntryand its data.Declaration
Swift
@inlinable func copy() -> TargetEntryRef! -
free()Extension methodFrees a
GtkTargetEntryreturned fromgtk_target_entry_new()orgtk_target_entry_copy().Declaration
Swift
@inlinable func free() -
targetExtension methoda string representation of the target type
Declaration
Swift
@inlinable var target: UnsafeMutablePointer<gchar>! { 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
TargetEntryProtocol Protocol Reference