Module Hardcaml_waveterm_interactive.Draw_notty

Notty based gfx API. We need to use an intermediate in memory representation for notty.

include module type of Hardcaml_waveterm.Draw.In_memory with type In_memory.style = Hardcaml_waveterm.Draw.In_memory.style
type point = Hardcaml_waveterm.Import.int * Hardcaml_waveterm__Draw.Style.t
type ctx = point Hardcaml_waveterm.Import.array Hardcaml_waveterm.Import.array
type style = Hardcaml_waveterm.Draw.In_memory.style
val rows : ctx -> Hardcaml_waveterm.Import.int
val cols : ctx -> Hardcaml_waveterm.Import.int
val get_bounds : ctx -> Hardcaml_waveterm__Draw.rect
val get_style : Hardcaml_waveterm__Draw.Style.t -> style
val clear : ctx -> Hardcaml_waveterm.Import.unit
val fill : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm__Draw.rect -> Hardcaml_waveterm.Import.char -> Hardcaml_waveterm.Import.unit
val draw_int : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm__Draw.rect -> r:Hardcaml_waveterm.Import.int -> c:Hardcaml_waveterm.Import.int -> Hardcaml_waveterm.Import.int -> Hardcaml_waveterm.Import.unit
val draw_piece : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm__Draw.rect -> r:Hardcaml_waveterm.Import.int -> c:Hardcaml_waveterm.Import.int -> Hardcaml_waveterm__Draw.piece -> Hardcaml_waveterm.Import.unit
val draw_char : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm__Draw.rect -> r:Hardcaml_waveterm.Import.int -> c:Hardcaml_waveterm.Import.int -> Hardcaml_waveterm.Import.char -> Hardcaml_waveterm.Import.unit
val draw_string : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm__Draw.rect -> r:Hardcaml_waveterm.Import.int -> c:Hardcaml_waveterm.Import.int -> Hardcaml_waveterm.Import.string -> Hardcaml_waveterm.Import.unit
val draw_box : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm__Draw.rect -> Hardcaml_waveterm.Import.string -> Hardcaml_waveterm.Import.unit
val get : ctx:ctx -> bounds:Hardcaml_waveterm__Draw.rect -> r:Hardcaml_waveterm.Import.int -> c:Hardcaml_waveterm.Import.int -> Hardcaml_waveterm.Import.int * Hardcaml_waveterm__Draw.Style.t
val inv : ctx:ctx -> bounds:Hardcaml_waveterm__Draw.rect -> r:Hardcaml_waveterm.Import.int -> c:Hardcaml_waveterm.Import.int -> Hardcaml_waveterm.Import.unit
val bold : ctx:ctx -> bounds:Hardcaml_waveterm__Draw.rect -> r:Hardcaml_waveterm.Import.int -> c:Hardcaml_waveterm.Import.int -> Hardcaml_waveterm.Import.unit
val init : rows:Hardcaml_waveterm.Import.int -> cols:Hardcaml_waveterm.Import.int -> ctx
val to_image : ctx -> Notty.I.t