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_interactive__.Import.Draw.In_memory with type In_memory.style = Hardcaml_waveterm_interactive__.Import.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_interactive__.Import.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