Struct svgbob::Loc
[−]
[src]
pub struct Loc { pub x: i32, pub y: i32, }
Fields
x: i32
y: i32
Methods
impl Loc
[src]
fn new(x: i32, y: i32) -> Loc
fn top(&self) -> Loc
fn left(&self) -> Loc
fn bottom(&self) -> Loc
fn right(&self) -> Loc
fn top_left(&self) -> Loc
fn top_right(&self) -> Loc
fn bottom_left(&self) -> Loc
fn bottom_right(&self) -> Loc
fn get_range(&self, rx: i32, ry: i32) -> (Loc, Loc)
make a lower and upper bound loc with ry units top + ry units bottom rx units left + rx units right
Trait Implementations
impl Debug for Loc
[src]
impl Clone for Loc
[src]
fn clone(&self) -> Loc
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