TreeDragDestProtocol
public protocol TreeDragDestProtocol
The TreeDragDestProtocol
protocol exposes the methods and properties of an underlying GtkTreeDragDest
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 TreeDragDest
.
Alternatively, use TreeDragDestRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkTreeDragDest
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
tree_drag_dest_ptr
Default implementationTyped pointer to the underlying
GtkTreeDragDest
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeDragDest
instance.Declaration
Swift
var tree_drag_dest_ptr: UnsafeMutablePointer<GtkTreeDragDest>! { get }
-
Required Initialiser for types conforming to
TreeDragDestProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
dragDataReceived(dest:
Extension methodselectionData: ) Asks the
GtkTreeDragDest
to insert a row before the pathdest
, deriving the contents of the row fromselection_data
. Ifdest
is outside the tree so that inserting before it is impossible,false
will be returned. Also,false
may be returned if the new row is not created for some model-specific reason. Should robustly handle adest
no longer found in the model!Declaration
Swift
@inlinable func dragDataReceived<SelectionDataT, TreePathT>(dest: TreePathT, selectionData: SelectionDataT) -> Bool where SelectionDataT : SelectionDataProtocol, TreePathT : TreePathProtocol
-
rowDropPossible(destPath:
Extension methodselectionData: ) Determines whether a drop is possible before the given
dest_path
, at the same depth asdest_path
. i.e., can we drop the data inselection_data
at that location.dest_path
does not have to exist; the return value will almost certainly befalse
if the parent ofdest_path
doesn’t exist, though.Declaration
Swift
@inlinable func rowDropPossible<SelectionDataT, TreePathT>(destPath: TreePathT, selectionData: SelectionDataT) -> Bool where SelectionDataT : SelectionDataProtocol, TreePathT : TreePathProtocol