Struct orbtk::rect::Rect
[−]
[src]
pub struct Rect { pub x: i32, pub y: i32, pub width: u32, pub height: u32, }
Fields
x: i32
y: i32
width: u32
height: u32
Methods
impl Rect
[src]
fn new(x: i32, y: i32, width: u32, height: u32) -> Rect
[src]
fn point(&self) -> Point
[src]
fn contains(&self, p: Point) -> bool
[src]
fn contains_rect(&self, r: &Rect) -> bool
[src]
fn intersects(&self, r: &Rect) -> bool
[src]
Trait Implementations
impl Clone for Rect
[src]
fn clone(&self) -> Rect
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more