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
val create :
?background:background ->
?border:border ->
?shadow:shadow ->
unit ->
t
val empty : t
val of_bg : background -> t
val with_bg : background -> t -> t
Constructing backgrounds
val theme_bg : background
val color_bg : Draw.color -> background
val opaque_bg : Draw.rgb -> background
val image_bg : Image.t -> background
val gradient : ?angle:float -> Draw.color list -> background
val hgradient : Draw.color list -> background
val vgradient : Draw.color list -> background
Constructing borders
val mk_line :
?color:Draw.color ->
?width:int ->
?style:line_style ->
unit ->
line
Note: currently, a border with positive radius
is not compatible with a transparent background.
Constructing shadows
val mk_shadow :
?offset:(int * int) ->
?size:int ->
?width:int ->
?radius:int ->
unit ->
shadow