Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gdk.Objects.TouchpadEvent
Description
An event related to a gesture on a touchpad device.
Unlike touchscreens, where the windowing system sends basic sequences of begin, update, end events, and leaves gesture recognition to the clients, touchpad gestures are typically processed by the system, resulting in these events.
Synopsis
- newtype TouchpadEvent = TouchpadEvent (ManagedPtr TouchpadEvent)
- class (BoxedPtr o, TypedObject o, IsDescendantOf TouchpadEvent o) => IsTouchpadEvent o
- toTouchpadEvent :: (MonadIO m, IsTouchpadEvent o) => o -> m TouchpadEvent
- type family ResolveTouchpadEventMethod (t :: Symbol) o where ...
- data TouchpadEventGetDeltasMethodInfo
- touchpadEventGetDeltas :: (HasCallStack, MonadIO m, IsTouchpadEvent a) => a -> m (Double, Double)
- data TouchpadEventGetGesturePhaseMethodInfo
- touchpadEventGetGesturePhase :: (HasCallStack, MonadIO m, IsTouchpadEvent a) => a -> m TouchpadGesturePhase
- data TouchpadEventGetNFingersMethodInfo
- touchpadEventGetNFingers :: (HasCallStack, MonadIO m, IsTouchpadEvent a) => a -> m Word32
- data TouchpadEventGetPinchAngleDeltaMethodInfo
- touchpadEventGetPinchAngleDelta :: (HasCallStack, MonadIO m, IsTouchpadEvent a) => a -> m Double
- data TouchpadEventGetPinchScaleMethodInfo
- touchpadEventGetPinchScale :: (HasCallStack, MonadIO m, IsTouchpadEvent a) => a -> m Double
Exported types
newtype TouchpadEvent Source #
Memory-managed wrapper type.
Constructors
TouchpadEvent (ManagedPtr TouchpadEvent) |
Instances
class (BoxedPtr o, TypedObject o, IsDescendantOf TouchpadEvent o) => IsTouchpadEvent o Source #
Type class for types which can be safely cast to TouchpadEvent
, for instance with toTouchpadEvent
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf TouchpadEvent o) => IsTouchpadEvent o Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent |
toTouchpadEvent :: (MonadIO m, IsTouchpadEvent o) => o -> m TouchpadEvent Source #
Cast to TouchpadEvent
, 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
ref, triggersContextMenu, unref.
Getters
getAxes, getAxis, getDeltas, getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getGesturePhase, getHistory, getModifierState, getNFingers, getPinchAngleDelta, getPinchScale, getPointerEmulated, getPosition, getSeat, getSurface, getTime.
Setters
None.
type family ResolveTouchpadEventMethod (t :: Symbol) o where ... Source #
Equations
getDeltas
data TouchpadEventGetDeltasMethodInfo Source #
Instances
(signature ~ m (Double, Double), MonadIO m, IsTouchpadEvent a) => OverloadedMethod TouchpadEventGetDeltasMethodInfo a signature Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TouchpadEventGetDeltasMethodInfo (a :: Type) Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods |
touchpadEventGetDeltas Source #
Arguments
:: (HasCallStack, MonadIO m, IsTouchpadEvent a) | |
=> a |
|
-> m (Double, Double) |
Extracts delta information from a touchpad event.
getGesturePhase
data TouchpadEventGetGesturePhaseMethodInfo Source #
Instances
(signature ~ m TouchpadGesturePhase, MonadIO m, IsTouchpadEvent a) => OverloadedMethod TouchpadEventGetGesturePhaseMethodInfo a signature Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TouchpadEventGetGesturePhaseMethodInfo (a :: Type) Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods |
touchpadEventGetGesturePhase Source #
Arguments
:: (HasCallStack, MonadIO m, IsTouchpadEvent a) | |
=> a |
|
-> m TouchpadGesturePhase | Returns: the gesture phase of |
Extracts the touchpad gesture phase from a touchpad event.
getNFingers
data TouchpadEventGetNFingersMethodInfo Source #
Instances
(signature ~ m Word32, MonadIO m, IsTouchpadEvent a) => OverloadedMethod TouchpadEventGetNFingersMethodInfo a signature Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TouchpadEventGetNFingersMethodInfo (a :: Type) Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods |
touchpadEventGetNFingers Source #
Arguments
:: (HasCallStack, MonadIO m, IsTouchpadEvent a) | |
=> a |
|
-> m Word32 | Returns: the number of fingers for |
Extracts the number of fingers from a touchpad event.
getPinchAngleDelta
data TouchpadEventGetPinchAngleDeltaMethodInfo Source #
Instances
(signature ~ m Double, MonadIO m, IsTouchpadEvent a) => OverloadedMethod TouchpadEventGetPinchAngleDeltaMethodInfo a signature Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TouchpadEventGetPinchAngleDeltaMethodInfo (a :: Type) Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods |
touchpadEventGetPinchAngleDelta Source #
Arguments
:: (HasCallStack, MonadIO m, IsTouchpadEvent a) | |
=> a |
|
-> m Double | Returns: the angle delta of |
Extracts the angle delta from a touchpad pinch event.
getPinchScale
data TouchpadEventGetPinchScaleMethodInfo Source #
Instances
(signature ~ m Double, MonadIO m, IsTouchpadEvent a) => OverloadedMethod TouchpadEventGetPinchScaleMethodInfo a signature Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TouchpadEventGetPinchScaleMethodInfo (a :: Type) Source # | |
Defined in GI.Gdk.Objects.TouchpadEvent Methods |
touchpadEventGetPinchScale Source #
Arguments
:: (HasCallStack, MonadIO m, IsTouchpadEvent a) | |
=> a |
|
-> m Double | Returns: the scale of |
Extracts the scale from a touchpad pinch event.