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 TreeDragDest = TreeDragDest (ManagedPtr TreeDragDest)
- noTreeDragDest :: Maybe TreeDragDest
- class ManagedPtrNewtype a => IsTreeDragDest a
- data TreeDragDestDragDataReceivedMethodInfo
- treeDragDestDragDataReceived :: (HasCallStack, MonadIO m, IsTreeDragDest a) => a -> TreePath -> SelectionData -> m Bool
- data TreeDragDestRowDropPossibleMethodInfo
- treeDragDestRowDropPossible :: (HasCallStack, MonadIO m, IsTreeDragDest a) => a -> TreePath -> SelectionData -> m Bool
Exported types
newtype TreeDragDest Source #
WrappedPtr TreeDragDest Source # | |
IsTreeDragDest TreeDragDest Source # | |
((~) * info (ResolveTreeDragDestMethod t TreeDragDest), MethodInfo * info TreeDragDest p) => IsLabel t (TreeDragDest -> p) Source # | |
((~) * info (ResolveTreeDragDestMethod t TreeDragDest), MethodInfo * info TreeDragDest p) => IsLabelProxy t (TreeDragDest -> p) Source # | |
HasAttributeList * TreeDragDest Source # | |
type AttributeList TreeDragDest Source # | |
type SignalList TreeDragDest Source # | |
class ManagedPtrNewtype a => IsTreeDragDest a Source #
Methods
dragDataReceived
data TreeDragDestDragDataReceivedMethodInfo Source #
((~) * signature (TreePath -> SelectionData -> m Bool), MonadIO m, IsTreeDragDest a) => MethodInfo * TreeDragDestDragDataReceivedMethodInfo a signature Source # | |
treeDragDestDragDataReceived Source #
:: (HasCallStack, MonadIO m, IsTreeDragDest a) | |
=> a |
|
-> TreePath |
|
-> SelectionData |
|
-> m Bool | Returns: whether a new row was created before position |
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
data TreeDragDestRowDropPossibleMethodInfo Source #
((~) * signature (TreePath -> SelectionData -> m Bool), MonadIO m, IsTreeDragDest a) => MethodInfo * TreeDragDestRowDropPossibleMethodInfo a signature Source # | |
treeDragDestRowDropPossible Source #
:: (HasCallStack, MonadIO m, IsTreeDragDest a) | |
=> a |
|
-> TreePath |
|
-> SelectionData |
|
-> m Bool | Returns: |
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.