windows::Win32::Graphics::DirectWrite

Trait IDWriteTextLayout_Impl

pub trait IDWriteTextLayout_Impl: IDWriteTextFormat_Impl {
Show 39 methods // Required methods fn SetMaxWidth(&self, maxwidth: f32) -> Result<()>; fn SetMaxHeight(&self, maxheight: f32) -> Result<()>; fn SetFontCollection( &self, fontcollection: Ref<'_, IDWriteFontCollection>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetFontFamilyName( &self, fontfamilyname: &PCWSTR, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetFontWeight( &self, fontweight: DWRITE_FONT_WEIGHT, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetFontStyle( &self, fontstyle: DWRITE_FONT_STYLE, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetFontStretch( &self, fontstretch: DWRITE_FONT_STRETCH, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetFontSize( &self, fontsize: f32, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetUnderline( &self, hasunderline: BOOL, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetStrikethrough( &self, hasstrikethrough: BOOL, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetDrawingEffect( &self, drawingeffect: Ref<'_, IUnknown>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetInlineObject( &self, inlineobject: Ref<'_, IDWriteInlineObject>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetTypography( &self, typography: Ref<'_, IDWriteTypography>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn SetLocaleName( &self, localename: &PCWSTR, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetMaxWidth(&self) -> f32; fn GetMaxHeight(&self) -> f32; fn GetFontCollection( &self, currentposition: u32, fontcollection: OutRef<'_, IDWriteFontCollection>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetFontFamilyNameLength( &self, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetFontFamilyName( &self, currentposition: u32, fontfamilyname: PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetFontWeight( &self, currentposition: u32, fontweight: *mut DWRITE_FONT_WEIGHT, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetFontStyle( &self, currentposition: u32, fontstyle: *mut DWRITE_FONT_STYLE, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetFontStretch( &self, currentposition: u32, fontstretch: *mut DWRITE_FONT_STRETCH, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetFontSize( &self, currentposition: u32, fontsize: *mut f32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetUnderline( &self, currentposition: u32, hasunderline: *mut BOOL, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetStrikethrough( &self, currentposition: u32, hasstrikethrough: *mut BOOL, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetDrawingEffect( &self, currentposition: u32, drawingeffect: OutRef<'_, IUnknown>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetInlineObject( &self, currentposition: u32, inlineobject: OutRef<'_, IDWriteInlineObject>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetTypography( &self, currentposition: u32, typography: OutRef<'_, IDWriteTypography>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetLocaleNameLength( &self, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn GetLocaleName( &self, currentposition: u32, localename: PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>; fn Draw( &self, clientdrawingcontext: *const c_void, renderer: Ref<'_, IDWriteTextRenderer>, originx: f32, originy: f32, ) -> Result<()>; fn GetLineMetrics( &self, linemetrics: *mut DWRITE_LINE_METRICS, maxlinecount: u32, actuallinecount: *mut u32, ) -> Result<()>; fn GetMetrics(&self, textmetrics: *mut DWRITE_TEXT_METRICS) -> Result<()>; fn GetOverhangMetrics(&self) -> Result<DWRITE_OVERHANG_METRICS>; fn GetClusterMetrics( &self, clustermetrics: *mut DWRITE_CLUSTER_METRICS, maxclustercount: u32, actualclustercount: *mut u32, ) -> Result<()>; fn DetermineMinWidth(&self) -> Result<f32>; fn HitTestPoint( &self, pointx: f32, pointy: f32, istrailinghit: *mut BOOL, isinside: *mut BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, ) -> Result<()>; fn HitTestTextPosition( &self, textposition: u32, istrailinghit: BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, ) -> Result<()>; fn HitTestTextRange( &self, textposition: u32, textlength: u32, originx: f32, originy: f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, maxhittestmetricscount: u32, actualhittestmetricscount: *mut u32, ) -> Result<()>;
}

Required Methods§

fn SetMaxWidth(&self, maxwidth: f32) -> Result<()>

fn SetMaxHeight(&self, maxheight: f32) -> Result<()>

fn SetFontCollection( &self, fontcollection: Ref<'_, IDWriteFontCollection>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetFontFamilyName( &self, fontfamilyname: &PCWSTR, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetFontWeight( &self, fontweight: DWRITE_FONT_WEIGHT, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetFontStyle( &self, fontstyle: DWRITE_FONT_STYLE, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetFontStretch( &self, fontstretch: DWRITE_FONT_STRETCH, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetFontSize( &self, fontsize: f32, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetUnderline( &self, hasunderline: BOOL, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetStrikethrough( &self, hasstrikethrough: BOOL, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetDrawingEffect( &self, drawingeffect: Ref<'_, IUnknown>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetInlineObject( &self, inlineobject: Ref<'_, IDWriteInlineObject>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetTypography( &self, typography: Ref<'_, IDWriteTypography>, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn SetLocaleName( &self, localename: &PCWSTR, textrange: &DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetMaxWidth(&self) -> f32

fn GetMaxHeight(&self) -> f32

fn GetFontCollection( &self, currentposition: u32, fontcollection: OutRef<'_, IDWriteFontCollection>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetFontFamilyNameLength( &self, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetFontFamilyName( &self, currentposition: u32, fontfamilyname: PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetFontWeight( &self, currentposition: u32, fontweight: *mut DWRITE_FONT_WEIGHT, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetFontStyle( &self, currentposition: u32, fontstyle: *mut DWRITE_FONT_STYLE, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetFontStretch( &self, currentposition: u32, fontstretch: *mut DWRITE_FONT_STRETCH, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetFontSize( &self, currentposition: u32, fontsize: *mut f32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetUnderline( &self, currentposition: u32, hasunderline: *mut BOOL, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetStrikethrough( &self, currentposition: u32, hasstrikethrough: *mut BOOL, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetDrawingEffect( &self, currentposition: u32, drawingeffect: OutRef<'_, IUnknown>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetInlineObject( &self, currentposition: u32, inlineobject: OutRef<'_, IDWriteInlineObject>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetTypography( &self, currentposition: u32, typography: OutRef<'_, IDWriteTypography>, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetLocaleNameLength( &self, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn GetLocaleName( &self, currentposition: u32, localename: PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE, ) -> Result<()>

fn Draw( &self, clientdrawingcontext: *const c_void, renderer: Ref<'_, IDWriteTextRenderer>, originx: f32, originy: f32, ) -> Result<()>

fn GetLineMetrics( &self, linemetrics: *mut DWRITE_LINE_METRICS, maxlinecount: u32, actuallinecount: *mut u32, ) -> Result<()>

fn GetMetrics(&self, textmetrics: *mut DWRITE_TEXT_METRICS) -> Result<()>

fn GetOverhangMetrics(&self) -> Result<DWRITE_OVERHANG_METRICS>

fn GetClusterMetrics( &self, clustermetrics: *mut DWRITE_CLUSTER_METRICS, maxclustercount: u32, actualclustercount: *mut u32, ) -> Result<()>

fn DetermineMinWidth(&self) -> Result<f32>

fn HitTestPoint( &self, pointx: f32, pointy: f32, istrailinghit: *mut BOOL, isinside: *mut BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, ) -> Result<()>

fn HitTestTextPosition( &self, textposition: u32, istrailinghit: BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, ) -> Result<()>

fn HitTestTextRange( &self, textposition: u32, textlength: u32, originx: f32, originy: f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, maxhittestmetricscount: u32, actualhittestmetricscount: *mut u32, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§