Skip to main content

Class: LineDraw

Fluent line with the full model. Finish with .draw(id, pane).

Constructors​

Constructor​

new LineDraw(t1, p1, t2, p2): LineDraw

Parameters​

t1​

i64

p1​

f64

t2​

i64

p2​

f64

Returns​

LineDraw

Methods​

color()​

color(c): LineDraw

Parameters​

c​

i32

Returns​

LineDraw


draw()​

draw(id?, pane?): void

Parameters​

id?​

string = ""

pane?​

string = ""

Returns​

void


extend()​

extend(e): LineDraw

Parameters​

e​

Extend

Returns​

LineDraw


label()​

label(text, anchor, color, size?): LineDraw

Text along the line; anchor 0 = start, 1 = end.

Parameters​

text​

string

anchor​

f64

color​

i32

size?​

Size = Size.Normal

Returns​

LineDraw


style()​

style(s): LineDraw

Parameters​

s​

Stroke

Returns​

LineDraw


width()​

width(w): LineDraw

Parameters​

w​

i32

Returns​

LineDraw