package bogue

  1. Overview
  2. Docs

Multi-line text display widget.

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 widget

Use Widget.text_display

Modifying the widget

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