package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wrappers.Gesture_zoom

type t = [ `gesture_zoom | `gesture | `event_controller | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new GestureZoom

val get_scale_delta : t -> float

Gets 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.

val on_scale_changed : ?after:bool -> t -> callback:(scale:float -> unit) -> Gobject.Signal.handler_id