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

Use directly the pixel value.

Use a proportion (%) of the parent's dimensions (or screen, if there is no parent).

Trait Implementations

impl Debug for ScaleMode
[src]

Formats the value using the given formatter. Read more

impl Clone for ScaleMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for ScaleMode
[src]

impl PartialEq for ScaleMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ScaleMode

impl Sync for ScaleMode