Trait windows::Win32::Graphics::Direct2D::ID2D1Factory1_Impl

pub trait ID2D1Factory1_Impl: Sized + ID2D1Factory_Impl {
    // Required methods
    fn CreateDevice(
        &self,
        dxgidevice: Option<&IDXGIDevice>,
    ) -> Result<ID2D1Device>;
    fn CreateStrokeStyle(
        &self,
        strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1,
        dashes: *const f32,
        dashescount: u32,
    ) -> Result<ID2D1StrokeStyle1>;
    fn CreatePathGeometry(&self) -> Result<ID2D1PathGeometry1>;
    fn CreateDrawingStateBlock(
        &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 CreateStrokeStyle( &self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: *const f32, dashescount: u32, ) -> Result<ID2D1StrokeStyle1>

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

fn CreateDrawingStateBlock( &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§