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

Module Glib.IdleSource

Idle callbacks - functions called when the main loop is idle

Sourcetype id

Idle source ID

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

add callback adds a function to be called whenever there are no higher priority events pending in the main loop. The callback should return true to continue being called, or false to be removed.

  • parameter prio

    Optional priority (default: G_PRIORITY_DEFAULT_IDLE)

Sourceval remove : id -> unit

remove id removes the idle callback with the given ID