pub trait ID2D1DeviceContext4_Impl: Sized + ID2D1DeviceContext3_Impl {
    // Required methods
    fn CreateSvgGlyphStyle(&self) -> Result<ID2D1SvgGlyphStyle>;
    fn DrawText2(
        &self,
        string: &PCWSTR,
        stringlength: u32,
        textformat: Option<&IDWriteTextFormat>,
        layoutrect: *const D2D_RECT_F,
        defaultfillbrush: Option<&ID2D1Brush>,
        svgglyphstyle: Option<&ID2D1SvgGlyphStyle>,
        colorpaletteindex: u32,
        options: D2D1_DRAW_TEXT_OPTIONS,
        measuringmode: DWRITE_MEASURING_MODE
    );
    fn DrawTextLayout2(
        &self,
        origin: &D2D_POINT_2F,
        textlayout: Option<&IDWriteTextLayout>,
        defaultfillbrush: Option<&ID2D1Brush>,
        svgglyphstyle: Option<&ID2D1SvgGlyphStyle>,
        colorpaletteindex: u32,
        options: D2D1_DRAW_TEXT_OPTIONS
    );
    fn DrawColorBitmapGlyphRun(
        &self,
        glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS,
        baselineorigin: &D2D_POINT_2F,
        glyphrun: *const DWRITE_GLYPH_RUN,
        measuringmode: DWRITE_MEASURING_MODE,
        bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION
    );
    fn DrawSvgGlyphRun(
        &self,
        baselineorigin: &D2D_POINT_2F,
        glyphrun: *const DWRITE_GLYPH_RUN,
        defaultfillbrush: Option<&ID2D1Brush>,
        svgglyphstyle: Option<&ID2D1SvgGlyphStyle>,
        colorpaletteindex: u32,
        measuringmode: DWRITE_MEASURING_MODE
    );
    fn GetColorBitmapGlyphImage(
        &self,
        glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS,
        glyphorigin: &D2D_POINT_2F,
        fontface: Option<&IDWriteFontFace>,
        fontemsize: f32,
        glyphindex: u16,
        issideways: BOOL,
        worldtransform: *const Matrix3x2,
        dpix: f32,
        dpiy: f32,
        glyphtransform: *mut Matrix3x2,
        glyphimage: *mut Option<ID2D1Image>
    ) -> Result<()>;
    fn GetSvgGlyphImage(
        &self,
        glyphorigin: &D2D_POINT_2F,
        fontface: Option<&IDWriteFontFace>,
        fontemsize: f32,
        glyphindex: u16,
        issideways: BOOL,
        worldtransform: *const Matrix3x2,
        defaultfillbrush: Option<&ID2D1Brush>,
        svgglyphstyle: Option<&ID2D1SvgGlyphStyle>,
        colorpaletteindex: u32,
        glyphtransform: *mut Matrix3x2,
        glyphimage: *mut Option<ID2D1CommandList>
    ) -> Result<()>;
}

Required Methods§

fn CreateSvgGlyphStyle(&self) -> Result<ID2D1SvgGlyphStyle>

fn DrawText2( &self, string: &PCWSTR, stringlength: u32, textformat: Option<&IDWriteTextFormat>, layoutrect: *const D2D_RECT_F, defaultfillbrush: Option<&ID2D1Brush>, svgglyphstyle: Option<&ID2D1SvgGlyphStyle>, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: DWRITE_MEASURING_MODE )

fn DrawTextLayout2( &self, origin: &D2D_POINT_2F, textlayout: Option<&IDWriteTextLayout>, defaultfillbrush: Option<&ID2D1Brush>, svgglyphstyle: Option<&ID2D1SvgGlyphStyle>, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS )

fn DrawColorBitmapGlyphRun( &self, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION )

fn DrawSvgGlyphRun( &self, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, defaultfillbrush: Option<&ID2D1Brush>, svgglyphstyle: Option<&ID2D1SvgGlyphStyle>, colorpaletteindex: u32, measuringmode: DWRITE_MEASURING_MODE )

fn GetColorBitmapGlyphImage( &self, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: &D2D_POINT_2F, fontface: Option<&IDWriteFontFace>, fontemsize: f32, glyphindex: u16, issideways: BOOL, worldtransform: *const Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut Matrix3x2, glyphimage: *mut Option<ID2D1Image> ) -> Result<()>

fn GetSvgGlyphImage( &self, glyphorigin: &D2D_POINT_2F, fontface: Option<&IDWriteFontFace>, fontemsize: f32, glyphindex: u16, issideways: BOOL, worldtransform: *const Matrix3x2, defaultfillbrush: Option<&ID2D1Brush>, svgglyphstyle: Option<&ID2D1SvgGlyphStyle>, colorpaletteindex: u32, glyphtransform: *mut Matrix3x2, glyphimage: *mut Option<ID2D1CommandList> ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§