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 |
- newtype TreeDragSource = TreeDragSource (ManagedPtr TreeDragSource)
- noTreeDragSource :: Maybe TreeDragSource
- class ManagedPtrNewtype a => IsTreeDragSource a
- data TreeDragSourceDragDataDeleteMethodInfo
- treeDragSourceDragDataDelete :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> m Bool
- data TreeDragSourceDragDataGetMethodInfo
- treeDragSourceDragDataGet :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> SelectionData -> m Bool
- data TreeDragSourceRowDraggableMethodInfo
- treeDragSourceRowDraggable :: (HasCallStack, MonadIO m, IsTreeDragSource a) => a -> TreePath -> m Bool
Exported types
newtype TreeDragSource Source #
WrappedPtr TreeDragSource Source # | |
IsTreeDragSource TreeDragSource Source # | |
((~) * info (ResolveTreeDragSourceMethod t TreeDragSource), MethodInfo * info TreeDragSource p) => IsLabel t (TreeDragSource -> p) Source # | |
((~) * info (ResolveTreeDragSourceMethod t TreeDragSource), MethodInfo * info TreeDragSource p) => IsLabelProxy t (TreeDragSource -> p) Source # | |
HasAttributeList * TreeDragSource Source # | |
type AttributeList TreeDragSource Source # | |
type SignalList TreeDragSource Source # | |
class ManagedPtrNewtype a => IsTreeDragSource a Source #
Methods
dragDataDelete
data TreeDragSourceDragDataDeleteMethodInfo Source #
((~) * signature (TreePath -> m Bool), MonadIO m, IsTreeDragSource a) => MethodInfo * TreeDragSourceDragDataDeleteMethodInfo a signature Source # | |
treeDragSourceDragDataDelete Source #
:: (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
data TreeDragSourceDragDataGetMethodInfo Source #
((~) * signature (TreePath -> SelectionData -> m Bool), MonadIO m, IsTreeDragSource a) => MethodInfo * TreeDragSourceDragDataGetMethodInfo a signature Source # | |
treeDragSourceDragDataGet Source #
:: (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
data TreeDragSourceRowDraggableMethodInfo Source #
((~) * signature (TreePath -> m Bool), MonadIO m, IsTreeDragSource a) => MethodInfo * TreeDragSourceRowDraggableMethodInfo a signature Source # | |
treeDragSourceRowDraggable Source #
:: (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.