pub struct RtlTextProps {
pub direction: TextDirection,
pub language: Option<String>,
pub font_complex_script: Option<String>,
}Expand description
RTL text properties for XML generation
Fields§
§direction: TextDirection§language: Option<String>§font_complex_script: Option<String>Implementations§
Source§impl RtlTextProps
impl RtlTextProps
pub fn new() -> Self
Sourcepub fn from_language(self, lang: RtlLanguage) -> Self
pub fn from_language(self, lang: RtlLanguage) -> Self
Set from an RTL language preset
Sourcepub fn complex_script_font(self, font: &str) -> Self
pub fn complex_script_font(self, font: &str) -> Self
Set complex script font (used for RTL rendering)
Sourcepub fn to_ppr_xml_attr(&self) -> String
pub fn to_ppr_xml_attr(&self) -> String
Generate paragraph property XML attributes for RTL
Sourcepub fn to_rpr_xml_attrs(&self) -> String
pub fn to_rpr_xml_attrs(&self) -> String
Generate run property XML attributes for RTL
Sourcepub fn to_cs_font_xml(&self) -> String
pub fn to_cs_font_xml(&self) -> String
Generate complex script font XML element
Trait Implementations§
Source§impl Clone for RtlTextProps
impl Clone for RtlTextProps
Source§fn clone(&self) -> RtlTextProps
fn clone(&self) -> RtlTextProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RtlTextProps
impl Debug for RtlTextProps
Source§impl Default for RtlTextProps
impl Default for RtlTextProps
Source§fn default() -> RtlTextProps
fn default() -> RtlTextProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RtlTextProps
impl RefUnwindSafe for RtlTextProps
impl Send for RtlTextProps
impl Sync for RtlTextProps
impl Unpin for RtlTextProps
impl UnwindSafe for RtlTextProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more