Struct graphics::rectangle::Rectangle [] [src]

pub struct Rectangle {
    pub color: Color,
    pub shape: Shape,
    pub border: Option<Border>,
}

A filled rectangle

Fields

The rectangle color

The roundness of the rectangle

The border

Methods

impl Rectangle
[src]

Creates a new rectangle.

Creates a new round rectangle.

Creates a new rectangle border.

Creates a new round rectangle border.

Sets color.

Sets shape.

Sets border.

Sets optional border.

Draws the rectangle using default method.

Draws the rectangle using triangulation.

Trait Implementations

impl Colored for Rectangle
[src]

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.

impl Copy for Rectangle
[src]

impl Clone for Rectangle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more