Package: gtk

Interface gtk-tree-drag-dest

Superclasses

g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

Direct Slots

None

Details

GTK supports Drag-and-Drop in tree views with a high-level and a low-level API.

The low-level API consists of the GTK DND API, augmented by some tree view utility functions: gtk-tree-view-set-drag-dest-row, gtk-tree-view-get-drag-dest-row, gtk-tree-view-get-dest-row-at-pos, gtk-tree-view-create-row-drag-icon, gtk-tree-set-row-drag-data and gtk-tree-get-row-drag-data. This API leaves a lot of flexibility, but nothing is done automatically, and implementing advanced features like hover-to-open-rows or autoscrolling on top of this API is a lot of work.

On the other hand, if you write to the high-level API, then all the bookkeeping of rows is done for you, as well as things like hover-to-open and auto-scroll, but your models have to implement the gtk-tree-drag-source and gtk-tree-drag-dest interfaces.
 

Inherited Slot Access Functions

See also

2021-3-5