Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
Interface for Drag-and-Drop destinations in GtkTreeView.
TreeDragDest (Handle = null)
Creates a new
TreeDragDestby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.drag_data_received (object dest, object value)
Asks the
GtkTreeDragDestto insert a row before the path @dest, deriving the contents of the row from @value. If @dest 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 a @dest no longer found in the model!
dest is row to drop in front of.value is data to drop.row_drop_possible (object dest_path, object value)
Determines whether a drop is possible before the given @dest_path, at the same depth as @dest_path. i.e., can we drop the data in @value at that location. @dest_path does not have to exist; the return value will almost certainly be %FALSE if the parent of @dest_path doesn’t exist, though.
dest_path is destination row.value is the data being dropped.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.