sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Draw.MakeSourceConstruct the API from a Primitives implementation
module B : Primitivestype ctx = B.ctxdrawing context
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
invert fg and bg at point