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
GtkTreeDragDestinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
tree_drag_dest_ptrDefault implementationTyped pointer to the underlying
GtkTreeDragDestinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeDragDestinstance.Declaration
Swift
var tree_drag_dest_ptr: UnsafeMutablePointer<GtkTreeDragDest>! { get } -
Required Initialiser for types conforming to
TreeDragDestProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
dragDataReceived(dest:Extension methodselectionData: ) Asks the
GtkTreeDragDestto insert a row before the pathdest, deriving the contents of the row fromselection_data. Ifdestis outside the tree so that inserting before it is impossible,falsewill be returned. Also,falsemay be returned if the new row is not created for some model-specific reason. Should robustly handle adestno 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_dataat that location.dest_pathdoes not have to exist; the return value will almost certainly befalseif the parent ofdest_pathdoesn’t exist, though.Declaration
Swift
@inlinable func rowDropPossible<SelectionDataT, TreePathT>(destPath: TreePathT, selectionData: SelectionDataT) -> Bool where SelectionDataT : SelectionDataProtocol, TreePathT : TreePathProtocol
View on GitHub
Install in Dash
TreeDragDestProtocol Protocol Reference