Struct piet_direct2d::d2d::D2DDevice
source · pub struct D2DDevice(_);
Expand description
A Direct2D device.
Implementations§
source§impl D2DDevice
impl D2DDevice
sourcepub fn create_device_context(&mut self) -> Result<DeviceContext, Error>
pub fn create_device_context(&mut self) -> Result<DeviceContext, Error>
Create a new device context from the device.
This is a wrapper for ID2D1Device::CreateDeviceContext.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for D2DDevice
impl !Sync for D2DDevice
impl Unpin for D2DDevice
impl UnwindSafe for D2DDevice
Blanket Implementations§
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.