pub trait IDWriteTextLayout_Impl: Sized + IDWriteTextFormat_Impl {
Show 39 methods // Required methods fn SetMaxWidth(&self, maxwidth: f32) -> Result<()>; fn SetMaxHeight(&self, maxheight: f32) -> Result<()>; fn SetFontCollection( &self, fontcollection: Option<&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: Option<&IUnknown>, textrange: &DWRITE_TEXT_RANGE ) -> Result<()>; fn SetInlineObject( &self, inlineobject: Option<&IDWriteInlineObject>, textrange: &DWRITE_TEXT_RANGE ) -> Result<()>; fn SetTypography( &self, typography: Option<&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 GetFontCollection2( &self, currentposition: u32, fontcollection: *mut Option<IDWriteFontCollection>, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetFontFamilyNameLength2( &self, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetFontFamilyName2( &self, currentposition: u32, fontfamilyname: PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetFontWeight2( &self, currentposition: u32, fontweight: *mut DWRITE_FONT_WEIGHT, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetFontStyle2( &self, currentposition: u32, fontstyle: *mut DWRITE_FONT_STYLE, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetFontStretch2( &self, currentposition: u32, fontstretch: *mut DWRITE_FONT_STRETCH, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetFontSize2( &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: *mut Option<IUnknown>, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetInlineObject( &self, currentposition: u32, inlineobject: *mut Option<IDWriteInlineObject>, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetTypography( &self, currentposition: u32, typography: *mut Option<IDWriteTypography>, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetLocaleNameLength2( &self, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn GetLocaleName2( &self, currentposition: u32, localename: PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>; fn Draw( &self, clientdrawingcontext: *const c_void, renderer: Option<&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: Option<&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: Option<&IUnknown>, textrange: &DWRITE_TEXT_RANGE ) -> Result<()>

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

fn SetTypography( &self, typography: Option<&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 GetFontCollection2( &self, currentposition: u32, fontcollection: *mut Option<IDWriteFontCollection>, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>

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

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

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

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

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

fn GetFontSize2( &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: *mut Option<IUnknown>, textrange: *mut DWRITE_TEXT_RANGE ) -> Result<()>

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

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

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

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

fn Draw( &self, clientdrawingcontext: *const c_void, renderer: Option<&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<()>

Object Safety§

This trait is not object safe.

Implementors§