Struct andrew::line::Line[][src]

pub struct Line {
    pub pt1: (usize, usize),
    pub pt2: (usize, usize),
    pub color: [u8; 4],
    pub antialiased: bool,
}
Expand description

A drawable object that represents a line

Fields

pt1: (usize, usize)

The first point of the line

pt2: (usize, usize)

The second point of the line

color: [u8; 4]

The color of the line

antialiased: bool

Decides whether the line will be antialiased

Implementations

Creates a new Line object

Trait Implementations

A function that draws the object to a canvas

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

Performs the conversion.

Performs the conversion.

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.