package ocgtk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
OCaml bindings for GTK 4
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.common/Gobject/index.html
Module GobjectSource
GObject type system and object model for GTK4
Core Types
Type for GObject instances. The type parameter provides type safety.
GType identifier — opaque; use Type.equal to compare, Type.to_int for formatting
GValue container for generic values
GClosure for signal callbacks
Object Operations
same a b is true iff a and b wrap the same underlying GObject pointer. Two extractions of the same GObject (e.g. successive Gobject.Value.get_object calls in a signal callback) allocate distinct OCaml custom blocks, so Stdlib.(==) always returns false. Use same when the intent is identity comparison.
Stdlib.(=), Stdlib.compare, and Hashtbl.hash also operate on pointer identity for obj values (the custom block installs a pointer-compare / pointer-hash); same is the explicit form.
Type System
GValue Operations
Properties
Closures
Signals
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page