Type Alias freya::prelude::Size2D

source ·
pub type Size2D = Size2D<f32, Measure>;

Aliased Type§

struct Size2D {
    pub width: f32,
    pub height: f32,
    /* private fields */
}

Fields§

§width: f32

The extent of the element in the U units along the x axis (usually horizontal).

§height: f32

The extent of the element in the U units along the y axis (usually vertical).

Trait Implementations§

§

impl<T, U> Default for Size2D<T, U>where T: Default,

§

fn default() -> Size2D<T, U>

Returns the “default value” for a type. Read more