Enum conrod::Dimension [] [src]

pub enum Dimension {
    Absolute(Scalar),
    Of(IndexOption<Scalar>),
    KidAreaOf(IndexOption<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

Absolute(Scalar)

Some specific length has been given.

Of(IndexOption<Scalar>)

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.

KidAreaOf(IndexOption<Scalar>)

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 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]