pub struct Line {
pub word_start: usize,
pub word_count: usize,
pub x: f32,
pub y: f32,
pub width: f32,
pub ascent: f32,
pub descent: f32,
}Expand description
A laid-out line of text within a section.
Corresponds to upstream CPVT_Line.
Fields§
§word_start: usizeIndex of the first word in this line within the section’s words.
word_count: usizeNumber of words in this line.
x: f32X offset of the line (after alignment).
y: f32Y position of the line baseline.
width: f32Width of the text content on this line.
ascent: f32Ascent of the tallest character on this line.
descent: f32Descent of the deepest character on this line.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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