Struct IDWriteFactory3

Source
#[repr(C)]
pub struct IDWriteFactory3 { pub lpVtbl: *const IDWriteFactory3Vtbl, }

Fields§

§lpVtbl: *const IDWriteFactory3Vtbl

Implementations§

Source§

impl IDWriteFactory3

Source

pub unsafe fn CreateGlyphRunAnalysis( &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: FLOAT, baselineOriginY: FLOAT, glyphRunAnalysis: *mut *mut IDWriteGlyphRunAnalysis, ) -> HRESULT

Source

pub unsafe fn CreateCustomRenderingParams( &self, gamma: FLOAT, enhancedContrast: FLOAT, grayscaleEnhancedContrast: FLOAT, clearTypeLevel: FLOAT, pixelGeometry: DWRITE_PIXEL_GEOMETRY, renderingMode: DWRITE_RENDERING_MODE1, gridFitMode: DWRITE_GRID_FIT_MODE, renderingParams: *mut *mut IDWriteRenderingParams3, ) -> HRESULT

Source

pub unsafe fn CreateFontFaceReference_2( &self, fontFile: *mut IDWriteFontFile, faceIndex: UINT32, fontSimulations: DWRITE_FONT_SIMULATIONS, fontFaceReference: *mut *mut IDWriteFontFaceReference, ) -> HRESULT

Source

pub unsafe fn CreateFontFaceReference_1( &self, filePath: *const WCHAR, lastWriteTime: *const FILETIME, faceIndex: UINT32, fontSimulations: DWRITE_FONT_SIMULATIONS, fontFaceReference: *mut *mut IDWriteFontFaceReference, ) -> HRESULT

Source

pub unsafe fn GetSystemFontSet( &self, fontSet: *mut *mut IDWriteFontSet, ) -> HRESULT

Source

pub unsafe fn CreateFontSetBuilder( &self, fontSetBuilder: *mut *mut IDWriteFontSetBuilder, ) -> HRESULT

Source

pub unsafe fn CreateFontCollectionFromFontSet( &self, fontSet: *mut IDWriteFontSet, fontCollection: *mut *mut IDWriteFontCollection1, ) -> HRESULT

Source

pub unsafe fn GetSystemFontCollection( &self, includeDownloadableFonts: BOOL, fontCollection: *mut *mut IDWriteFontCollection1, checkForUpdates: BOOL, ) -> HRESULT

Source

pub unsafe fn GetFontDownloadQueue( &self, fontDownloadQueue: *mut *mut IDWriteFontDownloadQueue, ) -> HRESULT

Methods from Deref<Target = IDWriteFactory2>§

Source

pub unsafe fn GetSystemFontFallback( &self, fontFallback: *mut *mut IDWriteFontFallback, ) -> HRESULT

Source

pub unsafe fn CreateFontFallbackBuilder( &self, fontFallbackBuilder: *mut *mut IDWriteFontFallbackBuilder, ) -> HRESULT

Source

pub unsafe fn TranslateColorGlyphRun( &self, baselineOriginX: FLOAT, baselineOriginY: FLOAT, glyphRun: *const DWRITE_GLYPH_RUN, glyphRunDescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, measuringMode: DWRITE_MEASURING_MODE, worldToDeviceTransform: *const DWRITE_MATRIX, colorPaletteIndex: UINT32, colorLayers: *mut *mut IDWriteColorGlyphRunEnumerator, ) -> HRESULT

Source

pub unsafe fn CreateCustomRenderingParams( &self, gamma: FLOAT, enhancedContrast: FLOAT, grayscaleEnhancedContrast: FLOAT, clearTypeLevel: FLOAT, pixelGeometry: DWRITE_PIXEL_GEOMETRY, renderingMode: DWRITE_RENDERING_MODE, gridFitMode: DWRITE_GRID_FIT_MODE, renderingParams: *mut *mut IDWriteRenderingParams2, ) -> HRESULT

Source

pub unsafe fn CreateGlyphRunAnalysis( &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: FLOAT, baselineOriginY: FLOAT, glyphRunAnalysis: *mut *mut IDWriteGlyphRunAnalysis, ) -> HRESULT

Methods from Deref<Target = IDWriteFactory1>§

Source

pub unsafe fn GetEudcFontCollection( &self, fontCollection: *mut *mut IDWriteFontCollection, checkForUpdates: BOOL, ) -> HRESULT

Source

pub unsafe fn CreateCustomRenderingParams( &self, gamma: FLOAT, enhancedContrast: FLOAT, enhancedContrastGrayscale: FLOAT, clearTypeLevel: FLOAT, pixelGeometry: DWRITE_PIXEL_GEOMETRY, renderingMode: DWRITE_RENDERING_MODE, renderingParams: *mut *mut IDWriteRenderingParams1, ) -> HRESULT

Methods from Deref<Target = IDWriteFactory>§

Source

pub unsafe fn GetSystemFontCollection( &self, fontCollection: *mut *mut IDWriteFontCollection, checkForUpdates: BOOL, ) -> HRESULT

Source

pub unsafe fn CreateCustomFontCollection( &self, collectionLoader: *mut IDWriteFontCollectionLoader, collectionKey: *const c_void, collectionKeySize: UINT32, fontCollection: *mut *mut IDWriteFontCollection, ) -> HRESULT

Source

pub unsafe fn RegisterFontCollectionLoader( &self, fontCollectionLoader: *mut IDWriteFontCollectionLoader, ) -> HRESULT

Source

pub unsafe fn UnregisterFontCollectionLoader( &self, fontCollectionLoader: *mut IDWriteFontCollectionLoader, ) -> HRESULT

Source

pub unsafe fn CreateFontFileReference( &self, filePath: *const WCHAR, lastWriteTime: *const FILETIME, fontFile: *mut *mut IDWriteFontFile, ) -> HRESULT

Source

pub unsafe fn CreateCustomFontFileReference( &self, fontFileReferenceKey: *const c_void, fontFileReferenceKeySize: UINT32, fontFileLoader: *mut IDWriteFontFileLoader, fontFile: *mut *mut IDWriteFontFile, ) -> HRESULT

Source

pub unsafe fn CreateFontFace( &self, fontFaceType: DWRITE_FONT_FACE_TYPE, numberOfFiles: UINT32, fontFiles: *const *mut IDWriteFontFile, faceIndex: UINT32, fontFaceSimulationFlags: DWRITE_FONT_SIMULATIONS, fontFace: *mut *mut IDWriteFontFace, ) -> HRESULT

Source

pub unsafe fn CreateRenderingParams( &self, renderingParams: *mut *mut IDWriteRenderingParams, ) -> HRESULT

Source

pub unsafe fn CreateMonitorRenderingParams( &self, monitor: HMONITOR, renderingParams: *mut *mut IDWriteRenderingParams, ) -> HRESULT

Source

pub unsafe fn CreateCustomRenderingParams( &self, gamma: FLOAT, enhancedContrast: FLOAT, clearTypeLevel: FLOAT, pixelGeometry: DWRITE_PIXEL_GEOMETRY, renderingMode: DWRITE_RENDERING_MODE, renderingParams: *mut *mut IDWriteRenderingParams, ) -> HRESULT

Source

pub unsafe fn RegisterFontFileLoader( &self, fontFileLoader: *mut IDWriteFontFileLoader, ) -> HRESULT

Source

pub unsafe fn UnregisterFontFileLoader( &self, fontFileLoader: *mut IDWriteFontFileLoader, ) -> HRESULT

Source

pub unsafe fn CreateTextFormat( &self, fontFamilyName: *const WCHAR, fontCollection: *mut IDWriteFontCollection, fontWeight: DWRITE_FONT_WEIGHT, fontStyle: DWRITE_FONT_STYLE, fontStretch: DWRITE_FONT_STRETCH, fontSize: FLOAT, localeName: *const WCHAR, textFormat: *mut *mut IDWriteTextFormat, ) -> HRESULT

Source

pub unsafe fn CreateTypography( &self, typography: *mut *mut IDWriteTypography, ) -> HRESULT

Source

pub unsafe fn GetGdiInterop( &self, gdiInterop: *mut *mut IDWriteGdiInterop, ) -> HRESULT

Source

pub unsafe fn CreateTextLayout( &self, string: *const WCHAR, stringLength: UINT32, textFormat: *mut IDWriteTextFormat, maxWidth: FLOAT, maxHeight: FLOAT, textLayout: *mut *mut IDWriteTextLayout, ) -> HRESULT

Source

pub unsafe fn CreateGdiCompatibleTextLayout( &self, string: *const WCHAR, stringLength: UINT32, textFormat: *mut IDWriteTextFormat, layoutWidth: FLOAT, layoutHeight: FLOAT, pixelsPerDip: FLOAT, transform: *const DWRITE_MATRIX, useGdiNatrual: BOOL, textLayout: *mut *mut IDWriteTextLayout, ) -> HRESULT

Source

pub unsafe fn CreateEllipsisTrimmingSign( &self, textFormat: *mut IDWriteTextFormat, trimmingSign: *mut *mut IDWriteInlineObject, ) -> HRESULT

Source

pub unsafe fn CreateTextAnalyzer( &self, textAnalyzer: *mut *mut IDWriteTextAnalyzer, ) -> HRESULT

Source

pub unsafe fn CreateNumberSubstitution( &self, substitutionMethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName: *const WCHAR, ignoreUserOverride: BOOL, numberSubstitution: *mut *mut IDWriteNumberSubstitution, ) -> HRESULT

Source

pub unsafe fn CreateGlyphRunAnalysis( &self, glyphRun: *const DWRITE_GLYPH_RUN, pixelsPerDip: FLOAT, transform: *const DWRITE_MATRIX, renderingMode: DWRITE_RENDERING_MODE, measuringMode: DWRITE_MEASURING_MODE, baselineOriginX: FLOAT, baselineOriginY: FLOAT, glyphRunAnalysis: *mut *mut IDWriteGlyphRunAnalysis, ) -> HRESULT

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn QueryInterface( &self, riid: REFIID, ppvObject: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn AddRef(&self) -> ULONG

Source

pub unsafe fn Release(&self) -> ULONG

Trait Implementations§

Source§

impl Deref for IDWriteFactory3

Source§

type Target = IDWriteFactory2

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IDWriteFactory2

Dereferences the value.
Source§

impl Interface for IDWriteFactory3

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> 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.