Struct glyph_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 crop(&self, other: &Rect) -> Vec<Rect>impl Clone for Rectfn clone(&self) -> Rectfn clone_from(&mut self, source: &Self)impl Copy for Rectimpl PartialEq for Rectimpl Eq for Rectimpl Hash for Rectfn hash<__H: Hasher>(&self, __arg_0: &mut __H)fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasherimpl Debug for Rect
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).
Search functions by type signature (e.g.
vec -> usize)