Enum flo_ui::control::Position
[−]
[src]
pub enum Position { At(f32), Floating(Property, f32), Offset(f32), Stretch(f32), Start, End, After, }
Represents a position coordinate
Variants
At(f32)
Point located at a specific value
Floating(Property, f32)
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.
Offset(f32)
Point at an offset from its counterpart (eg, width or height)
Stretch(f32)
As a final point, stretches with the specified ratio to other stretch controls
Start
Point located at the start of the container (ie, left or top depending on if this is an x or y position)
End
Control located at the end of its container (ie, right or bottom depending on if this is an x or y position)
After
Same as the last point in this axis (which is 0 initially)
Trait Implementations
impl Clone for Position
[src]
fn clone(&self) -> Position
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Position
[src]
fn eq(&self, __arg_0: &Position) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Position) -> bool
[src]
This method tests for !=
.