Enum conrod::Dimension [] [src]

pub enum Dimension {
    Absolute(Scalar),
    Of(Index),
    KidAreaOf(Index),
}

The length of a Widget over either the x or y axes.

This type is used to represent the different ways in which a dimension may be sized.

See the Sizeable trait for methods that allow for setting the x and y Dimensions in various ways.

Note that Sizeable is implemented for all types that implement Widget.

Variants

Absolute(Scalar)

Some specific length has been given.

Of(Index)

The dimension should match that of the widget at the given index.

KidAreaOf(Index)

The dimension should match that of the kid_area of the widget at the given index.

Trait Implementations

impl PartialEq for Dimension
[src]

fn eq(&self, __arg_0: &Dimension) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Dimension) -> bool

This method tests for !=.

impl Debug for Dimension
[src]

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

Formats the value using the given formatter.

impl Clone for Dimension
[src]

fn clone(&self) -> Dimension

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 Dimension
[src]