TextAnalysisSourceMethods

Trait TextAnalysisSourceMethods 

Source
pub trait TextAnalysisSourceMethods {
    // Required methods
    fn get_locale_name(&self, text_position: u32) -> (Cow<'_, str>, u32);
    fn get_paragraph_reading_direction(&self) -> DWRITE_READING_DIRECTION;
}
Expand description

The Rust side of a custom text analysis source implementation.

Required Methods§

Source

fn get_locale_name(&self, text_position: u32) -> (Cow<'_, str>, u32)

Determine the locale for a range of text.

Return locale and length of text (in utf-16 code units) for which the locale is valid.

Source

fn get_paragraph_reading_direction(&self) -> DWRITE_READING_DIRECTION

Get the text direction for the paragraph.

Implementors§