bogue
GUI library for ocaml, with animations, based on SDL2
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Dependency graph
Debugging
val printd : int -> ( 'a, unit, string, unit ) format4 -> 'a
For instance printd debug_warning "The value x=%u is too big" x
will print a message in the console only if the debug
variable contains the debug_warning
flag.
val debug : bool ref
val debug_code : int ref
Logical ored of !debug
with debug flags (below) controls the amount of debuging.
Binary masks (=flags) for debugging messages.
Maths
Tsdl Result
val go : 'a Tsdl.Sdl.result -> 'a
Transform a result
into a standard value, or fail with an error. Used only for SDL functions.
Options
Monadic style operations on optional variables.
map_option o f
is the same as Option.map f o
.
default o v
is the same as Option.value o ~default:v
. Warning: v
is evaluated even if it is not used.
Like Option.get
. Warning: remove_option None
will raise the None_option
exception.