pub struct D2DDevice(_);
Expand description
A Direct2D device.
Implementations§
§impl D2DDevice
impl D2DDevice
pub 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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.