Struct mltg_bindings::Windows::Win32::Graphics::DirectWrite::IDWriteFactory4 [−][src]
#[repr(transparent)]pub struct IDWriteFactory4(_);
Implementations
pub unsafe fn GetSystemFontCollection<'a>(
&self,
fontcollection: *mut Option<IDWriteFontCollection>,
checkforupdates: impl IntoParam<'a, BOOL>
) -> Result<()>
pub unsafe fn CreateCustomFontCollection<'a>(
&self,
collectionloader: impl IntoParam<'a, IDWriteFontCollectionLoader>,
collectionkey: *const c_void,
collectionkeysize: u32
) -> Result<IDWriteFontCollection>
pub unsafe fn RegisterFontCollectionLoader<'a>(
&self,
fontcollectionloader: impl IntoParam<'a, IDWriteFontCollectionLoader>
) -> Result<()>
pub unsafe fn UnregisterFontCollectionLoader<'a>(
&self,
fontcollectionloader: impl IntoParam<'a, IDWriteFontCollectionLoader>
) -> Result<()>
pub unsafe fn CreateFontFileReference<'a>(
&self,
filepath: impl IntoParam<'a, PWSTR>,
lastwritetime: *const FILETIME
) -> Result<IDWriteFontFile>
pub unsafe fn CreateCustomFontFileReference<'a>(
&self,
fontfilereferencekey: *const c_void,
fontfilereferencekeysize: u32,
fontfileloader: impl IntoParam<'a, IDWriteFontFileLoader>
) -> Result<IDWriteFontFile>
pub unsafe fn CreateFontFace(
&self,
fontfacetype: DWRITE_FONT_FACE_TYPE,
numberoffiles: u32,
fontfiles: *mut Option<IDWriteFontFile>,
faceindex: u32,
fontfacesimulationflags: DWRITE_FONT_SIMULATIONS
) -> Result<IDWriteFontFace>
pub unsafe fn CreateMonitorRenderingParams<'a>(
&self,
monitor: impl IntoParam<'a, HMONITOR>
) -> 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>(
&self,
fontfileloader: impl IntoParam<'a, IDWriteFontFileLoader>
) -> Result<()>
pub unsafe fn UnregisterFontFileLoader<'a>(
&self,
fontfileloader: impl IntoParam<'a, IDWriteFontFileLoader>
) -> Result<()>
pub unsafe fn CreateTextFormat<'a>(
&self,
fontfamilyname: impl IntoParam<'a, PWSTR>,
fontcollection: impl IntoParam<'a, IDWriteFontCollection>,
fontweight: DWRITE_FONT_WEIGHT,
fontstyle: DWRITE_FONT_STYLE,
fontstretch: DWRITE_FONT_STRETCH,
fontsize: f32,
localename: impl IntoParam<'a, PWSTR>
) -> Result<IDWriteTextFormat>
pub unsafe fn CreateTextLayout<'a>(
&self,
string: impl IntoParam<'a, PWSTR>,
stringlength: u32,
textformat: impl IntoParam<'a, IDWriteTextFormat>,
maxwidth: f32,
maxheight: f32
) -> Result<IDWriteTextLayout>
pub unsafe fn CreateGdiCompatibleTextLayout<'a>(
&self,
string: impl IntoParam<'a, PWSTR>,
stringlength: u32,
textformat: impl IntoParam<'a, IDWriteTextFormat>,
layoutwidth: f32,
layoutheight: f32,
pixelsperdip: f32,
transform: *const DWRITE_MATRIX,
usegdinatural: impl IntoParam<'a, BOOL>
) -> Result<IDWriteTextLayout>
pub unsafe fn CreateEllipsisTrimmingSign<'a>(
&self,
textformat: impl IntoParam<'a, IDWriteTextFormat>
) -> Result<IDWriteInlineObject>
pub unsafe fn CreateNumberSubstitution<'a>(
&self,
substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD,
localename: impl IntoParam<'a, PWSTR>,
ignoreuseroverride: impl IntoParam<'a, BOOL>
) -> 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>(
&self,
fontcollection: *mut Option<IDWriteFontCollection>,
checkforupdates: impl IntoParam<'a, BOOL>
) -> 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 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>(
&self,
filepath: impl IntoParam<'a, PWSTR>,
lastwritetime: *const FILETIME,
faceindex: u32,
fontsimulations: DWRITE_FONT_SIMULATIONS
) -> Result<IDWriteFontFaceReference>
pub unsafe fn CreateFontFaceReference2<'a>(
&self,
fontfile: impl IntoParam<'a, IDWriteFontFile>,
faceindex: u32,
fontsimulations: DWRITE_FONT_SIMULATIONS
) -> Result<IDWriteFontFaceReference>
pub unsafe fn CreateFontCollectionFromFontSet<'a>(
&self,
fontset: impl IntoParam<'a, IDWriteFontSet>
) -> Result<IDWriteFontCollection1>
pub unsafe fn GetSystemFontCollection2<'a>(
&self,
includedownloadablefonts: impl IntoParam<'a, BOOL>,
fontcollection: *mut Option<IDWriteFontCollection1>,
checkforupdates: impl IntoParam<'a, BOOL>
) -> Result<()>
pub unsafe fn TranslateColorGlyphRun2<'a>(
&self,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>,
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>(
&self,
glyphrun: *const DWRITE_GLYPH_RUN,
measuringmode: DWRITE_MEASURING_MODE,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>,
worldanddpitransform: *const DWRITE_MATRIX
) -> Result<D2D_POINT_2F>
pub unsafe fn ComputeGlyphOrigins2<'a>(
&self,
glyphrun: *const DWRITE_GLYPH_RUN,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>
) -> Result<D2D_POINT_2F>
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for IDWriteFactory4
impl !Send for IDWriteFactory4
impl !Sync for IDWriteFactory4
impl Unpin for IDWriteFactory4
impl UnwindSafe for IDWriteFactory4
Blanket Implementations
type DefaultType = Option<T>
Converts from Self::DefaultType
to Result<T>
.
Returns a pointer for setting the object’s value via an ABI call.
Mutably borrows from an owned value. Read more