Struct amethyst_ui::UiTransform [] [src]

pub struct UiTransform {
    pub id: String,
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub width: f32,
    pub height: f32,
    pub tab_order: i32,
    // some fields omitted
}

The raw pixels on screen that are populated.

TODO: Eventually this should be either replaced by a citrine type, or citrine may just populate it.

Fields

An identifier. Serves no purpose other than to help you distinguish between UI elements.

X coordinate, 0 is the left edge, while the width of the screen is the right edge.

Y coordinate, 0 is the top edge, while the height of the screen is the bottom edge.

Z order, entities with a lower Z order will be rendered on top of entities with a higher Z order.

The width of this UI element

The height of this UI element

The UI element tab order. When the player presses tab the UI focus will shift to the UI element with the next highest tab order, or if another element with the same tab_order as this one exists they are ordered according to Entity creation order. Shift-tab walks this ordering backwards.

Methods

impl UiTransform
[src]

[src]

Creates a new UiTransform

Trait Implementations

impl Clone for UiTransform
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for UiTransform
[src]

[src]

Formats the value using the given formatter.

impl Component for UiTransform
[src]

Associated storage type for this component.