Struct dummy_rustwlc::types::Geometry
[−]
[src]
#[repr(C)]pub struct Geometry { pub origin: Point, pub size: Size, }
Represents the location and size of a view
Fields
origin: Point
The location of the object
size: Size
The size of the object
Methods
impl Geometry[src]
fn zero() -> Geometry
Creates a geometry with zero size at the origin.
fn new(origin: Point, size: Size) -> Geometry
Creates a new geometry with the given size and location.
fn contains_point(self, point: Point) -> bool
Determines if this geometry contains a point.
If the point's coordinates are less than or equal to this geometry's dimensions plus its size.
fn contains_geometry(self, other: Geometry) -> bool
Determines if this geometry contains another.
If the other geometry's borders could be fully contained (less than or equal to) within self.
Trait Implementations
impl Debug for Geometry[src]
impl Copy for Geometry[src]
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
impl PartialEq for Geometry[src]
fn eq(&self, __arg_0: &Geometry) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Geometry) -> bool
This method tests for !=.
impl Eq for Geometry[src]
impl Hash for Geometry[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.