[][src]Struct iced_native::Rectangle

pub struct Rectangle<T = f32> {
    pub x: T,
    pub y: T,
    pub width: T,
    pub height: T,
}

A rectangle.

Fields

x: T

X coordinate of the top-left corner.

y: T

Y coordinate of the top-left corner.

width: T

Width of the rectangle.

height: T

Height of the rectangle.

Methods

impl Rectangle<f32>[src]

pub fn contains(&self, point: Point) -> bool[src]

Returns true if the given Point is contained in the Rectangle.

Trait Implementations

impl<T> Debug for Rectangle<T> where
    T: Debug
[src]

impl Mul<f32> for Rectangle<u32>[src]

type Output = Rectangle<u32>

The resulting type after applying the * operator.

impl<T> StructuralEq for Rectangle<T>[src]

impl<T> Default for Rectangle<T> where
    T: Default
[src]

impl<T> Eq for Rectangle<T> where
    T: Eq
[src]

impl<T> Copy for Rectangle<T> where
    T: Copy
[src]

impl<T> PartialEq<Rectangle<T>> for Rectangle<T> where
    T: PartialEq<T>, 
[src]

impl<T> StructuralPartialEq for Rectangle<T>[src]

impl<T> Clone for Rectangle<T> where
    T: Clone
[src]

Auto Trait Implementations

impl<T> Send for Rectangle<T> where
    T: Send

impl<T> Sync for Rectangle<T> where
    T: Sync

impl<T> Unpin for Rectangle<T> where
    T: Unpin

impl<T> UnwindSafe for Rectangle<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Rectangle<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,