package hardcaml_waveterm

  1. Overview
  2. Docs
A terminal based digital waveform viewer for Hardcaml

Install

Dune Dependency

Authors

Maintainers

Sources

hardcaml_waveterm-v0.16.0.tar.gz
sha256=20844546139ee69e8d328b75a54369b2c1db91d88e43f7ca9ccfc0cd855be828

doc/hardcaml_waveterm.kernel/Hardcaml_waveterm_kernel/Expert/Draw/Make/index.html

Module Draw.MakeSource

Construct the API from a Primitives implementation

Parameters

module B : Primitives

Signature

type ctx = B.ctx

drawing context

type style

underlying style type

val rows : ctx -> Base.int
val cols : ctx -> Base.int
val get_bounds : ctx -> rect

get context size

val get_style : Style.t -> style

convert our style info to underlying style

Sourceval clear : ctx -> Base.unit

clear display

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

fill bounds with char given style

val draw_int : ctx:ctx -> style:style -> bounds:rect -> r:Base.int -> c:Base.int -> Base.int -> Base.unit

draw int (representing unicode value)

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

draw piece

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

draw char

Sourceval draw_string : ctx:ctx -> style:style -> bounds: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:rect -> Base.string -> Base.unit

draw box outline with label

val get : ctx:ctx -> bounds:rect -> r:Base.int -> c:Base.int -> Base.int * Style.t

get value and style at point

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

invert fg and bg at point

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

set bold on point

OCaml

Innovation. Community. Security.