IDWriteFactory7

Struct IDWriteFactory7 

Source
pub struct IDWriteFactory7(/* private fields */);

Implementations§

Source§

impl IDWriteFactory7

Source

pub unsafe fn GetSystemFontCollection<'a, Param1: IntoParam<'a, BOOL>>( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: Param1, ) -> Result<()>

Source

pub unsafe fn CreateCustomFontCollection<'a, Param0: IntoParam<'a, IDWriteFontCollectionLoader>>( &self, collectionloader: Param0, collectionkey: *const c_void, collectionkeysize: u32, ) -> Result<IDWriteFontCollection>

Source

pub unsafe fn RegisterFontCollectionLoader<'a, Param0: IntoParam<'a, IDWriteFontCollectionLoader>>( &self, fontcollectionloader: Param0, ) -> Result<()>

Source

pub unsafe fn UnregisterFontCollectionLoader<'a, Param0: IntoParam<'a, IDWriteFontCollectionLoader>>( &self, fontcollectionloader: Param0, ) -> Result<()>

Source

pub unsafe fn CreateFontFileReference<'a, Param0: IntoParam<'a, PWSTR>>( &self, filepath: Param0, lastwritetime: *const FILETIME, ) -> Result<IDWriteFontFile>

Source

pub unsafe fn CreateCustomFontFileReference<'a, Param2: IntoParam<'a, IDWriteFontFileLoader>>( &self, fontfilereferencekey: *const c_void, fontfilereferencekeysize: u32, fontfileloader: Param2, ) -> Result<IDWriteFontFile>

Source

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

Source

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

Source

pub unsafe fn CreateMonitorRenderingParams<'a, Param0: IntoParam<'a, HMONITOR>>( &self, monitor: Param0, ) -> Result<IDWriteRenderingParams>

Source

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

Source

pub unsafe fn RegisterFontFileLoader<'a, Param0: IntoParam<'a, IDWriteFontFileLoader>>( &self, fontfileloader: Param0, ) -> Result<()>

Source

pub unsafe fn UnregisterFontFileLoader<'a, Param0: IntoParam<'a, IDWriteFontFileLoader>>( &self, fontfileloader: Param0, ) -> Result<()>

Source

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>

Source

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

Source

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

Source

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>

Source

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>

Source

pub unsafe fn CreateEllipsisTrimmingSign<'a, Param0: IntoParam<'a, IDWriteTextFormat>>( &self, textformat: Param0, ) -> Result<IDWriteInlineObject>

Source

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

Source

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>

Source

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>

Source

pub unsafe fn GetEudcFontCollection<'a, Param1: IntoParam<'a, BOOL>>( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: Param1, ) -> Result<()>

Source

pub unsafe fn CreateCustomRenderingParams2( &self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, ) -> Result<IDWriteRenderingParams1>

Source

pub unsafe fn GetSystemFontFallback(&self) -> Result<IDWriteFontFallback>

Source

pub unsafe fn CreateFontFallbackBuilder( &self, ) -> Result<IDWriteFontFallbackBuilder>

Source

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>

Source

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>

Source

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>

Source

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>

Source

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>

Source

pub unsafe fn CreateFontFaceReference<'a, Param0: IntoParam<'a, PWSTR>>( &self, filepath: Param0, lastwritetime: *const FILETIME, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, ) -> Result<IDWriteFontFaceReference>

Source

pub unsafe fn CreateFontFaceReference2<'a, Param0: IntoParam<'a, IDWriteFontFile>>( &self, fontfile: Param0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, ) -> Result<IDWriteFontFaceReference>

Source

pub unsafe fn GetSystemFontSet(&self) -> Result<IDWriteFontSet>

Source

pub unsafe fn CreateFontSetBuilder(&self) -> Result<IDWriteFontSetBuilder>

Source

pub unsafe fn CreateFontCollectionFromFontSet<'a, Param0: IntoParam<'a, IDWriteFontSet>>( &self, fontset: Param0, ) -> Result<IDWriteFontCollection1>

Source

pub unsafe fn GetSystemFontCollection2<'a, Param0: IntoParam<'a, BOOL>, Param2: IntoParam<'a, BOOL>>( &self, includedownloadablefonts: Param0, fontcollection: *mut Option<IDWriteFontCollection1>, checkforupdates: Param2, ) -> Result<()>

Source

pub unsafe fn GetFontDownloadQueue(&self) -> Result<IDWriteFontDownloadQueue>

Source

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>

Source

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>

Source

pub unsafe fn ComputeGlyphOrigins2<'a, Param1: IntoParam<'a, D2D_POINT_2F>>( &self, glyphrun: *const DWRITE_GLYPH_RUN, baselineorigin: Param1, ) -> Result<D2D_POINT_2F>

Source

pub unsafe fn CreateFontSetBuilder2(&self) -> Result<IDWriteFontSetBuilder1>

Source

pub unsafe fn CreateInMemoryFontFileLoader( &self, ) -> Result<IDWriteInMemoryFontFileLoader>

Source

pub unsafe fn CreateHttpFontFileLoader<'a, Param0: IntoParam<'a, PWSTR>, Param1: IntoParam<'a, PWSTR>>( &self, referrerurl: Param0, extraheaders: Param1, ) -> Result<IDWriteRemoteFontFileLoader>

Source

pub unsafe fn AnalyzeContainerType( &self, filedata: *const c_void, filedatasize: u32, ) -> DWRITE_CONTAINER_TYPE

Source

pub unsafe fn UnpackFontFile( &self, containertype: DWRITE_CONTAINER_TYPE, filedata: *const c_void, filedatasize: u32, ) -> Result<IDWriteFontFileStream>

Source

pub unsafe fn CreateFontFaceReference3<'a, Param0: IntoParam<'a, IDWriteFontFile>>( &self, fontfile: Param0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, ) -> Result<IDWriteFontFaceReference1>

Source

pub unsafe fn CreateFontResource<'a, Param0: IntoParam<'a, IDWriteFontFile>>( &self, fontfile: Param0, faceindex: u32, ) -> Result<IDWriteFontResource>

Source

pub unsafe fn GetSystemFontSet2<'a, Param0: IntoParam<'a, BOOL>>( &self, includedownloadablefonts: Param0, ) -> Result<IDWriteFontSet1>

Source

pub unsafe fn GetSystemFontCollection3<'a, Param0: IntoParam<'a, BOOL>>( &self, includedownloadablefonts: Param0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, ) -> Result<IDWriteFontCollection2>

Source

pub unsafe fn CreateFontCollectionFromFontSet2<'a, Param0: IntoParam<'a, IDWriteFontSet>>( &self, fontset: Param0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, ) -> Result<IDWriteFontCollection2>

Source

pub unsafe fn CreateFontSetBuilder3(&self) -> Result<IDWriteFontSetBuilder2>

Source

pub unsafe fn CreateTextFormat2<'a, Param0: IntoParam<'a, PWSTR>, Param1: IntoParam<'a, IDWriteFontCollection>, Param5: IntoParam<'a, PWSTR>>( &self, fontfamilyname: Param0, fontcollection: Param1, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontsize: f32, localename: Param5, ) -> Result<IDWriteTextFormat3>

Source

pub unsafe fn GetSystemFontSet3<'a, Param0: IntoParam<'a, BOOL>>( &self, includedownloadablefonts: Param0, ) -> Result<IDWriteFontSet2>

Source

pub unsafe fn GetSystemFontCollection4<'a, Param0: IntoParam<'a, BOOL>>( &self, includedownloadablefonts: Param0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, ) -> Result<IDWriteFontCollection3>

Trait Implementations§

Source§

impl Clone for IDWriteFactory7

Source§

fn clone(&self) -> IDWriteFactory7

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IDWriteFactory7

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&IDWriteFactory7> for IDWriteFactory

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<&IDWriteFactory7> for IDWriteFactory1

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<&IDWriteFactory7> for IDWriteFactory2

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<&IDWriteFactory7> for IDWriteFactory3

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<&IDWriteFactory7> for IDWriteFactory4

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<&IDWriteFactory7> for IDWriteFactory5

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<&IDWriteFactory7> for IDWriteFactory6

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<&IDWriteFactory7> for IUnknown

Source§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IDWriteFactory

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IDWriteFactory1

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IDWriteFactory2

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IDWriteFactory3

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IDWriteFactory4

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IDWriteFactory5

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IDWriteFactory6

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl From<IDWriteFactory7> for IUnknown

Source§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
Source§

impl Interface for IDWriteFactory7

Source§

const IID: Guid

A unique identifier representing this interface.
Source§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. The name cast is preferred to query because there is a WinRT method named query but not one named cast.
Source§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a Weak reference to this object.
Source§

impl PartialEq for IDWriteFactory7

Source§

fn eq(&self, other: &IDWriteFactory7) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for IDWriteFactory7

Source§

impl StructuralPartialEq for IDWriteFactory7

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.