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

The location of the object

The size of the object

Methods

impl Geometry
[src]

[src]

Creates a geometry with zero size at the origin.

[src]

Creates a new geometry with the given size and location.

[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.

[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]

[src]

Formats the value using the given formatter.

impl Copy for Geometry
[src]

impl Clone for Geometry
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Geometry
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Geometry
[src]

impl Hash for Geometry
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Geometry
[src]

[src]

Formats the value using the given formatter. Read more