package lablgtk3
OCaml interface to GTK+3
Install
Dune Dependency
Authors
Maintainers
Sources
lablgtk3-3.0.beta5.tbz
sha256=5d221cf92a9f1f6d6e5a9c83d49eb3d6a62528a0002fd2bac44bbd2dad89ee30
md5=e8745cbff677b330e06a304c6d1b9bce
doc/lablgtk3/Gpointer/index.html
Module Gpointer
Gpointer
: various kinds of pointers to C data
val optaddr : 'a option -> 'a optaddr
val raw_null : optstring
val optstring : string option -> optstring
val boxed_null : boxed
val peek_string : ?pos:int -> ?len:int -> boxed -> string
val peek_int : boxed -> int
val poke_int : boxed -> int -> unit
val peek_nativeint : boxed -> nativeint
val poke_nativeint : boxed -> nativeint -> unit
val optboxed : 'a option -> 'a optboxed
val may_box : f:('a -> 'b) -> 'a option -> 'b optboxed
val decode_variant : 'a variant_table -> int -> 'a
val encode_variant : 'a variant_table -> 'a -> int
val decode_flags : 'a variant_table -> int -> 'a list
val encode_flags : 'a variant_table -> 'a list -> int
val stable_copy : 'a -> 'a stable
Region handling
val length : region -> int
the length of the region
val get_addr : region -> nativeint
the length of the region
the start address of the region
val get_byte : region -> pos:int -> int
val set_byte : region -> pos:int -> int -> unit
val region_of_bytes : bytes -> region
create a region sharing a string
val bytes_of_region : region -> bytes
create a region sharing a string
copy the contents of the region to a string
type 'a bigarray = (int, Bigarray.int8_unsigned_elt, 'a) Bigarray.Array1.t
Unsafe access
val unsafe_create_region :
path:int array ->
get_length:('a -> int) ->
'a ->
region
unsafe_create_region ~path ~get_length
returns a function to build regions from a specific kind of data abstraction
val unsafe_get_byte : region -> pos:int -> int
val unsafe_set_byte : region -> pos:int -> int -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>