Struct IDWriteTextAnalyzer2

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

Fields§

§lpVtbl: *const IDWriteTextAnalyzer2Vtbl

Implementations§

Source§

impl IDWriteTextAnalyzer2

Source

pub unsafe fn GetGlyphOrientationTransform( &self, glyphOrientationAngle: DWRITE_GLYPH_ORIENTATION_ANGLE, isSideways: BOOL, originX: FLOAT, originY: FLOAT, transform: *mut DWRITE_MATRIX, ) -> HRESULT

Source

pub unsafe fn GetTypographicFeatures( &self, fontFace: *mut IDWriteFontFace, scriptAnalysis: DWRITE_SCRIPT_ANALYSIS, localeName: *const WCHAR, maxTagCount: UINT32, actualTagCount: *mut UINT32, tags: *mut DWRITE_FONT_FEATURE_TAG, ) -> HRESULT

Source

pub unsafe fn CheckTypographicFeature( &self, fontFace: *mut IDWriteFontFace, scriptAnalysis: DWRITE_SCRIPT_ANALYSIS, localeName: *const WCHAR, featureTag: DWRITE_FONT_FEATURE_TAG, glyphCount: UINT32, glyphIndices: *const UINT16, featureApplies: *mut UINT8, ) -> HRESULT

Methods from Deref<Target = IDWriteTextAnalyzer1>§

Source

pub unsafe fn ApplyCharacterSpacing( &self, leadingSpacing: FLOAT, trailingSpacing: FLOAT, minimumAdvanceWidth: FLOAT, textLength: UINT32, glyphCount: UINT32, clusterMap: *const UINT16, glyphAdvances: *const FLOAT, glyphOffsets: *const DWRITE_GLYPH_OFFSET, glyphProperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, modifiedGlyphAdvances: *mut FLOAT, modifiedGlyphOffsets: *mut DWRITE_GLYPH_OFFSET, ) -> HRESULT

Source

pub unsafe fn GetBaseline( &self, fontFace: *mut IDWriteFontFace, baseline: DWRITE_BASELINE, isVertical: BOOL, isSimulationAllowed: BOOL, scriptAnalysis: DWRITE_SCRIPT_ANALYSIS, localeName: *const WCHAR, baselineCoordinate: *mut INT32, exists: *mut BOOL, ) -> HRESULT

Source

pub unsafe fn AnalyzeVerticalGlyphOrientation( &self, analysisSource: *mut IDWriteTextAnalysisSource1, textPosition: UINT32, textLength: UINT32, analysisSink: *mut IDWriteTextAnalysisSink1, ) -> HRESULT

Source

pub unsafe fn GetGlyphOrientationTransform( &self, glyphOrientationAngle: DWRITE_GLYPH_ORIENTATION_ANGLE, isSideways: BOOL, transform: *mut DWRITE_MATRIX, ) -> HRESULT

Source

pub unsafe fn GetScriptProperties( &self, scriptAnalysis: DWRITE_SCRIPT_ANALYSIS, scriptProperties: *mut DWRITE_SCRIPT_PROPERTIES, ) -> HRESULT

Source

pub unsafe fn GetTextComplexity( &self, textString: *const WCHAR, textLength: UINT32, fontFace: *mut IDWriteFontFace, isTextSimple: *mut BOOL, textLengthRead: *mut UINT32, glyphIndices: *mut UINT16, ) -> HRESULT

Source

pub unsafe fn GetJustificationOpportunities( &self, fontFace: *mut IDWriteFontFace, fontEmSize: FLOAT, scriptAnalysis: DWRITE_SCRIPT_ANALYSIS, textLength: UINT32, glyphCount: UINT32, textString: *const WCHAR, clusterMap: *const UINT16, glyphProperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, justificationOpportunities: *mut DWRITE_JUSTIFICATION_OPPORTUNITY, ) -> HRESULT

Source

pub unsafe fn JustifyGlyphAdvances( &self, lineWidth: FLOAT, glyphCount: UINT32, justificationOpportunities: *const DWRITE_JUSTIFICATION_OPPORTUNITY, glyphAdvances: *const FLOAT, glyphOffsets: *const DWRITE_GLYPH_OFFSET, justifiedGlyphAdvances: *mut FLOAT, justifiedGlyphOffsets: *mut DWRITE_GLYPH_OFFSET, ) -> HRESULT

Source

pub unsafe fn GetJustifiedGlyphs( &self, fontFace: *mut IDWriteFontFace, fontEmSize: FLOAT, scriptAnalysis: DWRITE_SCRIPT_ANALYSIS, textLength: UINT32, glyphCount: UINT32, maxGlyphCount: UINT32, clusterMap: *const UINT16, glyphIndices: *const UINT16, glyphAdvances: *const FLOAT, justifiedGlyphAdvances: *const FLOAT, justifiedGlyphOffsets: *const DWRITE_GLYPH_OFFSET, glyphProperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, actualGlyphCount: *mut UINT32, modifiedClusterMap: *mut UINT16, modifiedGlyphIndices: *mut UINT16, modifiedGlyphAdvances: *mut FLOAT, modifiedGlyphOffsets: *mut DWRITE_GLYPH_OFFSET, ) -> HRESULT

Methods from Deref<Target = IDWriteTextAnalyzer>§

Source

pub unsafe fn AnalyzeScript( &self, analysisSource: *mut IDWriteTextAnalysisSource, textPosition: UINT32, textLength: UINT32, analysisSink: *mut IDWriteTextAnalysisSink, ) -> HRESULT

Source

pub unsafe fn AnalyzeBidi( &self, analysisSource: *mut IDWriteTextAnalysisSource, textPosition: UINT32, textLength: UINT32, analysisSink: *mut IDWriteTextAnalysisSink, ) -> HRESULT

Source

pub unsafe fn AnalyzeNumberSubstitution( &self, analysisSource: *mut IDWriteTextAnalysisSource, textPosition: UINT32, textLength: UINT32, analysisSink: *mut IDWriteTextAnalysisSink, ) -> HRESULT

Source

pub unsafe fn AnalyzeLineBreakpoints( &self, analysisSource: *mut IDWriteTextAnalysisSource, textPosition: UINT32, textLength: UINT32, analysisSink: *mut IDWriteTextAnalysisSink, ) -> HRESULT

Source

pub unsafe fn GetGlyphs( &self, textString: *const WCHAR, textLength: UINT32, fontFace: *mut IDWriteFontFace, isSideways: BOOL, isRightToLeft: BOOL, scriptAnalysis: *const DWRITE_SCRIPT_ANALYSIS, localeName: *const WCHAR, numberSubstitution: *mut IDWriteNumberSubstitution, features: *mut *const DWRITE_TYPOGRAPHIC_FEATURES, featureRangeLengths: *const UINT32, featureRanges: UINT32, maxGlyphCount: UINT32, clusterMap: *mut UINT16, textProps: *mut DWRITE_SHAPING_TEXT_PROPERTIES, glyphIndices: *mut UINT16, glyphProps: *mut DWRITE_SHAPING_GLYPH_PROPERTIES, actualGlyphCount: *mut UINT32, ) -> HRESULT

Source

pub unsafe fn GetGlyphPlacements( &self, textString: *const WCHAR, clusterMap: *const UINT16, textProps: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textLength: UINT32, glyphIndices: *const UINT16, glyphProps: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphCount: UINT32, fontFace: *mut IDWriteFontFace, fontEmSize: FLOAT, isSideways: BOOL, isRightToLeft: BOOL, scriptAnalysis: *const DWRITE_SCRIPT_ANALYSIS, localeName: *const WCHAR, features: *mut *const DWRITE_TYPOGRAPHIC_FEATURES, featureRangeLengths: *const UINT32, featureRanges: UINT32, glyphAdvances: *mut FLOAT, glyphOffsets: *mut DWRITE_GLYPH_OFFSET, ) -> HRESULT

Source

pub unsafe fn GetGdiCompatibleGlyphPlacements( &self, textString: *const WCHAR, clusterMap: *const UINT16, textProps: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textLength: UINT32, glyphIndices: *const UINT16, glyphProps: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphCount: UINT32, fontFace: *mut IDWriteFontFace, fontEmSize: FLOAT, pixelsPerDip: FLOAT, transform: *const DWRITE_MATRIX, useGdiNatrual: BOOL, isSideways: BOOL, isRightToLeft: BOOL, scriptAnalysis: *const DWRITE_SCRIPT_ANALYSIS, localeName: *const WCHAR, features: *mut *const DWRITE_TYPOGRAPHIC_FEATURES, featureRangeLengths: *const UINT32, featureRanges: UINT32, glyphAdvances: *mut FLOAT, glyphOffsets: *mut DWRITE_GLYPH_OFFSET, ) -> 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 IDWriteTextAnalyzer2

Source§

type Target = IDWriteTextAnalyzer1

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IDWriteTextAnalyzer1

Dereferences the value.
Source§

impl Interface for IDWriteTextAnalyzer2

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.