Type Alias zng_layout::unit::DipSize
source · pub type DipSize = Size2D<Dip, Dip>;
Expand description
A size in device pixels.
Aliased Type§
struct DipSize {
pub width: Dip,
pub height: Dip,
}
Fields§
§width: Dip
The extent of the element in the U
units along the x
axis (usually horizontal).
height: Dip
The extent of the element in the U
units along the y
axis (usually vertical).
Trait Implementations§
source§impl DivAssign<Factor2d> for DipSize
impl DivAssign<Factor2d> for DipSize
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl MulAssign<Factor2d> for DipSize
impl MulAssign<Factor2d> for DipSize
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read more