| 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 | 
GI.Clutter.Objects.GestureAction
Description
The GestureAction structure contains
 only private data and should be accessed using the provided API
Since: 1.8
Synopsis
- newtype GestureAction = GestureAction (ManagedPtr GestureAction)
 - class (GObject o, IsDescendantOf GestureAction o) => IsGestureAction o
 - toGestureAction :: (MonadIO m, IsGestureAction o) => o -> m GestureAction
 - gestureActionCancel :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> m ()
 - gestureActionGetDevice :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m InputDevice
 - gestureActionGetLastEvent :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m Event
 - gestureActionGetMotionCoords :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m (Float, Float)
 - gestureActionGetMotionDelta :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m (Float, Float, Float)
 - gestureActionGetNCurrentPoints :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> m Word32
 - gestureActionGetNTouchPoints :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> m Int32
 - gestureActionGetPressCoords :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m (Float, Float)
 - gestureActionGetReleaseCoords :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m (Float, Float)
 - gestureActionGetSequence :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m EventSequence
 - gestureActionGetThresholdTriggerDistance :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> m (Float, Float)
 - gestureActionGetThresholdTriggerEdge :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> m GestureTriggerEdge
 - gestureActionGetThresholdTriggerEgde :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> m GestureTriggerEdge
 - gestureActionGetVelocity :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Word32 -> m (Float, Float, Float)
 - gestureActionNew :: (HasCallStack, MonadIO m) => m GestureAction
 - gestureActionSetNTouchPoints :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Int32 -> m ()
 - gestureActionSetThresholdTriggerDistance :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> Float -> Float -> m ()
 - gestureActionSetThresholdTriggerEdge :: (HasCallStack, MonadIO m, IsGestureAction a) => a -> GestureTriggerEdge -> m ()
 - constructGestureActionNTouchPoints :: (IsGestureAction o, MonadIO m) => Int32 -> m (GValueConstruct o)
 - getGestureActionNTouchPoints :: (MonadIO m, IsGestureAction o) => o -> m Int32
 - setGestureActionNTouchPoints :: (MonadIO m, IsGestureAction o) => o -> Int32 -> m ()
 - constructGestureActionThresholdTriggerDistanceX :: (IsGestureAction o, MonadIO m) => Float -> m (GValueConstruct o)
 - getGestureActionThresholdTriggerDistanceX :: (MonadIO m, IsGestureAction o) => o -> m Float
 - constructGestureActionThresholdTriggerDistanceY :: (IsGestureAction o, MonadIO m) => Float -> m (GValueConstruct o)
 - getGestureActionThresholdTriggerDistanceY :: (MonadIO m, IsGestureAction o) => o -> m Float
 - constructGestureActionThresholdTriggerEdge :: (IsGestureAction o, MonadIO m) => GestureTriggerEdge -> m (GValueConstruct o)
 - getGestureActionThresholdTriggerEdge :: (MonadIO m, IsGestureAction o) => o -> m GestureTriggerEdge
 - type GestureActionGestureBeginCallback = Actor -> IO Bool
 - afterGestureActionGestureBegin :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureBeginCallback) -> m SignalHandlerId
 - onGestureActionGestureBegin :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureBeginCallback) -> m SignalHandlerId
 - type GestureActionGestureCancelCallback = Actor -> IO ()
 - afterGestureActionGestureCancel :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureCancelCallback) -> m SignalHandlerId
 - onGestureActionGestureCancel :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureCancelCallback) -> m SignalHandlerId
 - type GestureActionGestureEndCallback = Actor -> IO ()
 - afterGestureActionGestureEnd :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureEndCallback) -> m SignalHandlerId
 - onGestureActionGestureEnd :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureEndCallback) -> m SignalHandlerId
 - type GestureActionGestureProgressCallback = Actor -> IO Bool
 - afterGestureActionGestureProgress :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureProgressCallback) -> m SignalHandlerId
 - onGestureActionGestureProgress :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureProgressCallback) -> m SignalHandlerId
 
Exported types
newtype GestureAction Source #
Memory-managed wrapper type.
Constructors
| GestureAction (ManagedPtr GestureAction) | 
Instances
| Eq GestureAction Source # | |
Defined in GI.Clutter.Objects.GestureAction Methods (==) :: GestureAction -> GestureAction -> Bool # (/=) :: GestureAction -> GestureAction -> Bool #  | |
| GObject GestureAction Source # | |
Defined in GI.Clutter.Objects.GestureAction  | |
| ManagedPtrNewtype GestureAction Source # | |
Defined in GI.Clutter.Objects.GestureAction Methods toManagedPtr :: GestureAction -> ManagedPtr GestureAction  | |
| TypedObject GestureAction Source # | |
Defined in GI.Clutter.Objects.GestureAction  | |
| HasParentTypes GestureAction Source # | |
Defined in GI.Clutter.Objects.GestureAction  | |
| IsGValue (Maybe GestureAction) Source # | Convert   | 
Defined in GI.Clutter.Objects.GestureAction Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe GestureAction -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe GestureAction)  | |
| type ParentTypes GestureAction Source # | |
Defined in GI.Clutter.Objects.GestureAction  | |
class (GObject o, IsDescendantOf GestureAction o) => IsGestureAction o Source #
Type class for types which can be safely cast to GestureAction, for instance with toGestureAction.
Instances
| (GObject o, IsDescendantOf GestureAction o) => IsGestureAction o Source # | |
Defined in GI.Clutter.Objects.GestureAction  | |
toGestureAction :: (MonadIO m, IsGestureAction o) => o -> m GestureAction Source #
Cast to GestureAction, 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.
cancel
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> m () | 
Cancel a GestureAction before it begins
Since: 1.12
getDevice
gestureActionGetDevice Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m InputDevice | Returns: the   | 
Retrieves the InputDevice of a touch point.
Since: 1.12
getLastEvent
gestureActionGetLastEvent Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m Event | Returns: the last   | 
getMotionCoords
gestureActionGetMotionCoords Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m (Float, Float) | 
Retrieves the coordinates, in stage space, of the latest motion event during the dragging.
Since: 1.8
getMotionDelta
gestureActionGetMotionDelta Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m (Float, Float, Float) | Returns: the distance since last motion event  | 
Retrieves the incremental delta since the last motion event during the dragging.
Since: 1.12
getNCurrentPoints
gestureActionGetNCurrentPoints Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> m Word32 | Returns: the number of points currently active.  | 
Retrieves the number of points currently active.
Since: 1.12
getNTouchPoints
gestureActionGetNTouchPoints Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> m Int32 | Returns: the number of points to trigger the gesture.  | 
Retrieves the number of requested points to trigger the gesture.
Since: 1.12
getPressCoords
gestureActionGetPressCoords Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m (Float, Float) | 
Retrieves the coordinates, in stage space, of the press event that started the dragging for a specific touch point.
Since: 1.8
getReleaseCoords
gestureActionGetReleaseCoords Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m (Float, Float) | 
Retrieves the coordinates, in stage space, where the touch point was last released.
Since: 1.8
getSequence
gestureActionGetSequence Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m EventSequence | Returns: the   | 
Retrieves the EventSequence of a touch point.
Since: 1.12
getThresholdTriggerDistance
gestureActionGetThresholdTriggerDistance Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> m (Float, Float) | 
Retrieves the threshold trigger distance of the gesture action,
 as set using gestureActionSetThresholdTriggerDistance.
Since: 1.18
getThresholdTriggerEdge
gestureActionGetThresholdTriggerEdge Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> m GestureTriggerEdge | Returns: the edge trigger  | 
Retrieves the edge trigger of the gesture action, as set using
 gestureActionSetThresholdTriggerEdge.
Since: 1.20
getThresholdTriggerEgde
gestureActionGetThresholdTriggerEgde Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> m GestureTriggerEdge | Returns: the edge trigger  | 
Deprecated: (Since version 1.20)Use gestureActionGetThresholdTriggerEdge instead.
Retrieves the edge trigger of the gesture action, as set using
 gestureActionSetThresholdTriggerEdge.
Since: 1.18
getVelocity
gestureActionGetVelocity Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m (Float, Float, Float) | 
Retrieves the velocity, in stage pixels per millisecond, of the latest motion event during the dragging.
Since: 1.12
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m GestureAction | Returns: the newly created   | 
Creates a new GestureAction instance.
Since: 1.8
setNTouchPoints
gestureActionSetNTouchPoints Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Int32 | 
  | 
| -> m () | 
Sets the number of points needed to trigger the gesture.
Since: 1.12
setThresholdTriggerDistance
gestureActionSetThresholdTriggerDistance Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> m () | 
Sets the threshold trigger distance for the gesture drag threshold, if any.
This function should only be called by sub-classes of
 GestureAction during their construction phase.
Since: 1.18
setThresholdTriggerEdge
gestureActionSetThresholdTriggerEdge Source #
Arguments
| :: (HasCallStack, MonadIO m, IsGestureAction a) | |
| => a | 
  | 
| -> GestureTriggerEdge | 
  | 
| -> m () | 
Sets the edge trigger for the gesture drag threshold, if any.
This function should only be called by sub-classes of
 GestureAction during their construction phase.
Since: 1.18
Properties
nTouchPoints
Number of touch points to trigger a gesture action.
Since: 1.16
constructGestureActionNTouchPoints :: (IsGestureAction o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “n-touch-points” property. This is rarely needed directly, but it is used by new.
getGestureActionNTouchPoints :: (MonadIO m, IsGestureAction o) => o -> m Int32 Source #
Get the value of the “n-touch-points” property.
 When overloading is enabled, this is equivalent to
get gestureAction #nTouchPoints
setGestureActionNTouchPoints :: (MonadIO m, IsGestureAction o) => o -> Int32 -> m () Source #
Set the value of the “n-touch-points” property.
 When overloading is enabled, this is equivalent to
setgestureAction [ #nTouchPoints:=value ]
thresholdTriggerDistanceX
The horizontal trigger distance to be used by the action to either emit the GestureAction::gestureBegin signal or to emit the GestureAction::gestureCancel signal.
A negative value will be interpreted as the default drag threshold.
Since: 1.18
constructGestureActionThresholdTriggerDistanceX :: (IsGestureAction o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “threshold-trigger-distance-x” property. This is rarely needed directly, but it is used by new.
getGestureActionThresholdTriggerDistanceX :: (MonadIO m, IsGestureAction o) => o -> m Float Source #
Get the value of the “threshold-trigger-distance-x” property.
 When overloading is enabled, this is equivalent to
get gestureAction #thresholdTriggerDistanceX
thresholdTriggerDistanceY
The vertical trigger distance to be used by the action to either emit the GestureAction::gestureBegin signal or to emit the GestureAction::gestureCancel signal.
A negative value will be interpreted as the default drag threshold.
Since: 1.18
constructGestureActionThresholdTriggerDistanceY :: (IsGestureAction o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “threshold-trigger-distance-y” property. This is rarely needed directly, but it is used by new.
getGestureActionThresholdTriggerDistanceY :: (MonadIO m, IsGestureAction o) => o -> m Float Source #
Get the value of the “threshold-trigger-distance-y” property.
 When overloading is enabled, this is equivalent to
get gestureAction #thresholdTriggerDistanceY
thresholdTriggerEdge
The trigger edge to be used by the action to either emit the GestureAction::gestureBegin signal or to emit the GestureAction::gestureCancel signal.
Since: 1.18
constructGestureActionThresholdTriggerEdge :: (IsGestureAction o, MonadIO m) => GestureTriggerEdge -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “threshold-trigger-edge” property. This is rarely needed directly, but it is used by new.
getGestureActionThresholdTriggerEdge :: (MonadIO m, IsGestureAction o) => o -> m GestureTriggerEdge Source #
Get the value of the “threshold-trigger-edge” property.
 When overloading is enabled, this is equivalent to
get gestureAction #thresholdTriggerEdge
Signals
gestureBegin
type GestureActionGestureBeginCallback Source #
Arguments
| = Actor | 
  | 
| -> IO Bool | Returns:   | 
The gesture_begin signal is emitted when the Actor to which
 a GestureAction has been applied starts receiving a gesture.
Since: 1.8
afterGestureActionGestureBegin :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureBeginCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureBegin signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after gestureAction #gestureBegin 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.
onGestureActionGestureBegin :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureBeginCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureBegin signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on gestureAction #gestureBegin callback
gestureCancel
type GestureActionGestureCancelCallback Source #
The gestureCancel signal is emitted when the ongoing gesture gets cancelled from the GestureAction::gestureProgress signal handler.
This signal is emitted if and only if the GestureAction::gestureBegin signal has been emitted first.
Since: 1.8
afterGestureActionGestureCancel :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureCancelCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureCancel signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after gestureAction #gestureCancel 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.
onGestureActionGestureCancel :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureCancelCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureCancel signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on gestureAction #gestureCancel callback
gestureEnd
type GestureActionGestureEndCallback Source #
The gestureEnd signal is emitted at the end of the gesture gesture, when the pointer's button is released
This signal is emitted if and only if the GestureAction::gestureBegin signal has been emitted first.
Since: 1.8
afterGestureActionGestureEnd :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureEndCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureEnd signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after gestureAction #gestureEnd 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.
onGestureActionGestureEnd :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureEndCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureEnd signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on gestureAction #gestureEnd callback
gestureProgress
type GestureActionGestureProgressCallback Source #
Arguments
| = Actor | 
  | 
| -> IO Bool | Returns:   | 
The gestureProgress signal is emitted for each motion event after the GestureAction::gestureBegin signal has been emitted.
Since: 1.8
afterGestureActionGestureProgress :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureProgressCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureProgress signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after gestureAction #gestureProgress 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.
onGestureActionGestureProgress :: (IsGestureAction a, MonadIO m) => a -> ((?self :: a) => GestureActionGestureProgressCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gestureProgress signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on gestureAction #gestureProgress callback