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 RotateAction
structure contains
only private data and should be accessed using the provided API
Since: 1.12
Synopsis
- newtype RotateAction = RotateAction (ManagedPtr RotateAction)
- class (GObject o, IsDescendantOf RotateAction o) => IsRotateAction o
- toRotateAction :: (MonadIO m, IsRotateAction o) => o -> m RotateAction
- rotateActionNew :: (HasCallStack, MonadIO m) => m RotateAction
- type RotateActionRotateCallback = Actor -> Double -> IO Bool
- afterRotateActionRotate :: (IsRotateAction a, MonadIO m) => a -> ((?self :: a) => RotateActionRotateCallback) -> m SignalHandlerId
- onRotateActionRotate :: (IsRotateAction a, MonadIO m) => a -> ((?self :: a) => RotateActionRotateCallback) -> m SignalHandlerId
Exported types
newtype RotateAction Source #
Memory-managed wrapper type.
RotateAction (ManagedPtr RotateAction) |
Instances
Eq RotateAction Source # | |
Defined in GI.Clutter.Objects.RotateAction (==) :: RotateAction -> RotateAction -> Bool # (/=) :: RotateAction -> RotateAction -> Bool # | |
GObject RotateAction Source # | |
Defined in GI.Clutter.Objects.RotateAction | |
ManagedPtrNewtype RotateAction Source # | |
Defined in GI.Clutter.Objects.RotateAction toManagedPtr :: RotateAction -> ManagedPtr RotateAction | |
TypedObject RotateAction Source # | |
Defined in GI.Clutter.Objects.RotateAction | |
HasParentTypes RotateAction Source # | |
Defined in GI.Clutter.Objects.RotateAction | |
IsGValue (Maybe RotateAction) Source # | Convert |
Defined in GI.Clutter.Objects.RotateAction gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe RotateAction -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe RotateAction) | |
type ParentTypes RotateAction Source # | |
Defined in GI.Clutter.Objects.RotateAction |
class (GObject o, IsDescendantOf RotateAction o) => IsRotateAction o Source #
Type class for types which can be safely cast to RotateAction
, for instance with toRotateAction
.
Instances
(GObject o, IsDescendantOf RotateAction o) => IsRotateAction o Source # | |
Defined in GI.Clutter.Objects.RotateAction |
toRotateAction :: (MonadIO m, IsRotateAction o) => o -> m RotateAction Source #
Cast to RotateAction
, 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, cancel, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActor, getData, getDevice, getEnabled, getLastEvent, getMotionCoords, getMotionDelta, getNCurrentPoints, getNTouchPoints, getName, getPressCoords, getProperty, getQdata, getReleaseCoords, getSequence, getThresholdTriggerDistance, getThresholdTriggerEdge, getThresholdTriggerEgde, getVelocity.
Setters
setData, setDataFull, setEnabled, setNTouchPoints, setName, setProperty, setThresholdTriggerDistance, setThresholdTriggerEdge.
new
:: (HasCallStack, MonadIO m) | |
=> m RotateAction | Returns: the newly created |
Creates a new RotateAction
instance
Since: 1.12
Signals
rotate
type RotateActionRotateCallback Source #
= Actor |
|
-> Double |
|
-> IO Bool | Returns: |
The rotate signal is emitted when a rotate gesture is recognized on the attached actor and when the gesture is cancelled (in this case with an angle value of 0).
Since: 1.12
afterRotateActionRotate :: (IsRotateAction a, MonadIO m) => a -> ((?self :: a) => RotateActionRotateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the rotate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
rotateAction #rotate 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.
onRotateActionRotate :: (IsRotateAction a, MonadIO m) => a -> ((?self :: a) => RotateActionRotateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the rotate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
rotateAction #rotate callback