Struct nannou::ui::backend::glium::glium::Rect[][src]

pub struct Rect {
    pub left: u32,
    pub bottom: u32,
    pub width: u32,
    pub height: u32,
}

Area of a surface in pixels.

In the OpenGL ecosystem, the (0,0) coordinate is at the bottom-left hand corner of the images.

Fields

Number of pixels between the left border of the surface and the left border of the rectangle.

Number of pixels between the bottom border of the surface and the bottom border of the rectangle.

Width of the area in pixels.

Height of the area in pixels.

Trait Implementations

impl Clone for Rect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Rect
[src]

Formats the value using the given formatter. Read more

impl Default for Rect
[src]

Returns the "default value" for a type. Read more

impl Copy for Rect
[src]

impl Eq for Rect
[src]

impl PartialEq<Rect> for Rect
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect