Struct IDWriteFactoryVtbl

Source
#[repr(C)]
pub struct IDWriteFactoryVtbl {
Show 22 fields pub parent: IUnknownVtbl, pub GetSystemFontCollection: unsafe extern "system" fn(This: *mut IDWriteFactory, fontCollection: *mut *mut IDWriteFontCollection, checkForUpdates: BOOL) -> HRESULT, pub CreateCustomFontCollection: unsafe extern "system" fn(This: *mut IDWriteFactory, collectionLoader: *mut IDWriteFontCollectionLoader, collectionKey: *const c_void, collectionKeySize: UINT32, fontCollection: *mut *mut IDWriteFontCollection) -> HRESULT, pub RegisterFontCollectionLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontCollectionLoader: *mut IDWriteFontCollectionLoader) -> HRESULT, pub UnregisterFontCollectionLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontCollectionLoader: *mut IDWriteFontCollectionLoader) -> HRESULT, pub CreateFontFileReference: unsafe extern "system" fn(This: *mut IDWriteFactory, filePath: *const WCHAR, lastWriteTime: *const FILETIME, fontFile: *mut *mut IDWriteFontFile) -> HRESULT, pub CreateCustomFontFileReference: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFileReferenceKey: *const c_void, fontFileReferenceKeySize: UINT32, fontFileLoader: *mut IDWriteFontFileLoader, fontFile: *mut *mut IDWriteFontFile) -> HRESULT, pub CreateFontFace: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFaceType: DWRITE_FONT_FACE_TYPE, numberOfFiles: UINT32, fontFiles: *const *mut IDWriteFontFile, faceIndex: UINT32, fontFaceSimulationFlags: DWRITE_FONT_SIMULATIONS, fontFace: *mut *mut IDWriteFontFace) -> HRESULT, pub CreateRenderingParams: unsafe extern "system" fn(This: *mut IDWriteFactory, renderingParams: *mut *mut IDWriteRenderingParams) -> HRESULT, pub CreateMonitorRenderingParams: unsafe extern "system" fn(This: *mut IDWriteFactory, monitor: HMONITOR, renderingParams: *mut *mut IDWriteRenderingParams) -> HRESULT, pub CreateCustomRenderingParams: unsafe extern "system" fn(This: *mut IDWriteFactory, gamma: FLOAT, enhancedContrast: FLOAT, clearTypeLevel: FLOAT, pixelGeometry: DWRITE_PIXEL_GEOMETRY, renderingMode: DWRITE_RENDERING_MODE, renderingParams: *mut *mut IDWriteRenderingParams) -> HRESULT, pub RegisterFontFileLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFileLoader: *mut IDWriteFontFileLoader) -> HRESULT, pub UnregisterFontFileLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFileLoader: *mut IDWriteFontFileLoader) -> HRESULT, pub CreateTextFormat: unsafe extern "system" fn(This: *mut IDWriteFactory, 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, pub CreateTypography: unsafe extern "system" fn(This: *mut IDWriteFactory, typography: *mut *mut IDWriteTypography) -> HRESULT, pub GetGdiInterop: unsafe extern "system" fn(This: *mut IDWriteFactory, gdiInterop: *mut *mut IDWriteGdiInterop) -> HRESULT, pub CreateTextLayout: unsafe extern "system" fn(This: *mut IDWriteFactory, string: *const WCHAR, stringLength: UINT32, textFormat: *mut IDWriteTextFormat, maxWidth: FLOAT, maxHeight: FLOAT, textLayout: *mut *mut IDWriteTextLayout) -> HRESULT, pub CreateGdiCompatibleTextLayout: unsafe extern "system" fn(This: *mut IDWriteFactory, 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, pub CreateEllipsisTrimmingSign: unsafe extern "system" fn(This: *mut IDWriteFactory, textFormat: *mut IDWriteTextFormat, trimmingSign: *mut *mut IDWriteInlineObject) -> HRESULT, pub CreateTextAnalyzer: unsafe extern "system" fn(This: *mut IDWriteFactory, textAnalyzer: *mut *mut IDWriteTextAnalyzer) -> HRESULT, pub CreateNumberSubstitution: unsafe extern "system" fn(This: *mut IDWriteFactory, substitutionMethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName: *const WCHAR, ignoreUserOverride: BOOL, numberSubstitution: *mut *mut IDWriteNumberSubstitution) -> HRESULT, pub CreateGlyphRunAnalysis: unsafe extern "system" fn(This: *mut IDWriteFactory, 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,
}

Fields§

§parent: IUnknownVtbl§GetSystemFontCollection: unsafe extern "system" fn(This: *mut IDWriteFactory, fontCollection: *mut *mut IDWriteFontCollection, checkForUpdates: BOOL) -> HRESULT§CreateCustomFontCollection: unsafe extern "system" fn(This: *mut IDWriteFactory, collectionLoader: *mut IDWriteFontCollectionLoader, collectionKey: *const c_void, collectionKeySize: UINT32, fontCollection: *mut *mut IDWriteFontCollection) -> HRESULT§RegisterFontCollectionLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontCollectionLoader: *mut IDWriteFontCollectionLoader) -> HRESULT§UnregisterFontCollectionLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontCollectionLoader: *mut IDWriteFontCollectionLoader) -> HRESULT§CreateFontFileReference: unsafe extern "system" fn(This: *mut IDWriteFactory, filePath: *const WCHAR, lastWriteTime: *const FILETIME, fontFile: *mut *mut IDWriteFontFile) -> HRESULT§CreateCustomFontFileReference: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFileReferenceKey: *const c_void, fontFileReferenceKeySize: UINT32, fontFileLoader: *mut IDWriteFontFileLoader, fontFile: *mut *mut IDWriteFontFile) -> HRESULT§CreateFontFace: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFaceType: DWRITE_FONT_FACE_TYPE, numberOfFiles: UINT32, fontFiles: *const *mut IDWriteFontFile, faceIndex: UINT32, fontFaceSimulationFlags: DWRITE_FONT_SIMULATIONS, fontFace: *mut *mut IDWriteFontFace) -> HRESULT§CreateRenderingParams: unsafe extern "system" fn(This: *mut IDWriteFactory, renderingParams: *mut *mut IDWriteRenderingParams) -> HRESULT§CreateMonitorRenderingParams: unsafe extern "system" fn(This: *mut IDWriteFactory, monitor: HMONITOR, renderingParams: *mut *mut IDWriteRenderingParams) -> HRESULT§CreateCustomRenderingParams: unsafe extern "system" fn(This: *mut IDWriteFactory, gamma: FLOAT, enhancedContrast: FLOAT, clearTypeLevel: FLOAT, pixelGeometry: DWRITE_PIXEL_GEOMETRY, renderingMode: DWRITE_RENDERING_MODE, renderingParams: *mut *mut IDWriteRenderingParams) -> HRESULT§RegisterFontFileLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFileLoader: *mut IDWriteFontFileLoader) -> HRESULT§UnregisterFontFileLoader: unsafe extern "system" fn(This: *mut IDWriteFactory, fontFileLoader: *mut IDWriteFontFileLoader) -> HRESULT§CreateTextFormat: unsafe extern "system" fn(This: *mut IDWriteFactory, 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§CreateTypography: unsafe extern "system" fn(This: *mut IDWriteFactory, typography: *mut *mut IDWriteTypography) -> HRESULT§GetGdiInterop: unsafe extern "system" fn(This: *mut IDWriteFactory, gdiInterop: *mut *mut IDWriteGdiInterop) -> HRESULT§CreateTextLayout: unsafe extern "system" fn(This: *mut IDWriteFactory, string: *const WCHAR, stringLength: UINT32, textFormat: *mut IDWriteTextFormat, maxWidth: FLOAT, maxHeight: FLOAT, textLayout: *mut *mut IDWriteTextLayout) -> HRESULT§CreateGdiCompatibleTextLayout: unsafe extern "system" fn(This: *mut IDWriteFactory, 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§CreateEllipsisTrimmingSign: unsafe extern "system" fn(This: *mut IDWriteFactory, textFormat: *mut IDWriteTextFormat, trimmingSign: *mut *mut IDWriteInlineObject) -> HRESULT§CreateTextAnalyzer: unsafe extern "system" fn(This: *mut IDWriteFactory, textAnalyzer: *mut *mut IDWriteTextAnalyzer) -> HRESULT§CreateNumberSubstitution: unsafe extern "system" fn(This: *mut IDWriteFactory, substitutionMethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localeName: *const WCHAR, ignoreUserOverride: BOOL, numberSubstitution: *mut *mut IDWriteNumberSubstitution) -> HRESULT§CreateGlyphRunAnalysis: unsafe extern "system" fn(This: *mut IDWriteFactory, 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

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<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.