Struct gabelstaplerwm::wm::layout::Geometry
[−]
[src]
pub struct Geometry { pub x: u32, pub y: u32, pub width: u32, pub height: u32, }
A window's geometry.
Fields
x: u32
x coordinate of window
y: u32
y coordinate of window
width: u32
width of window
height: u32
height of window
Methods
impl Geometry
[src]
fn match_coords(&self, x: u32, y: u32) -> bool
Check whether a geometry contains a point.
fn match_overlap(&self, other: &Geometry) -> bool
Check whether two Geometry
s overlap.
Trait Implementations
impl Clone for Geometry
[src]
fn clone(&self) -> Geometry
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