Struct texture_packer::Rect
[−]
[src]
pub struct Rect {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Fields
x | |
y | |
w | |
h |
pub struct Rect {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}x | |
y | |
w | |
h |
impl Rectfn new(x: u32, y: u32, w: u32, h: u32) -> Rectfn new_with_points(x1: u32, y1: u32, x2: u32, y2: u32) -> Rectfn top(&self) -> u32fn bottom(&self) -> u32fn left(&self) -> u32fn right(&self) -> u32fn area(&self) -> u32fn intersects(&self, other: &Rect) -> boolfn contains(&self, other: &Rect) -> boolfn contains_point(&self, x: u32, y: u32) -> boolfn is_outline(&self, x: u32, y: u32) -> boolfn crop(&self, other: &Rect) -> Vec<Rect>impl Debug for Rectimpl Clone for Rectfn clone(&self) -> Rectfn clone_from(&mut self, source: &Self)impl Copy for Rect