pub struct LineInfo {
pub clusters: Range<usize>,
pub left: f32,
pub width: f32,
pub baseline: f32,
pub size: f32,
pub box_top: f32,
}Expand description
One line of a TextLayout.
Fields§
§clusters: Range<usize>Cluster indices, in logical order.
left: f32Start in pixels from the layout box’s left edge.
width: f32Advance excluding trailing spaces.
baseline: f32Baseline in pixels from the layout box’s top.
size: f32Its largest size in pixels, at least the request’s.
box_top: f32Its line box’s top in pixels from the layout box’s top; the box is the request’s line
height times size tall.
Trait Implementations§
impl StructuralPartialEq for LineInfo
Auto Trait Implementations§
impl Forget for LineInfo
impl Freeze for LineInfo
impl Move for LineInfo
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnsafeUnpin for LineInfo
impl UnwindSafe for LineInfo
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