[][src]Struct azul_css::LayoutRect

pub struct LayoutRect {
    pub origin: LayoutPoint,
    pub size: LayoutSize,
}

Only used for calculations: Rectangle (x, y, width, height) in layout space.

Fields

origin: LayoutPointsize: LayoutSize

Implementations

impl LayoutRect[src]

pub fn new(origin: LayoutPoint, size: LayoutSize) -> Self[src]

pub fn zero() -> Self[src]

pub fn max_x(&self) -> f32[src]

pub fn min_x(&self) -> f32[src]

pub fn max_y(&self) -> f32[src]

pub fn min_y(&self) -> f32[src]

pub fn contains(&self, other: &LayoutPoint) -> bool[src]

pub fn union<I: Iterator<Item = Self>>(rects: I) -> Option<Self>[src]

Faster union for a Vec

pub fn get_scroll_rect<I: Iterator<Item = Self>>(
    &self,
    children: I
) -> Option<Self>
[src]

pub fn contains_rect(&self, b: &LayoutRect) -> bool[src]

Trait Implementations

impl Clone for LayoutRect[src]

impl Copy for LayoutRect[src]

impl Debug for LayoutRect[src]

impl Display for LayoutRect[src]

impl PartialEq<LayoutRect> for LayoutRect[src]

impl PartialOrd<LayoutRect> for LayoutRect[src]

impl StructuralPartialEq for LayoutRect[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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> ToString for T where
    T: Display + ?Sized
[src]

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.