bogue

GUI library for ocaml, with animations, based on SDL2
Library bogue
Module Bogue . Text_display
Dependency graph
type t
type words

Preparing the text

val example : words
val raw : string -> words
val bold : words -> words
val italic : words -> words
val normal : words -> words
val underline : words -> words
val strikethrough : words -> words
val page : words list -> words list
val para : string -> words
val paragraphs_of_string : string -> words list

Creating the widgets

Use Widget.text_display

Modifying the widgets

val replace : by:t -> t -> unit

replace ~by:t2 t1 replaces the text content of t1 by the one of t2.

val update_verbatim : t -> string -> unit