pub struct LineBox {
pub baseline: f32,
pub top: f32,
pub bottom: f32,
pub left: f32,
pub width: f32,
pub text_range: Range<usize>,
}Expand description
One laid-out line, in pixels relative to the paragraph’s top-left corner.
Fields§
§baseline: f32Baseline, a whole pixel.
top: f32Top of the line box.
bottom: f32Bottom of the line box.
left: f32Left edge of the line’s content after alignment.
width: f32Advance of the line’s content.
text_range: Range<usize>Byte range of the text on this line.
Trait Implementations§
impl StructuralPartialEq for LineBox
Auto Trait Implementations§
impl Freeze for LineBox
impl RefUnwindSafe for LineBox
impl Send for LineBox
impl Sync for LineBox
impl Unpin for LineBox
impl UnsafeUnpin for LineBox
impl UnwindSafe for LineBox
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