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§
Sourcefn get_locale_name(&self, text_position: u32) -> (Cow<'_, str>, u32)
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.
Sourcefn get_paragraph_reading_direction(&self) -> DWRITE_READING_DIRECTION
fn get_paragraph_reading_direction(&self) -> DWRITE_READING_DIRECTION
Get the text direction for the paragraph.