pub struct TextLine {
pub text: String,
pub left: f64,
pub baseline: f64,
pub width: f64,
}Expand description
One line of a shaped text run.
Fields§
§text: StringThe text of the line.
left: f64The horizontal position of the line’s left edge, in canvas pixels.
baseline: f64The vertical position of the line’s baseline, in canvas pixels.
width: f64The advance width of the line.
Trait Implementations§
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Freeze for TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLine
impl Sync for TextLine
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLine
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