Trait windows::Win32::Graphics::DirectWrite::IDWriteFactory2_Impl
pub trait IDWriteFactory2_Impl: Sized + IDWriteFactory1_Impl {
// Required methods
fn GetSystemFontFallback(&self) -> Result<IDWriteFontFallback>;
fn CreateFontFallbackBuilder(&self) -> Result<IDWriteFontFallbackBuilder>;
fn TranslateColorGlyphRun(
&self,
baselineoriginx: f32,
baselineoriginy: f32,
glyphrun: *const DWRITE_GLYPH_RUN,
glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION,
measuringmode: DWRITE_MEASURING_MODE,
worldtodevicetransform: *const DWRITE_MATRIX,
colorpaletteindex: u32,
) -> Result<IDWriteColorGlyphRunEnumerator>;
fn CreateCustomRenderingParams(
&self,
gamma: f32,
enhancedcontrast: f32,
grayscaleenhancedcontrast: f32,
cleartypelevel: f32,
pixelgeometry: DWRITE_PIXEL_GEOMETRY,
renderingmode: DWRITE_RENDERING_MODE,
gridfitmode: DWRITE_GRID_FIT_MODE,
) -> Result<IDWriteRenderingParams2>;
fn CreateGlyphRunAnalysis(
&self,
glyphrun: *const DWRITE_GLYPH_RUN,
transform: *const DWRITE_MATRIX,
renderingmode: DWRITE_RENDERING_MODE,
measuringmode: DWRITE_MEASURING_MODE,
gridfitmode: DWRITE_GRID_FIT_MODE,
antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE,
baselineoriginx: f32,
baselineoriginy: f32,
) -> Result<IDWriteGlyphRunAnalysis>;
}
Required Methods§
fn GetSystemFontFallback(&self) -> Result<IDWriteFontFallback>
fn CreateFontFallbackBuilder(&self) -> Result<IDWriteFontFallbackBuilder>
fn TranslateColorGlyphRun( &self, baselineoriginx: f32, baselineoriginy: f32, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, measuringmode: DWRITE_MEASURING_MODE, worldtodevicetransform: *const DWRITE_MATRIX, colorpaletteindex: u32, ) -> Result<IDWriteColorGlyphRunEnumerator>
fn CreateCustomRenderingParams( &self, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, ) -> Result<IDWriteRenderingParams2>
fn CreateGlyphRunAnalysis( &self, glyphrun: *const DWRITE_GLYPH_RUN, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE, baselineoriginx: f32, baselineoriginy: f32, ) -> Result<IDWriteGlyphRunAnalysis>
Object Safety§
This trait is not object safe.