Enum thyme::HeightRelative[][src]

pub enum HeightRelative {
    Normal,
    Parent,
    Children,
    FontLine,
}

What to compute the height of widget relative to.

Variants

Normal

Height is equal to the y field of the widget’s size.

Parent

Height is equal to the parent widget’s inner height plus the y field of the widget’s size.

Children

Height is sized so that the widget’s inner height just encompasses all child widgets, plus the y field of the widget’s size. Note that any children of this Widget should not use Parent height if this is used.

FontLine

Height is equal to the line height of the widget’s font plus the y field of the widget’s size.

Trait Implementations

impl Clone for HeightRelative[src]

impl Copy for HeightRelative[src]

impl Debug for HeightRelative[src]

impl Default for HeightRelative[src]

impl<'de> Deserialize<'de> for HeightRelative[src]

impl Eq for HeightRelative[src]

impl Hash for HeightRelative[src]

impl PartialEq<HeightRelative> for HeightRelative[src]

impl Serialize for HeightRelative[src]

impl StructuralEq for HeightRelative[src]

impl StructuralPartialEq for HeightRelative[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> CallHasher for T where
    T: Hash

impl<T> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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.

impl<T> Upcast<T> for T