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
NoStretchNo stretching occurs
XStretches on the X axis.
Fields of X
x_margin: f32 | The margin length for the width |
YStretches on the Y axis.
Fields of Y
y_margin: f32 | The margin length for the height |
XYStretches on both axes.
Fields of XY
x_margin: f32 | The margin length for the width |
y_margin: f32 | The margin length for the height |
Trait Implementations
impl Debug for Stretch[src]
impl Debug for Stretchfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Stretch[src]
impl Clone for Stretch