pub type PxSize = Size2D<Px, Px>;Expand description
A size in device pixels.
Aliased Type§
#[repr(C)]pub struct PxSize {
pub width: Px,
pub height: Px,
}Fields§
§width: PxThe extent of the element in the U units along the x axis (usually horizontal).
height: PxThe 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§fn into_var(self) -> Var<PxConstraints2d>
fn into_var(self) -> Var<PxConstraints2d>
New exact.
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