| Copyright | Will Thompson and Iñaki García Etxebarria | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
GI.Gtk.Interfaces.TreeDragSource
Description
Interface for Drag-and-Drop destinations in GtkTreeView.
Synopsis
- newtype TreeDragSource = TreeDragSource (ManagedPtr TreeDragSource)
 - class (ManagedPtrNewtype o, IsDescendantOf TreeDragSource o) => IsTreeDragSource o
 - treeDragSourceDragDataDelete :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> m Bool
 - treeDragSourceDragDataGet :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> m (Maybe ContentProvider)
 - treeDragSourceRowDraggable :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> m Bool
 
Exported types
newtype TreeDragSource Source #
Memory-managed wrapper type.
Constructors
| TreeDragSource (ManagedPtr TreeDragSource) | 
Instances
| Eq TreeDragSource Source # | |
Defined in GI.Gtk.Interfaces.TreeDragSource Methods (==) :: TreeDragSource -> TreeDragSource -> Bool # (/=) :: TreeDragSource -> TreeDragSource -> Bool #  | |
| BoxedPtr TreeDragSource Source # | |
Defined in GI.Gtk.Interfaces.TreeDragSource  | |
| ManagedPtrNewtype TreeDragSource Source # | |
Defined in GI.Gtk.Interfaces.TreeDragSource Methods toManagedPtr :: TreeDragSource -> ManagedPtr TreeDragSource  | |
class (ManagedPtrNewtype o, IsDescendantOf TreeDragSource o) => IsTreeDragSource o Source #
Type class for types which implement TreeDragSource.
Instances
| (ManagedPtrNewtype o, IsDescendantOf TreeDragSource o) => IsTreeDragSource o Source # | |
Defined in GI.Gtk.Interfaces.TreeDragSource  | |
Methods
Click to display all available methods, including inherited ones
dragDataDelete
treeDragSourceDragDataDelete Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTreeDragSource a) | |
| => a | 
  | 
| -> TreePath | 
  | 
| -> m Bool | Returns:   | 
Asks the GtkTreeDragSource to delete the row at path, because
 it was moved somewhere else via drag-and-drop. Returns False
 if the deletion fails because path no longer exists, or for
 some model-specific reason. Should robustly handle a path no
 longer found in the model!
dragDataGet
treeDragSourceDragDataGet Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTreeDragSource a) | |
| => a | 
  | 
| -> TreePath | 
  | 
| -> m (Maybe ContentProvider) | Returns: a   | 
Asks the GtkTreeDragSource to return a GdkContentProvider representing
 the row at path. Should robustly handle a path no
 longer found in the model!
rowDraggable
treeDragSourceRowDraggable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTreeDragSource a) | |
| => a | 
  | 
| -> TreePath | 
  | 
| -> m Bool | Returns:   | 
Asks the GtkTreeDragSource whether 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.