pub struct PositionedGlyph {
pub glyph: GlyphId,
pub pen_x: i32,
pub bounds: Rect,
}Expand description
Where a laid-out glyph goes.
Fields§
§glyph: GlyphIdWhich glyph. Not a character — see GlyphId.
pen_x: i32Pen position before this glyph, relative to the start of the line.
bounds: RectWhere the ink goes, relative to the line’s origin and baseline.
Trait Implementations§
Source§impl Clone for PositionedGlyph
impl Clone for PositionedGlyph
Source§fn clone(&self) -> PositionedGlyph
fn clone(&self) -> PositionedGlyph
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 moreimpl Copy for PositionedGlyph
Source§impl Debug for PositionedGlyph
impl Debug for PositionedGlyph
impl Eq for PositionedGlyph
Source§impl PartialEq for PositionedGlyph
impl PartialEq for PositionedGlyph
impl StructuralPartialEq for PositionedGlyph
Auto Trait Implementations§
impl Freeze for PositionedGlyph
impl RefUnwindSafe for PositionedGlyph
impl Send for PositionedGlyph
impl Sync for PositionedGlyph
impl Unpin for PositionedGlyph
impl UnsafeUnpin for PositionedGlyph
impl UnwindSafe for PositionedGlyph
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