Type Definition witas::PhysicalRect

source ·
pub type PhysicalRect<T> = Rect<T, Physical>;
Expand description

A rectangle in physical coordinate.

Trait Implementations§

source§

impl From<RECT> for PhysicalRect<i32>

source§

fn from(src: RECT) -> Self

Converts to this type from the input type.
source§

impl<T> ToLogical<T> for PhysicalRect<T>where T: Num + NumCast + Copy,

§

type Output<U> = Rect<T, Logical>

source§

fn to_logical(&self, dpi: T) -> Self::Output<T>

source§

impl<T> ToPhysical<T> for PhysicalRect<T>where T: Copy,

§

type Output<U> = Rect<U, Physical>

source§

fn to_physical(&self, _dpi: T) -> Self::Output<T>