pub struct MultilingualTextSegment { /* private fields */ }Expand description
One script, font, and bidi-level span shaped with complete positioning data.
Implementations§
Source§impl MultilingualTextSegment
impl MultilingualTextSegment
pub fn new( base: TextSegment, logical_index: usize, language: Option<String>, script: TextScript, direction: TextDirection, bidi_level: u8, x_advances: Vec<f64>, y_advances: Vec<f64>, x_offsets: Vec<f64>, y_offsets: Vec<f64>, clusters: Vec<GlyphCluster>, break_after: bool, ) -> Result<Self>
pub fn text(&self) -> &str
pub fn base(&self) -> &TextSegment
pub fn font_id(&self) -> FontId
pub fn language(&self) -> Option<&str>
pub fn script(&self) -> TextScript
pub fn direction(&self) -> TextDirection
pub fn bidi_level(&self) -> u8
pub fn logical_index(&self) -> usize
pub fn glyph_ids(&self) -> &[u16]
pub fn x_advances(&self) -> &[f64]
pub fn y_advances(&self) -> &[f64]
pub fn x_offsets(&self) -> &[f64]
pub fn y_offsets(&self) -> &[f64]
pub fn clusters(&self) -> &[GlyphCluster]
pub fn width(&self) -> f64
pub fn break_after(&self) -> bool
Trait Implementations§
Source§impl Clone for MultilingualTextSegment
impl Clone for MultilingualTextSegment
Source§fn clone(&self) -> MultilingualTextSegment
fn clone(&self) -> MultilingualTextSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultilingualTextSegment
impl RefUnwindSafe for MultilingualTextSegment
impl Send for MultilingualTextSegment
impl Sync for MultilingualTextSegment
impl Unpin for MultilingualTextSegment
impl UnsafeUnpin for MultilingualTextSegment
impl UnwindSafe for MultilingualTextSegment
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