[][src]Enum makepad_render::Height

pub enum Height {
    Fill,
    Fix(f32),
    Compute,
    ComputeFill,
    FillPad(f32),
    FillScale(f32),
    FillScalePad(f32f32),
    Scale(f32),
    ScalePad(f32f32),
}

Variants

Fill
Fix(f32)
Compute
ComputeFill
FillPad(f32)
FillScale(f32)
FillScalePad(f32f32)
Scale(f32)
ScalePad(f32f32)

Methods

impl Height[src]

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

pub fn eval_height(
    &self,
    cx: &Cx,
    margin: Margin,
    abs: bool,
    abs_pos: f32
) -> (f32, f32)
[src]

Trait Implementations

impl Clone for Height[src]

impl Copy for Height[src]

impl Debug for Height[src]

impl Default for Height[src]

Auto Trait Implementations

impl RefUnwindSafe for Height

impl Send for Height

impl Sync for Height

impl Unpin for Height

impl UnwindSafe for Height

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.