Enum conrod::position::Dimension[][src]

pub enum Dimension {
    Absolute(Scalar),
    Of(IdOption<Scalar>),
    KidAreaOf(IdOption<Scalar>),
}

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

Some specific length has been given.

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

The Option<Scalar> is an optional padding argument which when Some, will subtract the scalar from both ends of the other widget's dimension.

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

The Option<Scalar> is an optional padding argument which when Some, will subtract the scalar from both ends of the other widget's dimension.

Trait Implementations

impl Copy for Dimension
[src]

impl Clone for Dimension
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Dimension
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Dimension
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Dimension

impl Sync for Dimension