gi-gtk-3.0.31: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Interfaces.TreeDragDest

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

class (ManagedPtrNewtype o, IsDescendantOf TreeDragDest o) => IsTreeDragDest o Source #

Type class for types which implement TreeDragDest.

Methods

dragDataReceived

treeDragDestDragDataReceived Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeDragDest a) 
=> a

dragDest: a TreeDragDest

-> TreePath

dest: row to drop in front of

-> SelectionData

selectionData: data to drop

-> m Bool

Returns: whether a new row was created before position dest

Asks the TreeDragDest to insert a row before the path dest, deriving the contents of the row from selectionData. 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!

rowDropPossible

treeDragDestRowDropPossible Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeDragDest a) 
=> a

dragDest: a TreeDragDest

-> TreePath

destPath: destination row

-> SelectionData

selectionData: the data being dragged

-> m Bool

Returns: True if a drop is possible before destPath

Determines whether a drop is possible before the given destPath, at the same depth as destPath. i.e., can we drop the data in selectionData at that location. destPath does not have to exist; the return value will almost certainly be False if the parent of destPath doesn’t exist, though.