pub struct HostBoxGlyph {
pub glyph: u16,
pub x: i32,
pub y: i32,
pub advance: i32,
}Expand description
A glyph inside a host box, offsets in scaled points from the box baseline origin, y down.
Fields§
§glyph: u16Glyph identifier in the run’s font.
x: i32Horizontal offset from the box baseline origin.
y: i32Vertical offset from the baseline, positive downward.
advance: i32Horizontal advance in scaled points.
Trait Implementations§
Source§impl Clone for HostBoxGlyph
impl Clone for HostBoxGlyph
Source§fn clone(&self) -> HostBoxGlyph
fn clone(&self) -> HostBoxGlyph
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 HostBoxGlyph
Source§impl Debug for HostBoxGlyph
impl Debug for HostBoxGlyph
impl Eq for HostBoxGlyph
Source§impl PartialEq for HostBoxGlyph
impl PartialEq for HostBoxGlyph
impl StructuralPartialEq for HostBoxGlyph
Auto Trait Implementations§
impl Freeze for HostBoxGlyph
impl RefUnwindSafe for HostBoxGlyph
impl Send for HostBoxGlyph
impl Sync for HostBoxGlyph
impl Unpin for HostBoxGlyph
impl UnsafeUnpin for HostBoxGlyph
impl UnwindSafe for HostBoxGlyph
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