1.90 <GtkGestureZoom>

Class: <GtkGestureZoom>

It derives from <GtkGesture>.

Recognizes 2-finger pinch/zoom gestures.

Whenever the distance between both tracked sequences changes, the gesture-zoom:scale-changed signal is emitted to report the scale factor.

Procedures

Method: gesture-zoom:get-scale-delta self ⇒ %return
Method: get-scale-delta self ⇒ %return

Gets the scale delta.

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

self

Passed: a <GtkGestureZoom>.

a <GtkGestureZoom>

%return

Returned: a real number.

the scale delta

Procedure: gesture-zoom:new ⇒ %return

Returns a newly created <GtkGesture> that recognizes pinch/zoom gestures.

%return

Returned: a <GtkGesture>.

a newly created <GtkGestureZoom>

Signals

Signal: gesture-zoom:scale-changed

Connect a handler with (connect object gesture-zoom:scale-changed handler). It is called as (handler self scale).

Emitted whenever the distance between both tracked sequences changes.

self

Passed: a <GtkGestureZoom>.

scale

Passed: a real number.

Scale delta, taking the initial state as 1:1