gi-gdk-4.0.2: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Objects.TouchpadEvent

Description

No description available in the introspection data.

Synopsis

Exported types

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

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf TouchpadEvent o) => IsTouchpadEvent o Source # 
Instance details

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

Overloaded methods

getDeltas

touchpadEventGetDeltas Source #

Arguments

:: (HasCallStack, MonadIO m, IsTouchpadEvent a) 
=> a

event: a touchpad event

-> m (Double, Double) 

Extracts delta information from a touchpad event.

getGesturePhase

touchpadEventGetGesturePhase Source #

Arguments

:: (HasCallStack, MonadIO m, IsTouchpadEvent a) 
=> a

event: a touchpad Event

-> m TouchpadGesturePhase

Returns: the gesture phase of event

Extracts the touchpad gesture phase from a touchpad event.

getNFingers

touchpadEventGetNFingers Source #

Arguments

:: (HasCallStack, MonadIO m, IsTouchpadEvent a) 
=> a

event: a touchpad event

-> m Word32

Returns: the number of fingers for event

Extracts the number of fingers from a touchpad event.

getPinchAngleDelta

touchpadEventGetPinchAngleDelta Source #

Arguments

:: (HasCallStack, MonadIO m, IsTouchpadEvent a) 
=> a

event: a touchpad pinch event

-> m Double

Returns: the angle delta of event

Extracts the angle delta from a touchpad pinch event.

getPinchScale

touchpadEventGetPinchScale Source #

Arguments

:: (HasCallStack, MonadIO m, IsTouchpadEvent a) 
=> a

event: a touchpad pinch event

-> m Double

Returns: the scale of event

Extracts the scale from a touchpad pinch event.