Enum conrod::position::Position [] [src]

pub enum Position {
    Absolute(Scalar),
    Relative(RelativeOption<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

A specific position.

A position relative to some other Widget.

Trait Implementations

impl Copy for Position
[src]

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 Debug for Position
[src]

[src]

Formats the value using the given formatter. 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 !=.