pub trait ID2D1SvgDocument_Impl: Sized + ID2D1Resource_Impl {
    // Required methods
    fn SetViewportSize(&self, viewportsize: &D2D_SIZE_F) -> Result<()>;
    fn GetViewportSize(&self) -> D2D_SIZE_F;
    fn SetRoot(&self, root: Option<&ID2D1SvgElement>) -> Result<()>;
    fn GetRoot(&self, root: *mut Option<ID2D1SvgElement>);
    fn FindElementById(&self, id: &PCWSTR) -> Result<ID2D1SvgElement>;
    fn Serialize(
        &self,
        outputxmlstream: Option<&IStream>,
        subtree: Option<&ID2D1SvgElement>
    ) -> Result<()>;
    fn Deserialize(
        &self,
        inputxmlstream: Option<&IStream>
    ) -> Result<ID2D1SvgElement>;
    fn CreatePaint(
        &self,
        painttype: D2D1_SVG_PAINT_TYPE,
        color: *const D2D1_COLOR_F,
        id: &PCWSTR
    ) -> Result<ID2D1SvgPaint>;
    fn CreateStrokeDashArray(
        &self,
        dashes: *const D2D1_SVG_LENGTH,
        dashescount: u32
    ) -> Result<ID2D1SvgStrokeDashArray>;
    fn CreatePointCollection(
        &self,
        points: *const D2D_POINT_2F,
        pointscount: u32
    ) -> Result<ID2D1SvgPointCollection>;
    fn CreatePathData(
        &self,
        segmentdata: *const f32,
        segmentdatacount: u32,
        commands: *const D2D1_SVG_PATH_COMMAND,
        commandscount: u32
    ) -> Result<ID2D1SvgPathData>;
}

Required Methods§

fn SetViewportSize(&self, viewportsize: &D2D_SIZE_F) -> Result<()>

fn GetViewportSize(&self) -> D2D_SIZE_F

fn SetRoot(&self, root: Option<&ID2D1SvgElement>) -> Result<()>

fn GetRoot(&self, root: *mut Option<ID2D1SvgElement>)

fn FindElementById(&self, id: &PCWSTR) -> Result<ID2D1SvgElement>

fn Serialize( &self, outputxmlstream: Option<&IStream>, subtree: Option<&ID2D1SvgElement> ) -> Result<()>

fn Deserialize( &self, inputxmlstream: Option<&IStream> ) -> Result<ID2D1SvgElement>

fn CreatePaint( &self, painttype: D2D1_SVG_PAINT_TYPE, color: *const D2D1_COLOR_F, id: &PCWSTR ) -> Result<ID2D1SvgPaint>

fn CreateStrokeDashArray( &self, dashes: *const D2D1_SVG_LENGTH, dashescount: u32 ) -> Result<ID2D1SvgStrokeDashArray>

fn CreatePointCollection( &self, points: *const D2D_POINT_2F, pointscount: u32 ) -> Result<ID2D1SvgPointCollection>

fn CreatePathData( &self, segmentdata: *const f32, segmentdatacount: u32, commands: *const D2D1_SVG_PATH_COMMAND, commandscount: u32 ) -> Result<ID2D1SvgPathData>

Object Safety§

This trait is not object safe.

Implementors§