Draw.In_memoryIn memory based API with no external requirements
type point = Base.int * Style.tinclude S with type ctx = point Base.array Base.array and type style = Style.ttype ctx = point Base.array Base.arraydrawing context
type style = Style.tunderlying style type
val rows : ctx -> Base.intval cols : ctx -> Base.intval clear : ctx -> Base.unitclear display
fill bounds with char given style
val draw_int :
ctx:ctx ->
style:style ->
bounds:rect ->
r:Base.int ->
c:Base.int ->
Base.int ->
Base.unitdraw int (representing unicode value)
val draw_piece :
ctx:ctx ->
style:style ->
bounds:rect ->
r:Base.int ->
c:Base.int ->
piece ->
Base.unitdraw piece
val draw_char :
ctx:ctx ->
style:style ->
bounds:rect ->
r:Base.int ->
c:Base.int ->
Base.char ->
Base.unitdraw char
val draw_string :
ctx:ctx ->
style:style ->
bounds:rect ->
r:Base.int ->
c:Base.int ->
Base.string ->
Base.unitdraw string (nothing fancy - horizontal, no breaks)
draw box outline with label
get value and style at point
val init : rows:Base.int -> cols:Base.int -> ctx