Type Alias torin::geometry::Size2D

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

Aliased Type§

struct Size2D {
    pub width: f32,
    pub height: f32,
}

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§

source§

impl SizeModel for Size2D

source§

fn with_gaps(self, gap: &Gaps) -> Size2D

Get the size with the given gap, e.g padding.