Struct skia_bindings::SkFontMetrics
source · #[repr(C)]pub struct SkFontMetrics {Show 16 fields
pub fFlags: u32,
pub fTop: SkScalar,
pub fAscent: SkScalar,
pub fDescent: SkScalar,
pub fBottom: SkScalar,
pub fLeading: SkScalar,
pub fAvgCharWidth: SkScalar,
pub fMaxCharWidth: SkScalar,
pub fXMin: SkScalar,
pub fXMax: SkScalar,
pub fXHeight: SkScalar,
pub fCapHeight: SkScalar,
pub fUnderlineThickness: SkScalar,
pub fUnderlinePosition: SkScalar,
pub fStrikeoutThickness: SkScalar,
pub fStrikeoutPosition: SkScalar,
}
Fields§
§fFlags: u32
§fTop: SkScalar
§fAscent: SkScalar
§fDescent: SkScalar
§fBottom: SkScalar
§fLeading: SkScalar
§fAvgCharWidth: SkScalar
§fMaxCharWidth: SkScalar
§fXMin: SkScalar
§fXMax: SkScalar
§fXHeight: SkScalar
§fCapHeight: SkScalar
§fUnderlineThickness: SkScalar
§fUnderlinePosition: SkScalar
§fStrikeoutThickness: SkScalar
§fStrikeoutPosition: SkScalar
Trait Implementations§
source§impl Clone for SkFontMetrics
impl Clone for SkFontMetrics
source§fn clone(&self) -> SkFontMetrics
fn clone(&self) -> SkFontMetrics
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 SkFontMetrics
impl Debug for SkFontMetrics
impl Copy for SkFontMetrics
Auto Trait Implementations§
impl RefUnwindSafe for SkFontMetrics
impl Send for SkFontMetrics
impl Sync for SkFontMetrics
impl Unpin for SkFontMetrics
impl UnwindSafe for SkFontMetrics
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