package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Gesture_zoom/index.html

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