Type Alias PhysicalSize

Source
pub type PhysicalSize<U> = Size2D<U, CSSPixel>;

Aliased Type§

#[repr(C)]
pub 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>