[][src]Struct polyhorn_ui::styles::Relative

pub struct Relative {
    pub flex_basis: Dimension<f32>,
    pub flex_grow: f32,
    pub flex_shrink: f32,
}

Controls the relative positioning of a view.

Fields

flex_basis: Dimension<f32>

If present, this property controls the weight of this view in computing a layout using the flexbox algorithm.

flex_grow: f32

This property controls the priority of this view when the flexbox can grow. The default value of this property is 0.0, which means that this view does not grow if more space is available. If set to any non-zero positive number, this view will consume (a portion of) the remaining available space of a flexbox.

flex_shrink: f32

This property controls the priority of this view when the flexbox is shrunk. The default value of this property is 1.0, which means that this view is shrunk when necessary. If set to 0.0, this view will not be shrunk.

Trait Implementations

impl Clone for Relative[src]

impl Copy for Relative[src]

impl Debug for Relative[src]

impl Default for Relative[src]

impl PartialEq<Relative> for Relative[src]

impl StructuralPartialEq for Relative[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[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.