pub trait ID2D1Factory1_Impl: Sized + ID2D1Factory_Impl {
    // Required methods
    fn CreateDevice(
        &self,
        dxgidevice: Option<&IDXGIDevice>
    ) -> Result<ID2D1Device>;
    fn CreateStrokeStyle2(
        &self,
        strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1,
        dashes: *const f32,
        dashescount: u32
    ) -> Result<ID2D1StrokeStyle1>;
    fn CreatePathGeometry2(&self) -> Result<ID2D1PathGeometry1>;
    fn CreateDrawingStateBlock2(
        &self,
        drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1,
        textrenderingparams: Option<&IDWriteRenderingParams>
    ) -> Result<ID2D1DrawingStateBlock1>;
    fn CreateGdiMetafile(
        &self,
        metafilestream: Option<&IStream>
    ) -> Result<ID2D1GdiMetafile>;
    fn RegisterEffectFromStream(
        &self,
        classid: *const GUID,
        propertyxml: Option<&IStream>,
        bindings: *const D2D1_PROPERTY_BINDING,
        bindingscount: u32,
        effectfactory: PD2D1_EFFECT_FACTORY
    ) -> Result<()>;
    fn RegisterEffectFromString(
        &self,
        classid: *const GUID,
        propertyxml: &PCWSTR,
        bindings: *const D2D1_PROPERTY_BINDING,
        bindingscount: u32,
        effectfactory: PD2D1_EFFECT_FACTORY
    ) -> Result<()>;
    fn UnregisterEffect(&self, classid: *const GUID) -> Result<()>;
    fn GetRegisteredEffects(
        &self,
        effects: *mut GUID,
        effectscount: u32,
        effectsreturned: *mut u32,
        effectsregistered: *mut u32
    ) -> Result<()>;
    fn GetEffectProperties(
        &self,
        effectid: *const GUID
    ) -> Result<ID2D1Properties>;
}

Required Methods§

fn CreateDevice(&self, dxgidevice: Option<&IDXGIDevice>) -> Result<ID2D1Device>

fn CreateStrokeStyle2( &self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: *const f32, dashescount: u32 ) -> Result<ID2D1StrokeStyle1>

fn CreatePathGeometry2(&self) -> Result<ID2D1PathGeometry1>

fn CreateDrawingStateBlock2( &self, drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1, textrenderingparams: Option<&IDWriteRenderingParams> ) -> Result<ID2D1DrawingStateBlock1>

fn CreateGdiMetafile( &self, metafilestream: Option<&IStream> ) -> Result<ID2D1GdiMetafile>

fn RegisterEffectFromStream( &self, classid: *const GUID, propertyxml: Option<&IStream>, bindings: *const D2D1_PROPERTY_BINDING, bindingscount: u32, effectfactory: PD2D1_EFFECT_FACTORY ) -> Result<()>

fn RegisterEffectFromString( &self, classid: *const GUID, propertyxml: &PCWSTR, bindings: *const D2D1_PROPERTY_BINDING, bindingscount: u32, effectfactory: PD2D1_EFFECT_FACTORY ) -> Result<()>

fn UnregisterEffect(&self, classid: *const GUID) -> Result<()>

fn GetRegisteredEffects( &self, effects: *mut GUID, effectscount: u32, effectsreturned: *mut u32, effectsregistered: *mut u32 ) -> Result<()>

fn GetEffectProperties(&self, effectid: *const GUID) -> Result<ID2D1Properties>

Object Safety§

This trait is not object safe.

Implementors§