pub struct GlyphLayout {
pub line_index: usize,
pub start_offset: usize,
pub end_offset: usize,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
Visual glyph bounds emitted by the text shaper.
Fields§
§line_index: usizeLogical line index for this glyph box.
start_offset: usizeByte offset where glyph coverage starts.
end_offset: usizeByte offset where glyph coverage ends (exclusive).
x: f32X position from line origin.
y: f32Y position from paragraph top.
width: f32Glyph box width.
height: f32Glyph box height.
Trait Implementations§
Source§impl Clone for GlyphLayout
impl Clone for GlyphLayout
Source§fn clone(&self) -> GlyphLayout
fn clone(&self) -> GlyphLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlyphLayout
impl Debug for GlyphLayout
Source§impl PartialEq for GlyphLayout
impl PartialEq for GlyphLayout
impl Copy for GlyphLayout
impl StructuralPartialEq for GlyphLayout
Auto Trait Implementations§
impl Freeze for GlyphLayout
impl RefUnwindSafe for GlyphLayout
impl Send for GlyphLayout
impl Sync for GlyphLayout
impl Unpin for GlyphLayout
impl UnsafeUnpin for GlyphLayout
impl UnwindSafe for GlyphLayout
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