Struct allsorts::bitmap::BitmapMetrics
source · [−]pub struct BitmapMetrics {
pub origin_offset_x: i16,
pub origin_offset_y: i16,
pub advance: u8,
pub ascender: i8,
pub descender: i8,
}
Expand description
The actual embedded bitmap glyph metrics in pixels.
Fields
origin_offset_x: i16
Distance in pixels from the horizontal origin to the left edge of the bitmap.
origin_offset_y: i16
Distance in pixels from the horizontal origin to the bottom edge of the bitmap.
advance: u8
Advance width in pixels.
ascender: i8
The spacing of the line before the baseline in pixels.
descender: i8
The spacing of the line after the baseline in pixels.
Trait Implementations
sourceimpl Clone for BitmapMetrics
impl Clone for BitmapMetrics
sourcefn clone(&self) -> BitmapMetrics
fn clone(&self) -> BitmapMetrics
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BitmapMetrics
impl Debug for BitmapMetrics
impl Copy for BitmapMetrics
Auto Trait Implementations
impl RefUnwindSafe for BitmapMetrics
impl Send for BitmapMetrics
impl Sync for BitmapMetrics
impl Unpin for BitmapMetrics
impl UnwindSafe for BitmapMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more