Struct IDWriteTextLayout2

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

Fields§

§lpVtbl: *const IDWriteTextLayout2Vtbl

Implementations§

Source§

impl IDWriteTextLayout2

Source

pub unsafe fn GetMetrics( &self, textMetrics: *mut DWRITE_TEXT_METRICS1, ) -> HRESULT

Source

pub unsafe fn SetVerticalGlyphOrientation( &self, glyphOrientation: DWRITE_VERTICAL_GLYPH_ORIENTATION, ) -> HRESULT

Source

pub unsafe fn GetVerticalGlyphOrientation( &self, ) -> DWRITE_VERTICAL_GLYPH_ORIENTATION

Source

pub unsafe fn SetLastLineWrapping( &self, isLastLineWrappingEnabled: BOOL, ) -> HRESULT

Source

pub unsafe fn GetLastLineWrapping(&self) -> BOOL

Source

pub unsafe fn SetOpticalAlignment( &self, opticalAlignment: DWRITE_OPTICAL_ALIGNMENT, ) -> HRESULT

Source

pub unsafe fn GetOpticalAlignment(&self) -> DWRITE_OPTICAL_ALIGNMENT

Source

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

Source

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

Methods from Deref<Target = IDWriteTextLayout1>§

Source

pub unsafe fn SetPairKerning( &self, isPairKerningEnabled: BOOL, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetPairKerning( &self, currentPosition: UINT32, isPairKerningEnabled: *mut BOOL, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetCharacterSpacing( &self, leadingSpacing: FLOAT, trailingSpacing: FLOAT, minimumAdvanceWidth: FLOAT, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetCharacterSpacing( &self, currentPosition: UINT32, leadingSpacing: *mut FLOAT, trailingSpacing: *mut FLOAT, minimumAdvanceWidth: *mut FLOAT, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Methods from Deref<Target = IDWriteTextLayout>§

Source

pub unsafe fn SetMaxWidth(&self, maxWidth: FLOAT) -> HRESULT

Source

pub unsafe fn SetMaxHeight(&self, maxHeight: FLOAT) -> HRESULT

Source

pub unsafe fn SetFontCollection( &self, fontCollection: *mut IDWriteFontCollection, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetFontFamilyName( &self, fontFamilyName: *const WCHAR, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetFontWeight( &self, fontWeight: DWRITE_FONT_WEIGHT, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetFontStyle( &self, fontStyle: DWRITE_FONT_STYLE, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetFontStretch( &self, fontStretch: DWRITE_FONT_STRETCH, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetFontSize( &self, fontSize: FLOAT, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetUnderline( &self, hasUnderline: BOOL, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetStrikethrough( &self, hasStrikethrough: BOOL, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetDrawingEffect( &self, drawingEffect: *mut IUnknown, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn SetInlineObject( &self, inlineObject: *mut IDWriteInlineObject, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

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

Source

pub unsafe fn SetLocaleName( &self, localeName: *const WCHAR, textRange: DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetMaxWidth(&self) -> FLOAT

Source

pub unsafe fn GetMaxHeight(&self) -> FLOAT

Source

pub unsafe fn GetFontCollection( &self, currentPosition: UINT32, fontCollection: *mut *mut IDWriteFontCollection, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetFontFamilyNameLength( &self, currentPosition: UINT32, nameLength: *mut UINT32, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetFontFamilyName( &self, currentPosition: UINT32, fontFamilyName: *mut WCHAR, nameSize: UINT32, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetFontWeight( &self, currentPosition: UINT32, fontWeight: *mut DWRITE_FONT_WEIGHT, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetFontStyle( &self, currentPosition: UINT32, fontStyle: *mut DWRITE_FONT_STYLE, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetFontStretch( &self, currentPosition: UINT32, fontStretch: *mut DWRITE_FONT_STRETCH, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetFontSize( &self, currentPosition: UINT32, fontSize: *mut FLOAT, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetUnderline( &self, currentPosition: UINT32, hasUnderline: *mut BOOL, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetStrikethrough( &self, currentPosition: UINT32, hasStrikethrough: *mut BOOL, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetDrawingEffect( &self, currentPosition: UINT32, drawingEffect: *mut *mut IUnknown, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetInlineObject( &self, currentPosition: UINT32, inlineObject: *mut *mut IDWriteInlineObject, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetTypography( &self, currentPosition: UINT32, typography: *mut *mut IDWriteTypography, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetLocaleNameLength( &self, currentPosition: UINT32, nameLength: *mut UINT32, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn GetLocaleName( &self, currentPosition: UINT32, localeName: *mut WCHAR, nameSize: UINT32, textRange: *mut DWRITE_TEXT_RANGE, ) -> HRESULT

Source

pub unsafe fn Draw( &self, clientDrawingContext: *mut c_void, renderer: *mut IDWriteTextRenderer, originX: FLOAT, originY: FLOAT, ) -> HRESULT

Source

pub unsafe fn GetLineMetrics( &self, lineMetrics: *mut DWRITE_LINE_METRICS, maxLineCount: UINT32, actualLineCount: *mut UINT32, ) -> HRESULT

Source

pub unsafe fn GetMetrics( &self, textMetrics: *mut DWRITE_TEXT_METRICS, ) -> HRESULT

Source

pub unsafe fn GetOverhangMetrics( &self, overhangs: *mut DWRITE_OVERHANG_METRICS, ) -> HRESULT

Source

pub unsafe fn GetClusterMetrics( &self, clusterMetrics: *mut DWRITE_CLUSTER_METRICS, maxClusterCount: UINT32, actualClusterCount: *mut UINT32, ) -> HRESULT

Source

pub unsafe fn DetermineMinWidth(&self, minWidth: *mut FLOAT) -> HRESULT

Source

pub unsafe fn HitTestPoint( &self, pointX: FLOAT, pointY: FLOAT, isTrailingHit: *mut BOOL, isInside: *mut BOOL, hitTestMetrics: *mut DWRITE_HIT_TEST_METRICS, ) -> HRESULT

Source

pub unsafe fn HitTestTextPosition( &self, textPosition: UINT32, isTrailingHit: BOOL, pointX: *mut FLOAT, pointY: *mut FLOAT, hitTestMetrics: *mut DWRITE_HIT_TEST_METRICS, ) -> HRESULT

Source

pub unsafe fn HitTestTextRange( &self, textPosition: UINT32, textLength: UINT32, originX: FLOAT, originY: FLOAT, hitTestMetrics: *mut DWRITE_HIT_TEST_METRICS, maxHitTestMetricsCount: UINT32, actualHitTestMetricsCount: *mut UINT32, ) -> HRESULT

Methods from Deref<Target = IDWriteTextFormat>§

Source

pub unsafe fn SetTextAlignment( &self, textAlignment: DWRITE_TEXT_ALIGNMENT, ) -> HRESULT

Source

pub unsafe fn SetParagraphAlignment( &self, paragraphAlignment: DWRITE_PARAGRAPH_ALIGNMENT, ) -> HRESULT

Source

pub unsafe fn SetWordWrapping( &self, wordWrapping: DWRITE_WORD_WRAPPING, ) -> HRESULT

Source

pub unsafe fn SetReadingDirection( &self, readingDirection: DWRITE_READING_DIRECTION, ) -> HRESULT

Source

pub unsafe fn SetFlowDirection( &self, flowDirection: DWRITE_FLOW_DIRECTION, ) -> HRESULT

Source

pub unsafe fn SetIncrementalTabStop(&self, incrementalTabStop: FLOAT) -> HRESULT

Source

pub unsafe fn SetTrimming( &self, trimmingOptions: *const DWRITE_TRIMMING, trimmingSign: *mut IDWriteInlineObject, ) -> HRESULT

Source

pub unsafe fn SetLineSpacing( &self, lineSpacingMethod: DWRITE_LINE_SPACING_METHOD, lineSpacing: FLOAT, baseLine: FLOAT, ) -> HRESULT

Source

pub unsafe fn GetTextAlignment(&self) -> DWRITE_TEXT_ALIGNMENT

Source

pub unsafe fn GetParagraphAlignment(&self) -> DWRITE_PARAGRAPH_ALIGNMENT

Source

pub unsafe fn GetWordWrapping(&self) -> DWRITE_WORD_WRAPPING

Source

pub unsafe fn GetReadingDirection(&self) -> DWRITE_READING_DIRECTION

Source

pub unsafe fn GetFlowDirection(&self) -> DWRITE_FLOW_DIRECTION

Source

pub unsafe fn GetIncrementalTabStop(&self) -> FLOAT

Source

pub unsafe fn GetTrimming( &self, trimmingOptions: *mut DWRITE_TRIMMING, trimmingSign: *mut *mut IDWriteInlineObject, ) -> HRESULT

Source

pub unsafe fn GetLineSpacing( &self, lineSpacingMethod: *mut DWRITE_LINE_SPACING_METHOD, lineSpacing: *mut FLOAT, baseline: *mut FLOAT, ) -> HRESULT

Source

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

Source

pub unsafe fn GetFontFamilyNameLength(&self) -> UINT32

Source

pub unsafe fn GetFontFamilyName( &self, fontFamilyName: *mut WCHAR, nameSize: UINT32, ) -> HRESULT

Source

pub unsafe fn GetFontWeight(&self) -> DWRITE_FONT_WEIGHT

Source

pub unsafe fn GetFontStyle(&self) -> DWRITE_FONT_STYLE

Source

pub unsafe fn GetFontStretch(&self) -> DWRITE_FONT_STRETCH

Source

pub unsafe fn GetFontSize(&self) -> FLOAT

Source

pub unsafe fn GetLocaleNameLength(&self) -> UINT32

Source

pub unsafe fn GetLocaleName( &self, localeName: *mut WCHAR, nameSize: UINT32, ) -> 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 IDWriteTextLayout2

Source§

type Target = IDWriteTextLayout1

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IDWriteTextLayout1

Dereferences the value.
Source§

impl Interface for IDWriteTextLayout2

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.