bogue

GUI library for ocaml, with animations, based on SDL2
Library bogue
Module Bogue . Table
Dependency graph
type column = {
title : string;
length : int;
rows : int -> Layout.t;
compare : ( int -> int -> int ) option;
width : int option;
}
type t
val create : ?w:int -> h:int -> ?row_height:int -> ?name:string -> column list -> Layout.t * ( Selection.t, Selection.t ) Tvar.t
  • returns

    a layout and a Tvar. The Tvar can be used to see which rows were selected by the user, and also to modify the selection if needed.

val of_array : ?w:int -> h:int -> ?widths:int option list -> ?row_height:int -> ?name:string -> string list -> string array array -> Layout.t * ( Selection.t, Selection.t ) Tvar.t
val of_list : ?w:int -> h:int -> ?widths:int option list -> ?row_height:int -> ?name:string -> string list list -> Layout.t * ( Selection.t, Selection.t ) Tvar.t