pub struct LineInfo {
pub x: f32,
pub y: f32,
pub width: f32,
pub start_cluster: usize,
}Expand description
Information about a single line of shaped text. Used for rendering backgrounds and handling selection/click events.
Fields§
§x: f32Relative X offset within the container (for alignment).
y: f32Vertical position (baseline) of the line.
width: f32Visual width of the text in this line.
start_cluster: usizeThe byte index in the source string where this line starts.
Trait Implementations§
impl Copy for LineInfo
impl StructuralPartialEq for LineInfo
Auto Trait Implementations§
impl Freeze 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