Enum conrod::Position [−] [src]

pub enum Position {
    Absolute(Scalar, Scalar),
    Relative(Scalar, Scalar, Option<UiId>),
    Direction(Direction, Scalar, Option<UiId>),
    Place(Place, Option<CanvasId>),
}

A cached widget's position for rendering.

Variants

Absolute

A specific position.

Relative

A position relative to some other widget.

Direction

A direction relative to some other widget.

Place

A position at a place on the current Canvas.

Methods

impl Position

fn default() -> Position

The default widget Position.

Trait Implementations

Derived Implementations

impl Decodable for Position

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

impl Encodable for Position

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

impl Debug for Position

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

impl Clone for Position

fn clone(&self) -> Position

fn clone_from(&mut self, source: &Self)

impl Copy for Position