pub trait PxToWr {
type AsLayout;
type AsDevice;
type AsWorld;
// Required methods
fn to_wr_device(self) -> Self::AsDevice;
fn to_wr_world(self) -> Self::AsWorld;
fn to_wr(self) -> Self::AsLayout;
}Expand description
Conversion from Px to webrender units.
All conversions are 1 to 1.
Required Associated Types§
Required Methods§
Sourcefn to_wr_device(self) -> Self::AsDevice
fn to_wr_device(self) -> Self::AsDevice
Returns self in webrender::units::DevicePixel units.
Sourcefn to_wr_world(self) -> Self::AsWorld
fn to_wr_world(self) -> Self::AsWorld
Returns self in webrender::units::WorldPixel units.