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

Module Gobject.ClosureSource

Sourcetype args

Opaque type for closure arguments

Sourcetype argv = {
  1. result : g_value;
  2. nargs : int;
  3. args : args;
}

Closure invocation context

Sourceval create : (argv -> unit) -> t

Create a closure from an OCaml callback

Sourceval nth : argv -> pos:int -> g_value

Get the nth argument

Sourceval result : argv -> g_value

Get the result GValue

Sourceval get_result_type : argv -> g_type

Get the expected result type

Sourceval get_type : argv -> pos:int -> g_type

Get the type of an argument

Sourceval set_result : argv -> g_value -> unit

Set the result value