Enum conrod::position::Position
[−]
[src]
pub enum Position { Absolute(Scalar), Relative(Relative, 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(Relative, Option<Id>)
A position relative to some other Widget.
Trait Implementations
impl Copy for Position
[src]
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 Debug for Position
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more