pub struct IDWriteFactory4(/* private fields */);Implementations§
Source§impl IDWriteFactory4
impl IDWriteFactory4
pub unsafe fn GetSystemFontCollection<'a, Param1: IntoParam<'a, BOOL>>( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: Param1, ) -> Result<()>
pub unsafe fn CreateCustomFontCollection<'a, Param0: IntoParam<'a, IDWriteFontCollectionLoader>>( &self, collectionloader: Param0, collectionkey: *const c_void, collectionkeysize: u32, ) -> Result<IDWriteFontCollection>
pub unsafe fn RegisterFontCollectionLoader<'a, Param0: IntoParam<'a, IDWriteFontCollectionLoader>>( &self, fontcollectionloader: Param0, ) -> Result<()>
pub unsafe fn UnregisterFontCollectionLoader<'a, Param0: IntoParam<'a, IDWriteFontCollectionLoader>>( &self, fontcollectionloader: Param0, ) -> Result<()>
pub unsafe fn CreateFontFileReference<'a, Param0: IntoParam<'a, PWSTR>>( &self, filepath: Param0, lastwritetime: *const FILETIME, ) -> Result<IDWriteFontFile>
pub unsafe fn CreateCustomFontFileReference<'a, Param2: IntoParam<'a, IDWriteFontFileLoader>>( &self, fontfilereferencekey: *const c_void, fontfilereferencekeysize: u32, fontfileloader: Param2, ) -> Result<IDWriteFontFile>
pub unsafe fn CreateFontFace( &self, fontfacetype: DWRITE_FONT_FACE_TYPE, numberoffiles: u32, fontfiles: *const Option<IDWriteFontFile>, faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS, ) -> Result<IDWriteFontFace>
pub unsafe fn CreateRenderingParams(&self) -> Result<IDWriteRenderingParams>
pub unsafe fn CreateMonitorRenderingParams<'a, Param0: IntoParam<'a, HMONITOR>>( &self, monitor: Param0, ) -> Result<IDWriteRenderingParams>
pub unsafe fn CreateCustomRenderingParams( &self, gamma: f32, enhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, ) -> Result<IDWriteRenderingParams>
pub unsafe fn RegisterFontFileLoader<'a, Param0: IntoParam<'a, IDWriteFontFileLoader>>( &self, fontfileloader: Param0, ) -> Result<()>
pub unsafe fn UnregisterFontFileLoader<'a, Param0: IntoParam<'a, IDWriteFontFileLoader>>( &self, fontfileloader: Param0, ) -> Result<()>
pub unsafe fn CreateTextFormat<'a, Param0: IntoParam<'a, PWSTR>, Param1: IntoParam<'a, IDWriteFontCollection>, Param6: IntoParam<'a, PWSTR>>( &self, fontfamilyname: Param0, fontcollection: Param1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: Param6, ) -> Result<IDWriteTextFormat>
pub unsafe fn CreateTypography(&self) -> Result<IDWriteTypography>
pub unsafe fn GetGdiInterop(&self) -> Result<IDWriteGdiInterop>
pub unsafe fn CreateTextLayout<'a, Param0: IntoParam<'a, PWSTR>, Param2: IntoParam<'a, IDWriteTextFormat>>( &self, string: Param0, stringlength: u32, textformat: Param2, maxwidth: f32, maxheight: f32, ) -> Result<IDWriteTextLayout>
pub unsafe fn CreateGdiCompatibleTextLayout<'a, Param0: IntoParam<'a, PWSTR>, Param2: IntoParam<'a, IDWriteTextFormat>, Param7: IntoParam<'a, BOOL>>( &self, string: Param0, stringlength: u32, textformat: Param2, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: Param7, ) -> Result<IDWriteTextLayout>
pub unsafe fn CreateEllipsisTrimmingSign<'a, Param0: IntoParam<'a, IDWriteTextFormat>>( &self, textformat: Param0, ) -> Result<IDWriteInlineObject>
pub unsafe fn CreateTextAnalyzer(&self) -> Result<IDWriteTextAnalyzer>
pub unsafe fn CreateNumberSubstitution<'a, Param1: IntoParam<'a, PWSTR>, Param2: IntoParam<'a, BOOL>>( &self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: Param1, ignoreuseroverride: Param2, ) -> Result<IDWriteNumberSubstitution>
pub unsafe 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>
pub unsafe fn GetEudcFontCollection<'a, Param1: IntoParam<'a, BOOL>>( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: Param1, ) -> Result<()>
pub unsafe fn CreateCustomRenderingParams2( &self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, ) -> Result<IDWriteRenderingParams1>
pub unsafe fn GetSystemFontFallback(&self) -> Result<IDWriteFontFallback>
pub unsafe fn CreateFontFallbackBuilder( &self, ) -> Result<IDWriteFontFallbackBuilder>
pub unsafe 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>
pub unsafe fn CreateCustomRenderingParams3( &self, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, ) -> Result<IDWriteRenderingParams2>
pub unsafe fn CreateGlyphRunAnalysis2( &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>
pub unsafe fn CreateGlyphRunAnalysis3( &self, glyphrun: *const DWRITE_GLYPH_RUN, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE1, measuringmode: DWRITE_MEASURING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE, baselineoriginx: f32, baselineoriginy: f32, ) -> Result<IDWriteGlyphRunAnalysis>
pub unsafe fn CreateCustomRenderingParams4( &self, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE1, gridfitmode: DWRITE_GRID_FIT_MODE, ) -> Result<IDWriteRenderingParams3>
pub unsafe fn CreateFontFaceReference<'a, Param0: IntoParam<'a, PWSTR>>( &self, filepath: Param0, lastwritetime: *const FILETIME, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, ) -> Result<IDWriteFontFaceReference>
pub unsafe fn CreateFontFaceReference2<'a, Param0: IntoParam<'a, IDWriteFontFile>>( &self, fontfile: Param0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, ) -> Result<IDWriteFontFaceReference>
pub unsafe fn GetSystemFontSet(&self) -> Result<IDWriteFontSet>
pub unsafe fn CreateFontSetBuilder(&self) -> Result<IDWriteFontSetBuilder>
pub unsafe fn CreateFontCollectionFromFontSet<'a, Param0: IntoParam<'a, IDWriteFontSet>>( &self, fontset: Param0, ) -> Result<IDWriteFontCollection1>
pub unsafe fn GetSystemFontCollection2<'a, Param0: IntoParam<'a, BOOL>, Param2: IntoParam<'a, BOOL>>( &self, includedownloadablefonts: Param0, fontcollection: *mut Option<IDWriteFontCollection1>, checkforupdates: Param2, ) -> Result<()>
pub unsafe fn GetFontDownloadQueue(&self) -> Result<IDWriteFontDownloadQueue>
pub unsafe fn TranslateColorGlyphRun2<'a, Param0: IntoParam<'a, D2D_POINT_2F>>( &self, baselineorigin: Param0, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: *const DWRITE_MATRIX, colorpaletteindex: u32, ) -> Result<IDWriteColorGlyphRunEnumerator1>
pub unsafe fn ComputeGlyphOrigins<'a, Param2: IntoParam<'a, D2D_POINT_2F>>( &self, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, baselineorigin: Param2, worldanddpitransform: *const DWRITE_MATRIX, ) -> Result<D2D_POINT_2F>
pub unsafe fn ComputeGlyphOrigins2<'a, Param1: IntoParam<'a, D2D_POINT_2F>>( &self, glyphrun: *const DWRITE_GLYPH_RUN, baselineorigin: Param1, ) -> Result<D2D_POINT_2F>
Trait Implementations§
Source§impl Clone for IDWriteFactory4
impl Clone for IDWriteFactory4
Source§fn clone(&self) -> IDWriteFactory4
fn clone(&self) -> IDWriteFactory4
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IDWriteFactory4
impl Debug for IDWriteFactory4
Source§impl From<&IDWriteFactory4> for IDWriteFactory
impl From<&IDWriteFactory4> for IDWriteFactory
Source§fn from(value: &IDWriteFactory4) -> Self
fn from(value: &IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<&IDWriteFactory4> for IDWriteFactory1
impl From<&IDWriteFactory4> for IDWriteFactory1
Source§fn from(value: &IDWriteFactory4) -> Self
fn from(value: &IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<&IDWriteFactory4> for IDWriteFactory2
impl From<&IDWriteFactory4> for IDWriteFactory2
Source§fn from(value: &IDWriteFactory4) -> Self
fn from(value: &IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<&IDWriteFactory4> for IDWriteFactory3
impl From<&IDWriteFactory4> for IDWriteFactory3
Source§fn from(value: &IDWriteFactory4) -> Self
fn from(value: &IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<&IDWriteFactory4> for IUnknown
impl From<&IDWriteFactory4> for IUnknown
Source§fn from(value: &IDWriteFactory4) -> Self
fn from(value: &IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<&IDWriteFactory5> for IDWriteFactory4
impl From<&IDWriteFactory5> for IDWriteFactory4
Source§fn from(value: &IDWriteFactory5) -> Self
fn from(value: &IDWriteFactory5) -> Self
Converts to this type from the input type.
Source§impl From<&IDWriteFactory6> for IDWriteFactory4
impl From<&IDWriteFactory6> for IDWriteFactory4
Source§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
Source§impl From<&IDWriteFactory7> for IDWriteFactory4
impl From<&IDWriteFactory7> for IDWriteFactory4
Source§fn from(value: &IDWriteFactory7) -> Self
fn from(value: &IDWriteFactory7) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory4> for IDWriteFactory
impl From<IDWriteFactory4> for IDWriteFactory
Source§fn from(value: IDWriteFactory4) -> Self
fn from(value: IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory4> for IDWriteFactory1
impl From<IDWriteFactory4> for IDWriteFactory1
Source§fn from(value: IDWriteFactory4) -> Self
fn from(value: IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory4> for IDWriteFactory2
impl From<IDWriteFactory4> for IDWriteFactory2
Source§fn from(value: IDWriteFactory4) -> Self
fn from(value: IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory4> for IDWriteFactory3
impl From<IDWriteFactory4> for IDWriteFactory3
Source§fn from(value: IDWriteFactory4) -> Self
fn from(value: IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory4> for IUnknown
impl From<IDWriteFactory4> for IUnknown
Source§fn from(value: IDWriteFactory4) -> Self
fn from(value: IDWriteFactory4) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory5> for IDWriteFactory4
impl From<IDWriteFactory5> for IDWriteFactory4
Source§fn from(value: IDWriteFactory5) -> Self
fn from(value: IDWriteFactory5) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory6> for IDWriteFactory4
impl From<IDWriteFactory6> for IDWriteFactory4
Source§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
Source§impl From<IDWriteFactory7> for IDWriteFactory4
impl From<IDWriteFactory7> for IDWriteFactory4
Source§fn from(value: IDWriteFactory7) -> Self
fn from(value: IDWriteFactory7) -> Self
Converts to this type from the input type.
Source§impl Interface for IDWriteFactory4
impl Interface for IDWriteFactory4
Source§impl PartialEq for IDWriteFactory4
impl PartialEq for IDWriteFactory4
impl Eq for IDWriteFactory4
impl StructuralPartialEq for IDWriteFactory4
Auto Trait Implementations§
impl Freeze for IDWriteFactory4
impl RefUnwindSafe for IDWriteFactory4
impl !Send for IDWriteFactory4
impl !Sync for IDWriteFactory4
impl Unpin for IDWriteFactory4
impl UnwindSafe for IDWriteFactory4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more