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_swipe/index.html

Module Wrappers.Gesture_swipe

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

Create a new GestureSwipe

val get_velocity : t -> bool * float * float

Gets the current velocity.

If the gesture is recognized, this function returns %TRUE and fills in @velocity_x and @velocity_y with the recorded velocity, as per the last events processed.

val on_swipe : ?after:bool -> t -> callback:(velocity_x:float -> velocity_y:float -> unit) -> Gobject.Signal.handler_id