pub struct TextLayout {
pub write_mode: Option<WritingMode>,
pub direction: Option<TextDirection>,
pub unicode_bidi: Option<UnicodeBidi>,
pub anchor: Option<Variable<TextAnchor>>,
pub dominant_baseline: Option<Variable<DominantBaseline>>,
pub alignment_baseline: Option<Variable<AlignmentBaseline>>,
pub baseline_shift: Option<Variable<BaselineShift>>,
pub decoration: Option<Variable<TextDecoration>>,
pub letter_spacing: Option<Variable<LetterSpacing>>,
pub word_spacing: Option<Variable<WordSpacing>>,
}Expand description
support for various international writing directions, such as left-to-right (e.g., Latin scripts) and bidirectional (e.g., Hebrew or Arabic) and vertical (e.g., Asian scripts).
Fields§
§write_mode: Option<WritingMode>§direction: Option<TextDirection>§unicode_bidi: Option<UnicodeBidi>§anchor: Option<Variable<TextAnchor>>§dominant_baseline: Option<Variable<DominantBaseline>>§alignment_baseline: Option<Variable<AlignmentBaseline>>§baseline_shift: Option<Variable<BaselineShift>>§decoration: Option<Variable<TextDecoration>>§letter_spacing: Option<Variable<LetterSpacing>>§word_spacing: Option<Variable<WordSpacing>>Trait Implementations§
Source§impl Clone for TextLayout
impl Clone for TextLayout
Source§fn clone(&self) -> TextLayout
fn clone(&self) -> TextLayout
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 TextLayout
impl Debug for TextLayout
Source§impl<'de> Deserialize<'de> for TextLayout
impl<'de> Deserialize<'de> for TextLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Deserialize for TextLayout
impl Deserialize for TextLayout
type Value = TextLayout
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
Derserialize this value from given
derserializer.Source§impl From<TextLayout> for Attr
impl From<TextLayout> for Attr
Source§fn from(value: TextLayout) -> Self
fn from(value: TextLayout) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextLayout
impl PartialEq for TextLayout
Source§impl PartialOrd for TextLayout
impl PartialOrd for TextLayout
Source§impl Serialize for TextLayout
impl Serialize for TextLayout
Source§impl Serialize for TextLayout
impl Serialize for TextLayout
impl StructuralPartialEq for TextLayout
Auto Trait Implementations§
impl Freeze for TextLayout
impl RefUnwindSafe for TextLayout
impl Send for TextLayout
impl Sync for TextLayout
impl Unpin for TextLayout
impl UnwindSafe for TextLayout
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