pub trait IDWriteFactory_Impl: Sized {
Show 21 methods // Required methods fn GetSystemFontCollection( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: BOOL ) -> Result<()>; fn CreateCustomFontCollection( &self, collectionloader: Option<&IDWriteFontCollectionLoader>, collectionkey: *const c_void, collectionkeysize: u32 ) -> Result<IDWriteFontCollection>; fn RegisterFontCollectionLoader( &self, fontcollectionloader: Option<&IDWriteFontCollectionLoader> ) -> Result<()>; fn UnregisterFontCollectionLoader( &self, fontcollectionloader: Option<&IDWriteFontCollectionLoader> ) -> Result<()>; fn CreateFontFileReference( &self, filepath: &PCWSTR, lastwritetime: *const FILETIME ) -> Result<IDWriteFontFile>; fn CreateCustomFontFileReference( &self, fontfilereferencekey: *const c_void, fontfilereferencekeysize: u32, fontfileloader: Option<&IDWriteFontFileLoader> ) -> Result<IDWriteFontFile>; fn CreateFontFace( &self, fontfacetype: DWRITE_FONT_FACE_TYPE, numberoffiles: u32, fontfiles: *const Option<IDWriteFontFile>, faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS ) -> Result<IDWriteFontFace>; fn CreateRenderingParams(&self) -> Result<IDWriteRenderingParams>; fn CreateMonitorRenderingParams( &self, monitor: HMONITOR ) -> Result<IDWriteRenderingParams>; fn CreateCustomRenderingParams( &self, gamma: f32, enhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE ) -> Result<IDWriteRenderingParams>; fn RegisterFontFileLoader( &self, fontfileloader: Option<&IDWriteFontFileLoader> ) -> Result<()>; fn UnregisterFontFileLoader( &self, fontfileloader: Option<&IDWriteFontFileLoader> ) -> Result<()>; fn CreateTextFormat( &self, fontfamilyname: &PCWSTR, fontcollection: Option<&IDWriteFontCollection>, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: &PCWSTR ) -> Result<IDWriteTextFormat>; fn CreateTypography(&self) -> Result<IDWriteTypography>; fn GetGdiInterop(&self) -> Result<IDWriteGdiInterop>; fn CreateTextLayout( &self, string: &PCWSTR, stringlength: u32, textformat: Option<&IDWriteTextFormat>, maxwidth: f32, maxheight: f32 ) -> Result<IDWriteTextLayout>; fn CreateGdiCompatibleTextLayout( &self, string: &PCWSTR, stringlength: u32, textformat: Option<&IDWriteTextFormat>, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: BOOL ) -> Result<IDWriteTextLayout>; fn CreateEllipsisTrimmingSign( &self, textformat: Option<&IDWriteTextFormat> ) -> Result<IDWriteInlineObject>; fn CreateTextAnalyzer(&self) -> Result<IDWriteTextAnalyzer>; fn CreateNumberSubstitution( &self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: &PCWSTR, ignoreuseroverride: BOOL ) -> Result<IDWriteNumberSubstitution>; fn CreateGlyphRunAnalysis( &self, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32 ) -> Result<IDWriteGlyphRunAnalysis>;
}

Required Methods§

fn GetSystemFontCollection( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: BOOL ) -> Result<()>

fn CreateCustomFontCollection( &self, collectionloader: Option<&IDWriteFontCollectionLoader>, collectionkey: *const c_void, collectionkeysize: u32 ) -> Result<IDWriteFontCollection>

fn RegisterFontCollectionLoader( &self, fontcollectionloader: Option<&IDWriteFontCollectionLoader> ) -> Result<()>

fn UnregisterFontCollectionLoader( &self, fontcollectionloader: Option<&IDWriteFontCollectionLoader> ) -> Result<()>

fn CreateFontFileReference( &self, filepath: &PCWSTR, lastwritetime: *const FILETIME ) -> Result<IDWriteFontFile>

fn CreateCustomFontFileReference( &self, fontfilereferencekey: *const c_void, fontfilereferencekeysize: u32, fontfileloader: Option<&IDWriteFontFileLoader> ) -> Result<IDWriteFontFile>

fn CreateFontFace( &self, fontfacetype: DWRITE_FONT_FACE_TYPE, numberoffiles: u32, fontfiles: *const Option<IDWriteFontFile>, faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS ) -> Result<IDWriteFontFace>

fn CreateRenderingParams(&self) -> Result<IDWriteRenderingParams>

fn CreateMonitorRenderingParams( &self, monitor: HMONITOR ) -> Result<IDWriteRenderingParams>

fn CreateCustomRenderingParams( &self, gamma: f32, enhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE ) -> Result<IDWriteRenderingParams>

fn RegisterFontFileLoader( &self, fontfileloader: Option<&IDWriteFontFileLoader> ) -> Result<()>

fn UnregisterFontFileLoader( &self, fontfileloader: Option<&IDWriteFontFileLoader> ) -> Result<()>

fn CreateTextFormat( &self, fontfamilyname: &PCWSTR, fontcollection: Option<&IDWriteFontCollection>, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: &PCWSTR ) -> Result<IDWriteTextFormat>

fn CreateTypography(&self) -> Result<IDWriteTypography>

fn GetGdiInterop(&self) -> Result<IDWriteGdiInterop>

fn CreateTextLayout( &self, string: &PCWSTR, stringlength: u32, textformat: Option<&IDWriteTextFormat>, maxwidth: f32, maxheight: f32 ) -> Result<IDWriteTextLayout>

fn CreateGdiCompatibleTextLayout( &self, string: &PCWSTR, stringlength: u32, textformat: Option<&IDWriteTextFormat>, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: BOOL ) -> Result<IDWriteTextLayout>

fn CreateEllipsisTrimmingSign( &self, textformat: Option<&IDWriteTextFormat> ) -> Result<IDWriteInlineObject>

fn CreateTextAnalyzer(&self) -> Result<IDWriteTextAnalyzer>

fn CreateNumberSubstitution( &self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: &PCWSTR, ignoreuseroverride: BOOL ) -> Result<IDWriteNumberSubstitution>

fn CreateGlyphRunAnalysis( &self, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32 ) -> Result<IDWriteGlyphRunAnalysis>

Object Safety§

This trait is not object safe.

Implementors§