[][src]Trait dxplr::dwrite::ITextFormat

pub trait ITextFormat: Interface {
    fn get_flow_direction(&self) -> FlowDirection;
fn get_font_collection(&self) -> Result<FontCollection, HResult>;
fn get_font_family_name(&self) -> Result<String, HResult>;
fn get_font_family_name_length(&self) -> u32;
fn get_font_size(&self) -> f32;
fn get_font_stretch(&self) -> FontStretch;
fn get_font_style(&self) -> FontStyle;
fn get_font_weight(&self) -> FontWeight;
fn get_incremental_tab_stop(&self) -> f32;
fn get_line_spacing(&self) -> Result<GetLineSpacingResult, HResult>;
fn get_locale_name(&self) -> Result<String, HResult>;
fn get_locale_name_length(&self) -> u32;
fn get_paragraph_alignment(&self) -> ParagraphAlignment;
fn get_reading_direction(&self) -> ReadingDirection;
fn get_text_alignment(&self) -> TextAlignment;
fn get_trimming(&self) -> Result<GetTrimmingResult, HResult>;
fn get_word_wrapping(&self) -> WordWrapping;
fn set_flow_direction(
        &self,
        flow_direction: FlowDirection
    ) -> Result<(), HResult>;
fn set_incremental_tab_stop(&self, tab_stop: f32) -> Result<(), HResult>;
fn set_line_spacing(
        &self,
        method: LineSpacingMethod,
        line_spacing: f32,
        baseline: f32
    ) -> Result<(), HResult>;
fn set_paragraph_alignment(
        &self,
        alignment: ParagraphAlignment
    ) -> Result<(), HResult>;
fn set_text_alignment(
        &self,
        alignment: TextAlignment
    ) -> Result<(), HResult>;
fn set_trimming(
        &self,
        options: &Trimming,
        sign: &impl IInlineObject
    ) -> Result<(), HResult>;
fn set_word_wrapping(
        &self,
        word_wrapping: WordWrapping
    ) -> Result<(), HResult>; }

Required methods

fn get_flow_direction(&self) -> FlowDirection

fn get_font_collection(&self) -> Result<FontCollection, HResult>

fn get_font_family_name(&self) -> Result<String, HResult>

fn get_font_family_name_length(&self) -> u32

fn get_font_size(&self) -> f32

fn get_font_stretch(&self) -> FontStretch

fn get_font_style(&self) -> FontStyle

fn get_font_weight(&self) -> FontWeight

fn get_incremental_tab_stop(&self) -> f32

fn get_line_spacing(&self) -> Result<GetLineSpacingResult, HResult>

fn get_locale_name(&self) -> Result<String, HResult>

fn get_locale_name_length(&self) -> u32

fn get_paragraph_alignment(&self) -> ParagraphAlignment

fn get_reading_direction(&self) -> ReadingDirection

fn get_text_alignment(&self) -> TextAlignment

fn get_trimming(&self) -> Result<GetTrimmingResult, HResult>

fn get_word_wrapping(&self) -> WordWrapping

fn set_flow_direction(
    &self,
    flow_direction: FlowDirection
) -> Result<(), HResult>

fn set_incremental_tab_stop(&self, tab_stop: f32) -> Result<(), HResult>

fn set_line_spacing(
    &self,
    method: LineSpacingMethod,
    line_spacing: f32,
    baseline: f32
) -> Result<(), HResult>

fn set_paragraph_alignment(
    &self,
    alignment: ParagraphAlignment
) -> Result<(), HResult>

fn set_text_alignment(&self, alignment: TextAlignment) -> Result<(), HResult>

fn set_trimming(
    &self,
    options: &Trimming,
    sign: &impl IInlineObject
) -> Result<(), HResult>

fn set_word_wrapping(&self, word_wrapping: WordWrapping) -> Result<(), HResult>

Loading content...

Implementors

impl ITextFormat for TextFormat[src]

impl ITextFormat for TextLayout[src]

Loading content...