| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Interfaces.TreeDragSource
Description
No description available in the introspection data.
Synopsis
- newtype TreeDragSource = TreeDragSource (ManagedPtr TreeDragSource)
- noTreeDragSource :: Maybe TreeDragSource
- class ManagedPtrNewtype a => IsTreeDragSource a
- treeDragSourceDragDataDelete :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> m Bool
- treeDragSourceDragDataGet :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> SelectionData -> m Bool
- treeDragSourceRowDraggable :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> m Bool
Exported types
newtype TreeDragSource Source #
Memory-managed wrapper type.
Constructors
| TreeDragSource (ManagedPtr TreeDragSource) |
Instances
| WrappedPtr TreeDragSource Source # | |
Defined in GI.Gtk.Interfaces.TreeDragSource Methods wrappedPtrCalloc :: IO (Ptr TreeDragSource) # wrappedPtrCopy :: TreeDragSource -> IO TreeDragSource # wrappedPtrFree :: Maybe (FunPtr (Ptr TreeDragSource -> IO ())) # | |
| IsTreeDragSource TreeDragSource Source # | |
Defined in GI.Gtk.Interfaces.TreeDragSource | |
noTreeDragSource :: Maybe TreeDragSource Source #
A convenience alias for Nothing :: Maybe TreeDragSource.
class ManagedPtrNewtype a => IsTreeDragSource a Source #
Type class for types which implement TreeDragSource.
Instances
| IsTreeDragSource TreeDragSource Source # | |
Defined in GI.Gtk.Interfaces.TreeDragSource | |
| IsTreeDragSource TreeStore Source # | |
Defined in GI.Gtk.Objects.TreeStore | |
| IsTreeDragSource ListStore Source # | |
Defined in GI.Gtk.Objects.ListStore | |
| IsTreeDragSource TreeModelSort Source # | |
Defined in GI.Gtk.Objects.TreeModelSort | |
| IsTreeDragSource TreeModelFilter Source # | |
Defined in GI.Gtk.Objects.TreeModelFilter | |
Methods
dragDataDelete
treeDragSourceDragDataDelete Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTreeDragSource a) | |
| => a |
|
| -> TreePath |
|
| -> m Bool | Returns: |
Asks the TreeDragSource 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 |
|
| -> SelectionData |
|
| -> m Bool | Returns: |
Asks the TreeDragSource to fill in selectionData with a
representation of the row at path. selectionData->target gives
the required type of the data. 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 TreeDragSource 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.