pub struct LineBox {
pub bounds: Rect,
pub baseline: f32,
pub metrics: FontHeight,
pub glyphs: Vec<ShapedGlyph>,
pub text_fragments: Vec<TextFragment>,
pub atomic_fragments: Vec<AtomicFragment>,
pub is_hard_break: bool,
}Expand description
A positioned inline line box representing a single rendered text line.
Fields§
§bounds: RectBounding rectangle in container coordinate space (x, y, width, height).
baseline: f32Distance from the top of the line box to the dominant baseline.
metrics: FontHeightAscent and descent bounds encompassing all inline items on this line.
glyphs: Vec<ShapedGlyph>Positioned glyphs on this line.
text_fragments: Vec<TextFragment>Visual text fragments positioned on this line.
atomic_fragments: Vec<AtomicFragment>Positioned atomic inline boxes on this line.
is_hard_break: boolWhether this line was terminated by a hard newline.
Trait Implementations§
impl StructuralPartialEq for LineBox
Auto Trait Implementations§
impl Forget for LineBox
impl Freeze for LineBox
impl Move 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