DipRect

Type Alias DipRect 

Source
pub type DipRect = Rect<Dip, Dip>;
Expand description

A rectangle in device independent pixels.

Aliased Type§

#[repr(C)]
pub struct DipRect { pub origin: Point2D<Dip, Dip>, pub size: Size2D<Dip, Dip>, }

Fields§

§origin: Point2D<Dip, Dip>§size: Size2D<Dip, Dip>

Trait Implementations§

Source§

impl DipToPx for DipRect

Source§

type AsPx = Rect<Px, Px>

Self equivalent in Px units.
Source§

fn to_px(self, scale_factor: Factor) -> Self::AsPx

Multiply the Dip self by the scale.
Source§

impl Div<Factor> for DipRect

Source§

type Output = Rect<Dip, Dip>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Factor) -> DipRect

Performs the / operation. Read more
Source§

impl DivAssign<Factor> for DipRect

Source§

fn div_assign(&mut self, rhs: Factor)

Performs the /= operation. Read more
Source§

impl Mul<Factor> for DipRect

Source§

type Output = Rect<Dip, Dip>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Factor) -> DipRect

Performs the * operation. Read more
Source§

impl MulAssign<Factor> for DipRect

Source§

fn mul_assign(&mut self, rhs: Factor)

Performs the *= operation. Read more