123456789101112131415161718192021222324252627(**************************************************************************)(* ocgtk - OCaml bindings for GTK4 *)(* *)(* This program is free software; you can redistribute it *)(* and/or modify it under the terms of the GNU Library General *)(* Public License version 2, as published by the *)(* Free Software Foundation with the exception described in file *)(* COPYING which comes with the library. *)(* *)(* Based on lablgtk3 (https://github.com/garrigue/lablgtk) *)(* *)(**************************************************************************)typet=privateintexternalunsafe_of_int:int->t="%identity"letof_intn=ifn<0theninvalid_arg(Printf.sprintf"Gsize.of_int: value %d is negative"n)elseunsafe_of_intnletto_int(t:t)=(t:>int)letzero=unsafe_of_int0letmax_int=unsafe_of_intStdlib.max_intletmin_value=0letmax_value=Stdlib.max_int