Type Alias layout_2020::geom::PhysicalSize

source ·
pub type PhysicalSize<U> = Size2D<U, CSSPixel>;

Aliased Type§

struct PhysicalSize<U> {
    pub width: U,
    pub height: U,
}

Fields§

§width: U

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

§height: U

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

Trait Implementations§

source§

impl<Unit: Copy> ToLogical<Unit, LogicalVec2<Unit>> for PhysicalSize<Unit>

source§

fn to_logical(&self, writing_mode: WritingMode) -> LogicalVec2<Unit>

source§

impl ToWebRender for PhysicalSize<Au>