package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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