windows::Win32::Graphics::Direct2D

Trait ID2D1Device2_Impl

pub trait ID2D1Device2_Impl: ID2D1Device1_Impl {
    // Required methods
    fn CreateDeviceContext(
        &self,
        options: D2D1_DEVICE_CONTEXT_OPTIONS,
    ) -> Result<ID2D1DeviceContext2>;
    fn FlushDeviceContexts(&self, bitmap: Ref<'_, ID2D1Bitmap>);
    fn GetDxgiDevice(&self) -> Result<IDXGIDevice>;
}

Required Methods§

fn CreateDeviceContext( &self, options: D2D1_DEVICE_CONTEXT_OPTIONS, ) -> Result<ID2D1DeviceContext2>

fn FlushDeviceContexts(&self, bitmap: Ref<'_, ID2D1Bitmap>)

fn GetDxgiDevice(&self) -> Result<IDXGIDevice>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§