Struct amethyst_ui::Anchored[][src]

pub struct Anchored { /* fields omitted */ }

Component indicating that the position of this entity should be relative to the parent's position.

Methods

impl Anchored
[src]

Creates a new Anchored component using the Anchor setting.

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 Anchored
[src]

Formats the value using the given formatter. Read more

impl Clone for Anchored
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Component for Anchored
[src]

Associated storage type for this component.

Auto Trait Implementations

impl Send for Anchored

impl Sync for Anchored