Struct windows::Win32::Graphics::DirectWrite::IDWriteFactory6
pub struct IDWriteFactory6(/* private fields */);
Implementations§
§impl IDWriteFactory6
impl IDWriteFactory6
pub unsafe fn CreateFontFaceReference<P0>(
&self,
fontfile: P0,
faceindex: u32,
fontsimulations: DWRITE_FONT_SIMULATIONS,
fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE],
) -> Result<IDWriteFontFaceReference1>where
P0: Param<IDWriteFontFile>,
pub unsafe fn CreateFontResource<P0>(
&self,
fontfile: P0,
faceindex: u32,
) -> Result<IDWriteFontResource>where
P0: Param<IDWriteFontFile>,
pub unsafe fn GetSystemFontSet<P0>(
&self,
includedownloadablefonts: P0,
) -> Result<IDWriteFontSet1>where
P0: Param<BOOL>,
pub unsafe fn GetSystemFontCollection<P0>(
&self,
includedownloadablefonts: P0,
fontfamilymodel: DWRITE_FONT_FAMILY_MODEL,
) -> Result<IDWriteFontCollection2>where
P0: Param<BOOL>,
pub unsafe fn CreateFontCollectionFromFontSet<P0>(
&self,
fontset: P0,
fontfamilymodel: DWRITE_FONT_FAMILY_MODEL,
) -> Result<IDWriteFontCollection2>where
P0: Param<IDWriteFontSet>,
pub unsafe fn CreateFontSetBuilder(&self) -> Result<IDWriteFontSetBuilder2>
pub unsafe fn CreateTextFormat<P0, P1, P2>(
&self,
fontfamilyname: P0,
fontcollection: P1,
fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE],
fontsize: f32,
localename: P2,
) -> Result<IDWriteTextFormat3>where
P0: Param<PCWSTR>,
P1: Param<IDWriteFontCollection>,
P2: Param<PCWSTR>,
Methods from Deref<Target = IDWriteFactory5>§
pub unsafe fn CreateFontSetBuilder(&self) -> Result<IDWriteFontSetBuilder1>
pub unsafe fn CreateInMemoryFontFileLoader( &self, ) -> Result<IDWriteInMemoryFontFileLoader>
pub unsafe fn CreateHttpFontFileLoader<P0, P1>(
&self,
referrerurl: P0,
extraheaders: P1,
) -> Result<IDWriteRemoteFontFileLoader>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn AnalyzeContainerType( &self, filedata: *const c_void, filedatasize: u32, ) -> DWRITE_CONTAINER_TYPE
pub unsafe fn UnpackFontFile( &self, containertype: DWRITE_CONTAINER_TYPE, filedata: *const c_void, filedatasize: u32, ) -> Result<IDWriteFontFileStream>
Methods from Deref<Target = IDWriteFactory4>§
pub unsafe fn TranslateColorGlyphRun( &self, baselineorigin: D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: Option<*const DWRITE_GLYPH_RUN_DESCRIPTION>, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: Option<*const DWRITE_MATRIX>, colorpaletteindex: u32, ) -> Result<IDWriteColorGlyphRunEnumerator1>
pub unsafe fn ComputeGlyphOrigins( &self, glyphrun: *const DWRITE_GLYPH_RUN, baselineorigin: D2D_POINT_2F, ) -> Result<D2D_POINT_2F>
pub unsafe fn ComputeGlyphOrigins2( &self, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, baselineorigin: D2D_POINT_2F, worldanddpitransform: Option<*const DWRITE_MATRIX>, ) -> Result<D2D_POINT_2F>
Methods from Deref<Target = IDWriteFactory3>§
pub unsafe fn CreateGlyphRunAnalysis( &self, glyphrun: *const DWRITE_GLYPH_RUN, transform: Option<*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 CreateCustomRenderingParams( &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<P0>(
&self,
fontfile: P0,
faceindex: u32,
fontsimulations: DWRITE_FONT_SIMULATIONS,
) -> Result<IDWriteFontFaceReference>where
P0: Param<IDWriteFontFile>,
pub unsafe fn CreateFontFaceReference2<P0>(
&self,
filepath: P0,
lastwritetime: Option<*const FILETIME>,
faceindex: u32,
fontsimulations: DWRITE_FONT_SIMULATIONS,
) -> Result<IDWriteFontFaceReference>where
P0: Param<PCWSTR>,
pub unsafe fn GetSystemFontSet(&self) -> Result<IDWriteFontSet>
pub unsafe fn CreateFontSetBuilder(&self) -> Result<IDWriteFontSetBuilder>
pub unsafe fn CreateFontCollectionFromFontSet<P0>(
&self,
fontset: P0,
) -> Result<IDWriteFontCollection1>where
P0: Param<IDWriteFontSet>,
pub unsafe fn GetSystemFontCollection<P0, P1>( &self, includedownloadablefonts: P0, fontcollection: *mut Option<IDWriteFontCollection1>, checkforupdates: P1, ) -> Result<()>
pub unsafe fn GetFontDownloadQueue(&self) -> Result<IDWriteFontDownloadQueue>
Methods from Deref<Target = IDWriteFactory2>§
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: Option<*const DWRITE_GLYPH_RUN_DESCRIPTION>, measuringmode: DWRITE_MEASURING_MODE, worldtodevicetransform: Option<*const DWRITE_MATRIX>, colorpaletteindex: u32, ) -> Result<IDWriteColorGlyphRunEnumerator>
pub unsafe 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>
pub unsafe fn CreateGlyphRunAnalysis( &self, glyphrun: *const DWRITE_GLYPH_RUN, transform: Option<*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>
Methods from Deref<Target = IDWriteFactory1>§
pub unsafe fn GetEudcFontCollection<P0>(
&self,
fontcollection: *mut Option<IDWriteFontCollection>,
checkforupdates: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn CreateCustomRenderingParams( &self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, ) -> Result<IDWriteRenderingParams1>
Methods from Deref<Target = IDWriteFactory>§
pub unsafe fn GetSystemFontCollection<P0>(
&self,
fontcollection: *mut Option<IDWriteFontCollection>,
checkforupdates: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn CreateCustomFontCollection<P0>(
&self,
collectionloader: P0,
collectionkey: *const c_void,
collectionkeysize: u32,
) -> Result<IDWriteFontCollection>where
P0: Param<IDWriteFontCollectionLoader>,
pub unsafe fn RegisterFontCollectionLoader<P0>(
&self,
fontcollectionloader: P0,
) -> Result<()>where
P0: Param<IDWriteFontCollectionLoader>,
pub unsafe fn UnregisterFontCollectionLoader<P0>(
&self,
fontcollectionloader: P0,
) -> Result<()>where
P0: Param<IDWriteFontCollectionLoader>,
pub unsafe fn CreateFontFileReference<P0>(
&self,
filepath: P0,
lastwritetime: Option<*const FILETIME>,
) -> Result<IDWriteFontFile>where
P0: Param<PCWSTR>,
pub unsafe fn CreateCustomFontFileReference<P0>(
&self,
fontfilereferencekey: *const c_void,
fontfilereferencekeysize: u32,
fontfileloader: P0,
) -> Result<IDWriteFontFile>where
P0: Param<IDWriteFontFileLoader>,
pub unsafe fn CreateFontFace( &self, fontfacetype: DWRITE_FONT_FACE_TYPE, fontfiles: &[Option<IDWriteFontFile>], faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS, ) -> Result<IDWriteFontFace>
pub unsafe fn CreateRenderingParams(&self) -> Result<IDWriteRenderingParams>
pub unsafe fn CreateMonitorRenderingParams<P0>(
&self,
monitor: P0,
) -> Result<IDWriteRenderingParams>where
P0: Param<HMONITOR>,
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<P0>(
&self,
fontfileloader: P0,
) -> Result<()>where
P0: Param<IDWriteFontFileLoader>,
pub unsafe fn UnregisterFontFileLoader<P0>(
&self,
fontfileloader: P0,
) -> Result<()>where
P0: Param<IDWriteFontFileLoader>,
pub unsafe fn CreateTextFormat<P0, P1, P2>(
&self,
fontfamilyname: P0,
fontcollection: P1,
fontweight: DWRITE_FONT_WEIGHT,
fontstyle: DWRITE_FONT_STYLE,
fontstretch: DWRITE_FONT_STRETCH,
fontsize: f32,
localename: P2,
) -> Result<IDWriteTextFormat>where
P0: Param<PCWSTR>,
P1: Param<IDWriteFontCollection>,
P2: Param<PCWSTR>,
pub unsafe fn CreateTypography(&self) -> Result<IDWriteTypography>
pub unsafe fn GetGdiInterop(&self) -> Result<IDWriteGdiInterop>
pub unsafe fn CreateTextLayout<P0>(
&self,
string: &[u16],
textformat: P0,
maxwidth: f32,
maxheight: f32,
) -> Result<IDWriteTextLayout>where
P0: Param<IDWriteTextFormat>,
pub unsafe fn CreateGdiCompatibleTextLayout<P0, P1>(
&self,
string: &[u16],
textformat: P0,
layoutwidth: f32,
layoutheight: f32,
pixelsperdip: f32,
transform: Option<*const DWRITE_MATRIX>,
usegdinatural: P1,
) -> Result<IDWriteTextLayout>where
P0: Param<IDWriteTextFormat>,
P1: Param<BOOL>,
pub unsafe fn CreateEllipsisTrimmingSign<P0>(
&self,
textformat: P0,
) -> Result<IDWriteInlineObject>where
P0: Param<IDWriteTextFormat>,
pub unsafe fn CreateTextAnalyzer(&self) -> Result<IDWriteTextAnalyzer>
pub unsafe fn CreateNumberSubstitution<P0, P1>(
&self,
substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD,
localename: P0,
ignoreuseroverride: P1,
) -> Result<IDWriteNumberSubstitution>where
P0: Param<PCWSTR>,
P1: Param<BOOL>,
pub unsafe fn CreateGlyphRunAnalysis( &self, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32, ) -> Result<IDWriteGlyphRunAnalysis>
Trait Implementations§
§impl CanInto<IDWriteFactory> for IDWriteFactory6
impl CanInto<IDWriteFactory> for IDWriteFactory6
§impl CanInto<IDWriteFactory1> for IDWriteFactory6
impl CanInto<IDWriteFactory1> for IDWriteFactory6
§impl CanInto<IDWriteFactory2> for IDWriteFactory6
impl CanInto<IDWriteFactory2> for IDWriteFactory6
§impl CanInto<IDWriteFactory3> for IDWriteFactory6
impl CanInto<IDWriteFactory3> for IDWriteFactory6
§impl CanInto<IDWriteFactory4> for IDWriteFactory6
impl CanInto<IDWriteFactory4> for IDWriteFactory6
§impl CanInto<IDWriteFactory5> for IDWriteFactory6
impl CanInto<IDWriteFactory5> for IDWriteFactory6
§impl CanInto<IDWriteFactory6> for IDWriteFactory7
impl CanInto<IDWriteFactory6> for IDWriteFactory7
§impl CanInto<IDWriteFactory6> for IDWriteFactory8
impl CanInto<IDWriteFactory6> for IDWriteFactory8
§impl CanInto<IUnknown> for IDWriteFactory6
impl CanInto<IUnknown> for IDWriteFactory6
§impl Clone for IDWriteFactory6
impl Clone for IDWriteFactory6
§fn clone(&self) -> IDWriteFactory6
fn clone(&self) -> IDWriteFactory6
Returns a copy 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 more§impl Debug for IDWriteFactory6
impl Debug for IDWriteFactory6
§impl Deref for IDWriteFactory6
impl Deref for IDWriteFactory6
§impl From<&IDWriteFactory6> for &IDWriteFactory
impl From<&IDWriteFactory6> for &IDWriteFactory
§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory6> for &IDWriteFactory1
impl From<&IDWriteFactory6> for &IDWriteFactory1
§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory6> for &IDWriteFactory2
impl From<&IDWriteFactory6> for &IDWriteFactory2
§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory6> for &IDWriteFactory3
impl From<&IDWriteFactory6> for &IDWriteFactory3
§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory6> for &IDWriteFactory4
impl From<&IDWriteFactory6> for &IDWriteFactory4
§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory6> for &IDWriteFactory5
impl From<&IDWriteFactory6> for &IDWriteFactory5
§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory6> for &IUnknown
impl From<&IDWriteFactory6> for &IUnknown
§fn from(value: &IDWriteFactory6) -> Self
fn from(value: &IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory7> for &IDWriteFactory6
impl From<&IDWriteFactory7> for &IDWriteFactory6
§fn from(value: &IDWriteFactory7) -> Self
fn from(value: &IDWriteFactory7) -> Self
Converts to this type from the input type.
§impl From<&IDWriteFactory8> for &IDWriteFactory6
impl From<&IDWriteFactory8> for &IDWriteFactory6
§fn from(value: &IDWriteFactory8) -> Self
fn from(value: &IDWriteFactory8) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory6> for IDWriteFactory
impl From<IDWriteFactory6> for IDWriteFactory
§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory6> for IDWriteFactory1
impl From<IDWriteFactory6> for IDWriteFactory1
§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory6> for IDWriteFactory2
impl From<IDWriteFactory6> for IDWriteFactory2
§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory6> for IDWriteFactory3
impl From<IDWriteFactory6> for IDWriteFactory3
§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory6> for IDWriteFactory4
impl From<IDWriteFactory6> for IDWriteFactory4
§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory6> for IDWriteFactory5
impl From<IDWriteFactory6> for IDWriteFactory5
§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory6> for IUnknown
impl From<IDWriteFactory6> for IUnknown
§fn from(value: IDWriteFactory6) -> Self
fn from(value: IDWriteFactory6) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory7> for IDWriteFactory6
impl From<IDWriteFactory7> for IDWriteFactory6
§fn from(value: IDWriteFactory7) -> Self
fn from(value: IDWriteFactory7) -> Self
Converts to this type from the input type.
§impl From<IDWriteFactory8> for IDWriteFactory6
impl From<IDWriteFactory8> for IDWriteFactory6
§fn from(value: IDWriteFactory8) -> Self
fn from(value: IDWriteFactory8) -> Self
Converts to this type from the input type.
§impl Interface for IDWriteFactory6
impl Interface for IDWriteFactory6
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IDWriteFactory6
impl PartialEq for IDWriteFactory6
§fn eq(&self, other: &IDWriteFactory6) -> bool
fn eq(&self, other: &IDWriteFactory6) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDWriteFactory6
impl Send for IDWriteFactory6
impl StructuralPartialEq for IDWriteFactory6
impl Sync for IDWriteFactory6
Auto Trait Implementations§
impl Freeze for IDWriteFactory6
impl RefUnwindSafe for IDWriteFactory6
impl Unpin for IDWriteFactory6
impl UnwindSafe for IDWriteFactory6
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)