Hardcaml_waveterm_interactive.Draw_nottyNotty based gfx API. We need to use an intermediate in memory representation for notty.
include module type of Hardcaml_waveterm_kernel.Drawtype piece = Hardcaml_waveterm_kernel.Draw.piece = val sexp_of_piece : piece -> Sexplib0.Sexp.ttype ctx = (Base.int * Hardcaml_waveterm_kernel.Style.t) Base.array Base.arraydrawing context
val get_bounds : ctx -> Hardcaml_waveterm_kernel.Rect.tget context size
val fill :
ctx:ctx ->
style:Hardcaml_waveterm_kernel.Style.t ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
Base.char ->
Base.unitfill bounds with char given style
val draw_int :
ctx:ctx ->
style:Hardcaml_waveterm_kernel.Style.t ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
r:Base.int ->
c:Base.int ->
Base.int ->
Base.unitdraw int (representing unicode value)
val draw_piece :
ctx:ctx ->
style:Hardcaml_waveterm_kernel.Style.t ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
r:Base.int ->
c:Base.int ->
piece ->
Base.unitdraw piece
val draw_char :
ctx:ctx ->
style:Hardcaml_waveterm_kernel.Style.t ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
r:Base.int ->
c:Base.int ->
Base.char ->
Base.unitdraw char
val draw_string :
ctx:ctx ->
style:Hardcaml_waveterm_kernel.Style.t ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
r:Base.int ->
c:Base.int ->
Base.string ->
Base.unitdraw string (nothing fancy - horizontal, no breaks)
val draw_box :
ctx:ctx ->
style:Hardcaml_waveterm_kernel.Style.t ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
Base.string ->
Base.unitdraw box outline with label
val get :
ctx:ctx ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
r:Base.int ->
c:Base.int ->
Base.int * Hardcaml_waveterm_kernel.Style.tget value and style at point
val inv :
?style:Hardcaml_waveterm_kernel.Style.t ->
ctx:ctx ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
r:Base.int ->
c:Base.int ->
Base.unit ->
Base.unitinvert fg and bg at point. Or force to given style if provided.
val bold :
ctx:ctx ->
bounds:Hardcaml_waveterm_kernel.Rect.t ->
r:Base.int ->
c:Base.int ->
Base.unitset bold on point
module Border : sig ... end