pub struct ShapedText { /* private fields */ }Implementations§
Source§impl ShapedText
impl ShapedText
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn glyph_count(&self) -> usize
Sourcepub fn line_count(&self) -> usize
pub fn line_count(&self) -> usize
Number of laid-out lines. Empty text has zero lines.
Sourcepub fn first_baseline(&self) -> f32
pub fn first_baseline(&self) -> f32
Distance from the top of the first line box to its baseline.
Sourcepub fn line_height(&self) -> f32
pub fn line_height(&self) -> f32
Resolved line box height (the first row, or the configured height for empty text).
pub fn row(&self, index: usize) -> Option<&LineRow>
Auto Trait Implementations§
impl Freeze for ShapedText
impl RefUnwindSafe for ShapedText
impl Send for ShapedText
impl Sync for ShapedText
impl Unpin for ShapedText
impl UnsafeUnpin for ShapedText
impl UnwindSafe for ShapedText
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