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

The location of the object

The size of the object

Methods

impl Geometry
[src]

Creates a geometry with zero size at the origin.

Creates a new geometry with the given size and location.

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.

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]

Formats the value using the given formatter.

impl Copy for Geometry
[src]

impl Clone for Geometry
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Geometry
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Geometry
[src]

impl Hash for Geometry
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Display for Geometry
[src]

Formats the value using the given formatter. Read more