Trait zng_view::extensions::WrToPx

source ·
pub trait WrToPx {
    type AsPx;

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

Conversion from webrender to Px units.

Required Associated Types§

source

type AsPx

Self equivalent in Px units.

Required Methods§

source

fn to_px(self) -> Self::AsPx

Returns self in Px units.

Implementations on Foreign Types§

source§

impl WrToPx for DeviceIntSize

source§

type AsPx = Size2D<Px, Px>

source§

fn to_px(self) -> Self::AsPx

source§

impl WrToPx for LayoutPoint

source§

type AsPx = Point2D<Px, Px>

source§

fn to_px(self) -> Self::AsPx

source§

impl WrToPx for LayoutRect

source§

type AsPx = Rect<Px, Px>

source§

fn to_px(self) -> Self::AsPx

source§

impl WrToPx for LayoutSize

source§

type AsPx = Size2D<Px, Px>

source§

fn to_px(self) -> Self::AsPx

source§

impl WrToPx for LayoutVector2D

source§

type AsPx = Vector2D<Px, Px>

source§

fn to_px(self) -> Self::AsPx

source§

impl WrToPx for Rect<f32, LayoutPixel>

source§

type AsPx = Rect<Px, Px>

source§

fn to_px(self) -> Self::AsPx

Implementors§