Enum conrod::Position [] [src]

pub enum Position {
    Absolute(ScalarScalar),
    Relative(ScalarScalarOption<Index>),
    Direction(DirectionScalarOption<Index>),
    Place(PlaceOption<Index>),
}

A cached widget's position for rendering.

Variants

Absolute(ScalarScalar)

A specific position.

Relative(ScalarScalarOption<Index>)

A position relative to 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.

Methods

impl Position
[src]

fn default() -> Position

The default widget Position.

Trait Implementations

impl Decodable for Position
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Position, __D::Error>

impl Encodable for Position
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

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]