Skip to content

TermDraw

[Source]

Use this primitive directly to draw shapes.

primitive val TermDraw is
  TerminalDrawing ref

Implements


Constructors

create

[Source]

new val create()
: TermDraw val^

Returns


Public Functions

hline

[Source]

fun box hline(
  width: U32 val,
  fill: String val)
: String val

Parameters

Returns


vline

[Source]

fun box vline(
  height: U32 val,
  fill: String val)
: String val

Parameters

Returns


fill_rectangle

[Source]

fun box fill_rectangle(
  width: U32 val,
  height: U32 val,
  fill: String val)
: String val

Parameters

Returns


frame_hline

[Source]

fun box frame_hline(
  width: U32 val,
  style: GridChars val = reference)
: String val

Parameters

Returns


frame_vline

[Source]

fun box frame_vline(
  height: U32 val,
  style: GridChars val = reference)
: String val

Parameters

Returns


frame

[Source]

fun box frame(
  width: U32 val,
  height: U32 val,
  style: GridChars val = reference,
  clear: Bool val = false)
: String val

Parameters

Returns


eq

[Source]

fun box eq(
  that: TermDraw val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: TermDraw val)
: Bool val

Parameters

Returns