bogue

GUI library for ocaml, with animations, based on SDL2
Library bogue
Module Bogue . Tvar
Dependency graph
type ('a, 'b) t

a transform variable of type ('a,'b) is a variable of type 'b attached to a variable of type 'a Var.t by a bi-directional transformation.

val create : 'a Var.t -> t_from:( 'a -> 'b ) -> t_to:( 'b -> 'a ) -> ( 'a, 'b ) t
val get : ( 'a, 'b ) t -> 'b
val set : ( 'a, 'b ) t -> 'b -> unit