[−][src]Struct azul_css::LayoutRect
Only used for calculations: Rectangle (x, y, width, height) in layout space.
Fields
origin: LayoutPoint
size: 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]
&self,
children: I
) -> Option<Self>
pub fn contains_rect(&self, b: &LayoutRect) -> bool
[src]
Trait Implementations
impl Clone for LayoutRect
[src]
fn clone(&self) -> LayoutRect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LayoutRect
[src]
impl Debug for LayoutRect
[src]
impl Display for LayoutRect
[src]
impl PartialEq<LayoutRect> for LayoutRect
[src]
fn eq(&self, other: &LayoutRect) -> bool
[src]
fn ne(&self, other: &LayoutRect) -> bool
[src]
impl PartialOrd<LayoutRect> for LayoutRect
[src]
fn partial_cmp(&self, other: &LayoutRect) -> Option<Ordering>
[src]
fn lt(&self, other: &LayoutRect) -> bool
[src]
fn le(&self, other: &LayoutRect) -> bool
[src]
fn gt(&self, other: &LayoutRect) -> bool
[src]
fn ge(&self, other: &LayoutRect) -> bool
[src]
impl StructuralPartialEq for LayoutRect
[src]
Auto Trait Implementations
impl RefUnwindSafe for LayoutRect
impl Send for LayoutRect
impl Sync for LayoutRect
impl Unpin for LayoutRect
impl UnwindSafe for LayoutRect
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,