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.common/Glib/Timeout/index.html

Module Glib.TimeoutSource

Timeout callbacks - functions called after a specified time

Sourcetype id

Timeout source ID

Sourceval add : ?prio:int -> ms:int -> callback:(unit -> bool) -> unit -> id

add ~ms ~callback adds a timeout function that will be called every ms milliseconds. The callback should return true to continue being called, or false to be removed.

  • parameter prio

    Optional priority (default: G_PRIORITY_DEFAULT)

  • parameter ms

    Interval in milliseconds

  • parameter callback

    Function to call, returns true to continue

Sourceval remove : id -> unit

remove id removes the timeout with the given ID