package hardcaml_waveterm

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Hardcaml_waveterm_interactive.Draw_nottySource

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

include module type of Hardcaml_waveterm_kernel.Expert.Draw.In_memory with type style = Hardcaml_waveterm_kernel.Expert.Draw.In_memory.style
Sourcetype point = Base.int * Hardcaml_waveterm_kernel__.Draw.Style.t

drawing context

Sourceval rows : ctx -> Base.int
Sourceval cols : ctx -> Base.int
Sourceval get_bounds : ctx -> Hardcaml_waveterm_kernel__.Draw.rect

get context size

Sourceval get_style : Hardcaml_waveterm_kernel__.Draw.Style.t -> style

convert our style info to underlying style

Sourceval clear : ctx -> Base.unit

clear display

Sourceval fill : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> Base.char -> Base.unit

fill bounds with char given style

Sourceval draw_int : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> r:Base.int -> c:Base.int -> Base.int -> Base.unit

draw int (representing unicode value)

Sourceval draw_piece : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> r:Base.int -> c:Base.int -> Hardcaml_waveterm_kernel__.Draw.piece -> Base.unit

draw piece

Sourceval draw_char : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> r:Base.int -> c:Base.int -> Base.char -> Base.unit

draw char

Sourceval draw_string : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> r:Base.int -> c:Base.int -> Base.string -> Base.unit

draw string (nothing fancy - horizontal, no breaks)

Sourceval draw_box : ctx:ctx -> style:style -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> Base.string -> Base.unit

draw box outline with label

Sourceval get : ctx:ctx -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> r:Base.int -> c:Base.int -> Base.int * Hardcaml_waveterm_kernel__.Draw.Style.t

get value and style at point

Sourceval inv : ctx:ctx -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> r:Base.int -> c:Base.int -> Base.unit

invert fg and bg at point

Sourceval bold : ctx:ctx -> bounds:Hardcaml_waveterm_kernel__.Draw.rect -> r:Base.int -> c:Base.int -> Base.unit

set bold on point

Sourceval init : rows:Base.int -> cols:Base.int -> ctx
Sourceval to_image : ctx -> Notty.I.t
OCaml

Innovation. Community. Security.