gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.GestureZoom

Contents

Description

GestureZoom is a Gesture implementation able to recognize pinch/zoom gestures, whenever the distance between both tracked sequences changes, the GestureZoom::scale-changed signal is emitted to report the scale factor.

Synopsis

Exported types

Methods

getScaleDelta

gestureZoomGetScaleDelta Source #

Arguments

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

gesture: a GestureZoom

-> m Double

Returns: the scale delta

If gesture is active, this function returns the zooming difference since the gesture was recognized (hence the starting point is considered 1:1). If gesture is not active, 1 is returned.

Since: 3.14

new

gestureZoomNew Source #

Arguments

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

widget: a Widget

-> m GestureZoom

Returns: a newly created GestureZoom

Returns a newly created Gesture that recognizes zoom in/out gestures (usually known as pinch/zoom).

Since: 3.14

Signals

scaleChanged