TreeDragSourceProtocol
public protocol TreeDragSourceProtocol
Interface for Drag-and-Drop destinations in GtkTreeView.
The TreeDragSourceProtocol protocol exposes the methods and properties of an underlying GtkTreeDragSource 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 TreeDragSource.
Alternatively, use TreeDragSourceRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkTreeDragSourceinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
tree_drag_source_ptrDefault implementationTyped pointer to the underlying
GtkTreeDragSourceinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeDragSourceinstance.Declaration
Swift
var tree_drag_source_ptr: UnsafeMutablePointer<GtkTreeDragSource>! { get } -
Required Initialiser for types conforming to
TreeDragSourceProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
dragDataDelete(path:Extension method) Asks the
GtkTreeDragSourceto delete the row atpath, because it was moved somewhere else via drag-and-drop. Returnsfalseif the deletion fails becausepathno longer exists, or for some model-specific reason. Should robustly handle apathno longer found in the model!Declaration
Swift
@inlinable func dragDataDelete<TreePathT>(path: TreePathT) -> Bool where TreePathT : TreePathProtocol -
dragDataGet(path:Extension method) Asks the
GtkTreeDragSourceto return aGdkContentProviderrepresenting the row atpath. Should robustly handle apathno longer found in the model!Declaration
Swift
@inlinable func dragDataGet<TreePathT>(path: TreePathT) -> Gdk.ContentProviderRef! where TreePathT : TreePathProtocol -
rowDraggable(path:Extension method) Asks the
GtkTreeDragSourcewhether a particular row can be used as the source of a DND operation. If the source doesn’t implement this interface, the row is assumed draggable.Declaration
Swift
@inlinable func rowDraggable<TreePathT>(path: TreePathT) -> Bool where TreePathT : TreePathProtocol
View on GitHub
Install in Dash
TreeDragSourceProtocol Protocol Reference