Struct graphics::line::Line

source ·
pub struct Line {
    pub color: Color,
    pub radius: Radius,
    pub shape: Shape,
}
Expand description

A colored line with a default border radius

Fields

color: Color

The line color

radius: Radius

The line radius

shape: Shape

The line shape

Implementations

Creates a new line

Creates a new line

Sets color.

Sets radius.

Sets width.

Sets shape.

Draws line using default method between points.

Draws line using default method.

Draws line using triangulation.

Draws an arrow

Head size is the sides of the triangle between the arrow hooks and the line

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Multiplies with red, green, blue and alpha values.
Rotates hue by radians.
Mixes the current color with white. Read more
Mixes the current color with black. Read more
Rotates hue by degrees.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.