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.gtk/Ocgtk_gtk/GMain/index.html
Module Ocgtk_gtk.GMain
Main event loop and initialization for GTK4
Initialization
Initialize GTK.
This must be called before using any GTK functions. Returns the remaining command-line arguments after GTK processes its options.
Example:
let () =
let _ = GMain.init () in
(* ... create widgets ... *)
GMain.main ()Main Loop
Start the GTK main event loop. This function blocks until quit is called.
Exit the main event loop. Typically called from a signal handler or callback.
Deprecated - Use GtkApplication Instead
Note: For new GTK4 applications, GtkApplication is preferred over the main loop functions. However, these are provided for:
- Testing during development
- Simple examples
- Migration from GTK3
Full GtkApplication support is planned for a future release.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page