#[repr(C)]pub struct GlyphExtents {
pub x_bearing: i32,
pub y_bearing: i32,
pub width: i32,
pub height: i32,
}Expand description
Glyph ink extents in font units.
This matches HarfBuzz’s glyph extents layout and semantics.
Fields§
§x_bearing: i32Horizontal bearing from glyph origin to the left side of the ink box.
y_bearing: i32Vertical bearing from glyph origin to the top of the ink box.
width: i32Width of the glyph ink box.
height: i32Height of the glyph ink box.
Trait Implementations§
Source§impl Clone for GlyphExtents
impl Clone for GlyphExtents
Source§fn clone(&self) -> GlyphExtents
fn clone(&self) -> GlyphExtents
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 moreSource§impl Default for GlyphExtents
impl Default for GlyphExtents
Source§fn default() -> GlyphExtents
fn default() -> GlyphExtents
Returns the “default value” for a type. Read more
impl Copy for GlyphExtents
impl Pod for GlyphExtents
Auto Trait Implementations§
impl Freeze for GlyphExtents
impl RefUnwindSafe for GlyphExtents
impl Send for GlyphExtents
impl Sync for GlyphExtents
impl Unpin for GlyphExtents
impl UnsafeUnpin for GlyphExtents
impl UnwindSafe for GlyphExtents
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.