Type Alias zng_layout::unit::DipVector
source · pub type DipVector = Vector2D<Dip, Dip>;
Expand description
A vector in device independent pixels.
Aliased Type§
struct DipVector {
pub x: Dip,
pub y: Dip,
}
Fields§
§x: Dip
The x
(traditionally, horizontal) coordinate.
y: Dip
The y
(traditionally, vertical) coordinate.
Trait Implementations§
source§impl DivAssign<Factor2d> for DipVector
impl DivAssign<Factor2d> for DipVector
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl MulAssign<Factor2d> for DipVector
impl MulAssign<Factor2d> for DipVector
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read more