drawing::line
Structs
Line
A 2D vector line segment.
x1/y1 and x2/y2 describe the segment endpoints in the primitive's
local coordinate space. The segment is rendered with stroke, whose cap
style controls how the two exposed endpoints terminate.
Properties
x1
Type: Property<Size>
The x-coordinate of the start point.
y1
Type: Property<Size>
The y-coordinate of the start point.
x2
Type: Property<Size>
The x-coordinate of the end point.
y2
Type: Property<Size>
The y-coordinate of the end point.
stroke
Type: Property<Vec<Stroke>>
The stroke used to render the segment.