pub struct TextLineInfo {
pub start: usize,
pub end: usize,
pub top: f32,
pub baseline: f32,
pub bottom: f32,
pub left: f32,
pub right: f32,
pub width: f32,
}Expand description
Layout information for a single line of text.
Fields§
§start: usizeByte offset of the line start in the text.
end: usizeByte offset of the line end (exclusive) in the text.
top: f32Top y position in px relative to the text field content area.
baseline: f32Baseline y position in px relative to the text field content area.
bottom: f32Bottom y position in px relative to the text field content area.
left: f32Left x position in px relative to the text field content area.
right: f32Right x position in px relative to the text field content area.
width: f32Width of this line in px.
Trait Implementations§
Source§impl Clone for TextLineInfo
impl Clone for TextLineInfo
Source§fn clone(&self) -> TextLineInfo
fn clone(&self) -> TextLineInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextLineInfo
impl RefUnwindSafe for TextLineInfo
impl Send for TextLineInfo
impl Sync for TextLineInfo
impl Unpin for TextLineInfo
impl UnsafeUnpin for TextLineInfo
impl UnwindSafe for TextLineInfo
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