Enum amethyst_ui::Anchor[][src]

pub enum Anchor {
    TopLeft,
    TopMiddle,
    TopRight,
    MiddleLeft,
    Middle,
    MiddleRight,
    BottomLeft,
    BottomMiddle,
    BottomRight,
}

Indicated where the anchor is, relative to the parent (or to the screen, if there is no parent). Follow a normal english Y,X naming.

Variants

Anchors the entity at the top left of the parent.

Anchors the entity at the top middle of the parent.

Anchors the entity at the top right of the parent.

Anchors the entity at the middle left of the parent.

Anchors the entity at the center of the parent.

Anchors the entity at the middle right of the parent.

Anchors the entity at the bottom left of the parent.

Anchors the entity at the bottom middle of the parent.

Anchors the entity at the bottom right of the parent.

Methods

impl Anchor
[src]

Returns the normalized offset using the Anchor setting. The normalized offset is a [-0.5,0.5] value indicating the relative offset from the parent's position (centered).

Trait Implementations

impl Debug for Anchor
[src]

Formats the value using the given formatter. Read more

impl Clone for Anchor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Anchor
[src]

impl PartialEq for Anchor
[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 Anchor

impl Sync for Anchor