Struct gfx4games::graphics::rect::Rect [] [src]

pub struct Rect {
    pub dx: f32,
    pub dy: f32,
    pub rw: f32,
    pub rh: f32,
    // some fields omitted
}

Rectangle structure

Fields

X position

Y position

Width

Height

Methods

impl Rect
[src]

[src]

Create new rectangle

Example:

let mut rect = Rect::new(10.0,0.0,12.0,6.0);

[src]

Move rectangle(Not works correctly) :(

[src]

Draw rectangle

[src]

Checking for collision using ncollide2d

[src]

Set's rectangle color

Trait Implementations

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect