Struct 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
[src]
Creates a geometry with zero size at the origin.
fn new(origin: Point, size: Size) -> Geometry
[src]
Creates a new geometry with the given size and location.
fn contains_point(self, point: Point) -> bool
[src]
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
[src]
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
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Geometry
[src]
fn eq(&self, __arg_0: &Geometry) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Geometry) -> bool
[src]
This method tests for !=
.
impl Eq for Geometry
[src]
impl Hash for Geometry
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more