pub struct TextLineLayout {
pub paragraph_index: usize,
pub text: String,
pub bounds: Rect,
pub baseline: f64,
pub font_size: f64,
}Expand description
One laid-out line of shape text, in points.
Fields§
§paragraph_index: usizeThe zero-based paragraph the line belongs to.
text: StringThe drawn run and field text, without the bullet marker.
bounds: RectThe drawn extent of the line, bullet included, and its line height.
baseline: f64The baseline’s vertical position.
font_size: f64The largest run size on the line after autofit scaling.
Trait Implementations§
Source§impl Clone for TextLineLayout
impl Clone for TextLineLayout
Source§impl Debug for TextLineLayout
impl Debug for TextLineLayout
Source§impl PartialEq for TextLineLayout
impl PartialEq for TextLineLayout
impl StructuralPartialEq for TextLineLayout
Auto Trait Implementations§
impl Freeze for TextLineLayout
impl RefUnwindSafe for TextLineLayout
impl Send for TextLineLayout
impl Sync for TextLineLayout
impl Unpin for TextLineLayout
impl UnsafeUnpin for TextLineLayout
impl UnwindSafe for TextLineLayout
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