[][src]Struct sixtyfps_corelib::layout::LayoutInfo

#[repr(C)]pub struct LayoutInfo {
    pub min_width: f32,
    pub max_width: f32,
    pub min_height: f32,
    pub max_height: f32,
    pub horizontal_stretch: f32,
    pub vertical_stretch: f32,
}

The constraint that applies to an item

Fields

min_width: f32

The minimum width for the item.

max_width: f32

The maximum width for the item.

min_height: f32

The minimum height for the item.

max_height: f32

The maximum height for the item.

horizontal_stretch: f32

the horizontal stretch factor

vertical_stretch: f32

the vertical stretch factor

Implementations

impl LayoutInfo[src]

pub fn merge(&self, other: &LayoutInfo) -> Self[src]

Trait Implementations

impl Clone for LayoutInfo[src]

impl Copy for LayoutInfo[src]

impl Debug for LayoutInfo[src]

impl Default for LayoutInfo[src]

impl PartialEq<LayoutInfo> for LayoutInfo[src]

impl StructuralPartialEq for LayoutInfo[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, 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.