Enum conrod::Position [] [src]

pub enum Position {
    Absolute(Scalar),
    Relative(ScalarOption<Index>),
    Align(AlignOption<Index>),
    Direction(DirectionScalarOption<Index>),
    Place(PlaceOption<Index>),
}

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(ScalarOption<Index>)

A position relative to some other Widget.

Align(AlignOption<Index>)

A position aligned with some other Widget.

Direction(DirectionScalarOption<Index>)

A direction relative to some other Widget.

Place(PlaceOption<Index>)

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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl Copy for Position
[src]