Enum flo_ui::control::Position [] [src]

pub enum Position {
    At(f32),
    Floating(Propertyf32),
    Offset(f32),
    Stretch(f32),
    Start,
    End,
    After,
}

Represents a position coordinate

Variants

Point located at a specific value

Point located at a value specified by a property, with an offset When this item is moved, only its bounding box is changed: no further layout is performed. Other items are laid out as if this had the offset value (this is what makes this a 'floating' item: it can float away from its initial position without affecting other items)

This is useful for items that move but don't otherwise change shape: as no layout needs to be performed beyond moving the item these are always fast to change.

Point at an offset from its counterpart (eg, width or height)

As a final point, stretches with the specified ratio to other stretch controls

Point located at the start of the container (ie, left or top depending on if this is an x or y position)

Control located at the end of its container (ie, right or bottom depending on if this is an x or y position)

Same as the last point in this axis (which is 0 initially)

Trait Implementations

impl Clone for Position
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Position
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Position
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Position

impl Sync for Position