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 |
The DropAction
structure contains only
private data and should be accessed using the provided API.
Since: 1.8
Synopsis
- newtype DropAction = DropAction (ManagedPtr DropAction)
- class (GObject o, IsDescendantOf DropAction o) => IsDropAction o
- toDropAction :: (MonadIO m, IsDropAction o) => o -> m DropAction
- dropActionNew :: (HasCallStack, MonadIO m) => m DropAction
- type DropActionCanDropCallback = Actor -> Float -> Float -> IO Bool
- afterDropActionCanDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionCanDropCallback) -> m SignalHandlerId
- onDropActionCanDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionCanDropCallback) -> m SignalHandlerId
- type DropActionDropCallback = Actor -> Float -> Float -> IO ()
- afterDropActionDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCallback) -> m SignalHandlerId
- onDropActionDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCallback) -> m SignalHandlerId
- type DropActionDropCancelCallback = Actor -> Float -> Float -> IO ()
- afterDropActionDropCancel :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCancelCallback) -> m SignalHandlerId
- onDropActionDropCancel :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCancelCallback) -> m SignalHandlerId
- type DropActionOverInCallback = Actor -> IO ()
- afterDropActionOverIn :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverInCallback) -> m SignalHandlerId
- onDropActionOverIn :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverInCallback) -> m SignalHandlerId
- type DropActionOverOutCallback = Actor -> IO ()
- afterDropActionOverOut :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverOutCallback) -> m SignalHandlerId
- onDropActionOverOut :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverOutCallback) -> m SignalHandlerId
Exported types
newtype DropAction Source #
Memory-managed wrapper type.
DropAction (ManagedPtr DropAction) |
Instances
Eq DropAction Source # | |
Defined in GI.Clutter.Objects.DropAction (==) :: DropAction -> DropAction -> Bool # (/=) :: DropAction -> DropAction -> Bool # | |
GObject DropAction Source # | |
Defined in GI.Clutter.Objects.DropAction | |
ManagedPtrNewtype DropAction Source # | |
Defined in GI.Clutter.Objects.DropAction toManagedPtr :: DropAction -> ManagedPtr DropAction | |
TypedObject DropAction Source # | |
Defined in GI.Clutter.Objects.DropAction | |
HasParentTypes DropAction Source # | |
Defined in GI.Clutter.Objects.DropAction | |
IsGValue (Maybe DropAction) Source # | Convert |
Defined in GI.Clutter.Objects.DropAction gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DropAction -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DropAction) | |
type ParentTypes DropAction Source # | |
Defined in GI.Clutter.Objects.DropAction |
class (GObject o, IsDescendantOf DropAction o) => IsDropAction o Source #
Type class for types which can be safely cast to DropAction
, for instance with toDropAction
.
Instances
(GObject o, IsDescendantOf DropAction o) => IsDropAction o Source # | |
Defined in GI.Clutter.Objects.DropAction |
toDropAction :: (MonadIO m, IsDropAction o) => o -> m DropAction Source #
Cast to DropAction
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActor, getData, getEnabled, getName, getProperty, getQdata.
Setters
new
:: (HasCallStack, MonadIO m) | |
=> m DropAction | Returns: the newly created |
Signals
canDrop
type DropActionCanDropCallback Source #
= Actor |
|
-> Float |
|
-> Float |
|
-> IO Bool |
The canDrop signal is emitted when the dragged actor is dropped
on actor
. The return value of the canDrop signal will determine
whether or not the DropAction::drop signal is going to be
emitted on action
.
The default implementation of DropAction
returns True
for
this signal.
Since: 1.8
afterDropActionCanDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionCanDropCallback) -> m SignalHandlerId Source #
Connect a signal handler for the canDrop signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dropAction #canDrop callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDropActionCanDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionCanDropCallback) -> m SignalHandlerId Source #
Connect a signal handler for the canDrop signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dropAction #canDrop callback
drop
type DropActionDropCallback Source #
= Actor |
|
-> Float |
|
-> Float |
|
-> IO () |
The drop signal is emitted when the dragged actor is dropped
on actor
. This signal is only emitted if at least an handler of
DropAction::canDrop returns True
.
Since: 1.8
afterDropActionDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCallback) -> m SignalHandlerId Source #
Connect a signal handler for the drop signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dropAction #drop callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDropActionDrop :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCallback) -> m SignalHandlerId Source #
Connect a signal handler for the drop signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dropAction #drop callback
dropCancel
type DropActionDropCancelCallback Source #
= Actor |
|
-> Float |
|
-> Float |
|
-> IO () |
The dropCancel signal is emitted when the drop is refused by an emission of the DropAction::canDrop signal.
After the dropCancel signal is fired the active drag is terminated.
Since: 1.12
afterDropActionDropCancel :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCancelCallback) -> m SignalHandlerId Source #
Connect a signal handler for the dropCancel signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dropAction #dropCancel callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDropActionDropCancel :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionDropCancelCallback) -> m SignalHandlerId Source #
Connect a signal handler for the dropCancel signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dropAction #dropCancel callback
overIn
type DropActionOverInCallback Source #
The overIn signal is emitted when the dragged actor crosses
into actor
.
Since: 1.8
afterDropActionOverIn :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverInCallback) -> m SignalHandlerId Source #
Connect a signal handler for the overIn signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dropAction #overIn callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDropActionOverIn :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverInCallback) -> m SignalHandlerId Source #
Connect a signal handler for the overIn signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dropAction #overIn callback
overOut
type DropActionOverOutCallback Source #
The overOut signal is emitted when the dragged actor crosses
outside actor
.
Since: 1.8
afterDropActionOverOut :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverOutCallback) -> m SignalHandlerId Source #
Connect a signal handler for the overOut signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dropAction #overOut callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDropActionOverOut :: (IsDropAction a, MonadIO m) => a -> ((?self :: a) => DropActionOverOutCallback) -> m SignalHandlerId Source #
Connect a signal handler for the overOut signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dropAction #overOut callback