Enum amethyst_ui::ScaleMode [−][src]
pub enum ScaleMode { Pixel, Percent, }
Indicates if the position and margins should be calculated in pixel or relative to their parent size.
Variants
Pixel
Use directly the pixel value.
Percent
Use a proportion (%) of the parent's dimensions (or screen, if there is no parent).
Trait Implementations
impl Debug for ScaleMode
[src]
impl Debug for ScaleMode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ScaleMode
[src]
impl Clone for ScaleMode
fn clone(&self) -> ScaleMode
[src]
fn clone(&self) -> ScaleMode
Returns 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 Eq for ScaleMode
[src]
impl Eq for ScaleMode
impl PartialEq for ScaleMode
[src]
impl PartialEq for ScaleMode