Enum conrod::Position
[−]
[src]
pub enum Position { Absolute(Scalar), Relative(Scalar, Option<Id>), Align(Align, Option<Id>), Direction(Direction, Scalar, Option<Id>), Place(Place, Option<Id>), }
Some Position of some Widget along a single axis.
Positions for both the x and y axes are stored internally within the widget::CommonBuilder type, allowing all widgets to be positioned in a variety of different ways.
See the Positionable trait for methods that allow for setting the Positions in various ways.
Note that Positionable is implemented for all types that implement Widget.
Variants
Absolute(Scalar)
A specific position.
Relative(Scalar, Option<Id>)
A position relative to some other Widget.
Align(Align, Option<Id>)
A position aligned with some other Widget.
Direction(Direction, Scalar, Option<Id>)
A direction relative to some other Widget.
Place(Place, Option<Id>)
A position at a place on some other Widget.
Trait Implementations
impl PartialEq for Position
[src]
fn eq(&self, __arg_0: &Position) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Position) -> bool
This method tests for !=
.
impl Debug for Position
[src]
impl Clone for Position
[src]
fn clone(&self) -> Position
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more