Trait zng_unit::DipToPx

source ·
pub trait DipToPx {
    type AsPx;

    // Required method
    fn to_px(self, scale_factor: Factor) -> Self::AsPx;
}
Expand description

Conversion from Dip to Px units.

Required Associated Types§

source

type AsPx

Self equivalent in Px units.

Required Methods§

source

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

Multiply the Dip self by the scale.

Implementations on Foreign Types§

source§

impl DipToPx for Point2D<f32, Dip>

§

type AsPx = Point2D<f32, Px>

source§

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

Implementors§

source§

impl DipToPx for Dip

§

type AsPx = Px

source§

impl DipToPx for DipBox

§

type AsPx = Box2D<Px, Px>

source§

impl DipToPx for DipCornerRadius

source§

impl DipToPx for DipPoint

§

type AsPx = Point2D<Px, Px>

source§

impl DipToPx for DipRect

§

type AsPx = Rect<Px, Px>

source§

impl DipToPx for DipSideOffsets

source§

impl DipToPx for DipSize

§

type AsPx = Size2D<Px, Px>

source§

impl DipToPx for DipVector

§

type AsPx = Vector2D<Px, Px>