ocgtk.common
Gobject.Closure
ocgtk
ocgtk.cairo
ocgtk.gdk
ocgtk.gdk_pixbuf
ocgtk.gdkpixbuf
ocgtk.gio
ocgtk.graphene
ocgtk.gsk
ocgtk.gtk
ocgtk.pango
ocgtk.pango_cairo
ocgtk.pangocairo
type t = g_closure
type args
Opaque type for closure arguments
type argv = {
result : g_value;
nargs : int;
args : args;
}
Closure invocation context
val create : (argv -> unit) -> t
Create a closure from an OCaml callback
val nth : argv -> pos:int -> g_value
Get the nth argument
val result : argv -> g_value
Get the result GValue
val get_result_type : argv -> g_type
Get the expected result type
val get_type : argv -> pos:int -> g_type
Get the type of an argument
val set_result : argv -> g_value -> unit
Set the result value