Class: Gtk::GestureZoom

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#new(widget) ⇒ Gtk::Gesture

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

Parameters:

Returns:

#scale_deltaFloat

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.

Returns:

  • (Float)

    the scale delta