Trait windows::Win32::Graphics::DirectWrite::IDWriteTextFormat_Impl
pub trait IDWriteTextFormat_Impl: Sized {
Show 25 methods
// Required methods
fn SetTextAlignment(
&self,
textalignment: DWRITE_TEXT_ALIGNMENT,
) -> Result<()>;
fn SetParagraphAlignment(
&self,
paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT,
) -> Result<()>;
fn SetWordWrapping(&self, wordwrapping: DWRITE_WORD_WRAPPING) -> Result<()>;
fn SetReadingDirection(
&self,
readingdirection: DWRITE_READING_DIRECTION,
) -> Result<()>;
fn SetFlowDirection(
&self,
flowdirection: DWRITE_FLOW_DIRECTION,
) -> Result<()>;
fn SetIncrementalTabStop(&self, incrementaltabstop: f32) -> Result<()>;
fn SetTrimming(
&self,
trimmingoptions: *const DWRITE_TRIMMING,
trimmingsign: Option<&IDWriteInlineObject>,
) -> Result<()>;
fn SetLineSpacing(
&self,
linespacingmethod: DWRITE_LINE_SPACING_METHOD,
linespacing: f32,
baseline: f32,
) -> Result<()>;
fn GetTextAlignment(&self) -> DWRITE_TEXT_ALIGNMENT;
fn GetParagraphAlignment(&self) -> DWRITE_PARAGRAPH_ALIGNMENT;
fn GetWordWrapping(&self) -> DWRITE_WORD_WRAPPING;
fn GetReadingDirection(&self) -> DWRITE_READING_DIRECTION;
fn GetFlowDirection(&self) -> DWRITE_FLOW_DIRECTION;
fn GetIncrementalTabStop(&self) -> f32;
fn GetTrimming(
&self,
trimmingoptions: *mut DWRITE_TRIMMING,
trimmingsign: *mut Option<IDWriteInlineObject>,
) -> Result<()>;
fn GetLineSpacing(
&self,
linespacingmethod: *mut DWRITE_LINE_SPACING_METHOD,
linespacing: *mut f32,
baseline: *mut f32,
) -> Result<()>;
fn GetFontCollection(&self) -> Result<IDWriteFontCollection>;
fn GetFontFamilyNameLength(&self) -> u32;
fn GetFontFamilyName(
&self,
fontfamilyname: PWSTR,
namesize: u32,
) -> Result<()>;
fn GetFontWeight(&self) -> DWRITE_FONT_WEIGHT;
fn GetFontStyle(&self) -> DWRITE_FONT_STYLE;
fn GetFontStretch(&self) -> DWRITE_FONT_STRETCH;
fn GetFontSize(&self) -> f32;
fn GetLocaleNameLength(&self) -> u32;
fn GetLocaleName(&self, localename: PWSTR, namesize: u32) -> Result<()>;
}
Required Methods§
fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> Result<()>
fn SetParagraphAlignment( &self, paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT, ) -> Result<()>
fn SetWordWrapping(&self, wordwrapping: DWRITE_WORD_WRAPPING) -> Result<()>
fn SetReadingDirection( &self, readingdirection: DWRITE_READING_DIRECTION, ) -> Result<()>
fn SetFlowDirection(&self, flowdirection: DWRITE_FLOW_DIRECTION) -> Result<()>
fn SetIncrementalTabStop(&self, incrementaltabstop: f32) -> Result<()>
fn SetTrimming( &self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: Option<&IDWriteInlineObject>, ) -> Result<()>
fn SetLineSpacing( &self, linespacingmethod: DWRITE_LINE_SPACING_METHOD, linespacing: f32, baseline: f32, ) -> Result<()>
fn GetTextAlignment(&self) -> DWRITE_TEXT_ALIGNMENT
fn GetParagraphAlignment(&self) -> DWRITE_PARAGRAPH_ALIGNMENT
fn GetWordWrapping(&self) -> DWRITE_WORD_WRAPPING
fn GetReadingDirection(&self) -> DWRITE_READING_DIRECTION
fn GetFlowDirection(&self) -> DWRITE_FLOW_DIRECTION
fn GetIncrementalTabStop(&self) -> f32
fn GetTrimming( &self, trimmingoptions: *mut DWRITE_TRIMMING, trimmingsign: *mut Option<IDWriteInlineObject>, ) -> Result<()>
fn GetLineSpacing( &self, linespacingmethod: *mut DWRITE_LINE_SPACING_METHOD, linespacing: *mut f32, baseline: *mut f32, ) -> Result<()>
fn GetFontCollection(&self) -> Result<IDWriteFontCollection>
fn GetFontFamilyNameLength(&self) -> u32
fn GetFontFamilyName(&self, fontfamilyname: PWSTR, namesize: u32) -> Result<()>
fn GetFontWeight(&self) -> DWRITE_FONT_WEIGHT
fn GetFontStyle(&self) -> DWRITE_FONT_STYLE
fn GetFontStretch(&self) -> DWRITE_FONT_STRETCH
fn GetFontSize(&self) -> f32
fn GetLocaleNameLength(&self) -> u32
fn GetLocaleName(&self, localename: PWSTR, namesize: u32) -> Result<()>
Object Safety§
This trait is not object safe.