Enum amethyst_ui::Stretch[][src]

pub enum Stretch {
    NoStretch,
    X {
        x_margin: f32,
    },
    Y {
        y_margin: f32,
    },
    XY {
        x_margin: f32,
        y_margin: f32,
    },
}

Indicates if a component should be stretched.

Variants

No stretching occurs

Stretches on the X axis.

Fields of X

The margin length for the width

Stretches on the Y axis.

Fields of Y

The margin length for the height

Stretches on both axes.

Fields of XY

The margin length for the width

The margin length for the height

Trait Implementations

impl Debug for Stretch
[src]

Formats the value using the given formatter. Read more

impl Clone for Stretch
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Stretch

impl Sync for Stretch