gi-gtk-3.0.32: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.GestureRotate

Description

GestureRotate is a Gesture implementation able to recognize 2-finger rotations, whenever the angle between both handled sequences changes, the angleChanged signal is emitted.

Synopsis

Exported types

class (GObject o, IsDescendantOf GestureRotate o) => IsGestureRotate o Source #

Type class for types which can be safely cast to GestureRotate, for instance with toGestureRotate.

Instances

Instances details
(GObject o, IsDescendantOf GestureRotate o) => IsGestureRotate o Source # 
Instance details

Defined in GI.Gtk.Objects.GestureRotate

toGestureRotate :: (MonadIO m, IsGestureRotate o) => o -> m GestureRotate Source #

Cast to GestureRotate, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getAngleDelta

gestureRotateGetAngleDelta Source #

Arguments

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

gesture: a GestureRotate

-> m Double

Returns: the angle delta in radians

If gesture is active, this function returns the angle difference in radians since the gesture was first recognized. If gesture is not active, 0 is returned.

Since: 3.14

new

gestureRotateNew Source #

Arguments

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

widget: a Widget

-> m GestureRotate

Returns: a newly created GestureRotate

Returns a newly created Gesture that recognizes 2-touch rotation gestures.

Since: 3.14

Signals

angleChanged

type C_GestureRotateAngleChangedCallback = Ptr () -> CDouble -> CDouble -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type GestureRotateAngleChangedCallback Source #

Arguments

 = Double

angle: Current angle in radians

-> Double

angleDelta: Difference with the starting angle, in radians

-> IO () 

This signal is emitted when the angle between both tracked points changes.

Since: 3.14

afterGestureRotateAngleChanged :: (IsGestureRotate a, MonadIO m) => a -> GestureRotateAngleChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the angleChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after gestureRotate #angleChanged callback

onGestureRotateAngleChanged :: (IsGestureRotate a, MonadIO m) => a -> GestureRotateAngleChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the angleChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on gestureRotate #angleChanged callback