Struct harfbuzz_sys::bindings::hb_glyph_extents_t
source · #[repr(C)]pub struct hb_glyph_extents_t {
pub x_bearing: hb_position_t,
pub y_bearing: hb_position_t,
pub width: hb_position_t,
pub height: hb_position_t,
}
Expand description
hb_glyph_extents_t: @x_bearing: Distance from the x-origin to the left extremum of the glyph. @y_bearing: Distance from the top extremum of the glyph to the y-origin. @width: Distance from the left extremum of the glyph to the right extremum. @height: Distance from the top extremum of the glyph to the bottom extremum.
Glyph extent values, measured in font units.
Note that @height is negative, in coordinate systems that grow up.
Fields§
§x_bearing: hb_position_t
§y_bearing: hb_position_t
§width: hb_position_t
§height: hb_position_t
Trait Implementations§
source§impl Clone for hb_glyph_extents_t
impl Clone for hb_glyph_extents_t
source§fn clone(&self) -> hb_glyph_extents_t
fn clone(&self) -> hb_glyph_extents_t
Returns a copy 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 hb_glyph_extents_t
impl Debug for hb_glyph_extents_t
impl Copy for hb_glyph_extents_t
Auto Trait Implementations§
impl Freeze for hb_glyph_extents_t
impl RefUnwindSafe for hb_glyph_extents_t
impl Send for hb_glyph_extents_t
impl Sync for hb_glyph_extents_t
impl Unpin for hb_glyph_extents_t
impl UnwindSafe for hb_glyph_extents_t
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)