Struct amethyst_ui::Stretched [−][src]
pub struct Stretched { /* fields omitted */ }Component indicating that an entity should be stretched to fit the parent size on one or multiple axes.
Methods
impl Stretched[src]
impl Stretchedpub fn new(stretch: Stretch, margin_x: f32, margin_y: f32) -> Self[src]
pub fn new(stretch: Stretch, margin_x: f32, margin_y: f32) -> SelfCreate a new Stretched component using the Stretch setting.
Trait Implementations
impl Debug for Stretched[src]
impl Debug for Stretchedfn 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 Stretched[src]
impl Clone for Stretchedfn clone(&self) -> Stretched[src]
fn clone(&self) -> StretchedReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Component for Stretched[src]
impl Component for Stretchedtype Storage = FlaggedStorage<Self, VecStorage<Self>>
Associated storage type for this component.