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
fn contains(&self, p: Point) -> bool
fn point(&self) -> Point
Trait Implementations
impl Clone for Rect
[src]
fn clone(&self) -> Rect
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more