[][src]Struct makepad_render::Rect

pub struct Rect {
    pub x: f32,
    pub y: f32,
    pub w: f32,
    pub h: f32,
}

Fields

x: f32y: f32w: f32h: f32

Methods

impl Rect[src]

pub fn contains_with_margin(
    &self,
    x: f32,
    y: f32,
    margin: &Option<Margin>
) -> bool
[src]

impl Rect[src]

pub fn contains(&self, x: f32, y: f32) -> bool[src]

pub fn intersects(&self, r: Rect) -> bool[src]

Trait Implementations

impl Clone for Rect[src]

impl Copy for Rect[src]

impl Default for Rect[src]

impl PartialEq<Rect> for Rect[src]

impl Debug for Rect[src]

impl StructuralPartialEq for Rect[src]

impl Serialize for Rect[src]

impl<'de> Deserialize<'de> for Rect[src]

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect

impl Unpin for Rect

impl UnwindSafe for Rect

impl RefUnwindSafe for Rect

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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 = !

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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]