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