Struct mltg_bindings::Windows::Win32::Graphics::DirectWrite::IDWriteFactory [−][src]
#[repr(transparent)]pub struct IDWriteFactory(_);
Implementations
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 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 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 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>
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 IDWriteFactory
impl !Send for IDWriteFactory
impl !Sync for IDWriteFactory
impl Unpin for IDWriteFactory
impl UnwindSafe for IDWriteFactory
Blanket Implementations
Mutably borrows from an owned value. Read more