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
PixelUse directly the pixel value.
PercentUse a proportion (%) of the parent's dimensions (or screen, if there is no parent).
Trait Implementations
impl Debug for ScaleMode[src]
impl Debug for ScaleModefn 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 ScaleMode[src]
impl Clone for ScaleModefn clone(&self) -> ScaleMode[src]
fn clone(&self) -> ScaleModeReturns 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 ScaleModeimpl PartialEq for ScaleMode[src]
impl PartialEq for ScaleMode