Struct 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

left

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

bottom

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

width

Width of the area in pixels.

height

Height of the area in pixels.

Trait Implementations

Derived Implementations

impl Eq for Rect

impl PartialEq for Rect

fn eq(&self, __arg_0: &Rect) -> bool

fn ne(&self, __arg_0: &Rect) -> bool

impl Default for Rect

fn default() -> Rect

impl Copy for Rect

impl Clone for Rect

fn clone(&self) -> Rect

fn clone_from(&mut self, source: &Self)

impl Debug for Rect

fn fmt(&self, __arg_0: &mut Formatter) -> Result