pub struct FontMetrics(/* private fields */);
Implementations§
Source§impl FontMetrics
impl FontMetrics
pub fn new() -> FontMetrics
pub fn get_approximate_char_width(&self) -> i32
pub fn get_approximate_digit_width(&self) -> i32
pub fn get_ascent(&self) -> i32
pub fn get_descent(&self) -> i32
pub fn get_strikethrough_position(&self) -> i32
pub fn get_strikethrough_thickness(&self) -> i32
pub fn get_underline_position(&self) -> i32
pub fn get_underline_thickness(&self) -> i32
Trait Implementations§
Source§impl Clone for FontMetrics
impl Clone for FontMetrics
Source§fn clone(&self) -> FontMetrics
fn clone(&self) -> FontMetrics
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 FontMetrics
impl Debug for FontMetrics
Source§impl Default for FontMetrics
impl Default for FontMetrics
Source§impl Hash for FontMetrics
impl Hash for FontMetrics
Source§impl Ord for FontMetrics
impl Ord for FontMetrics
Source§fn cmp(&self, other: &FontMetrics) -> Ordering
fn cmp(&self, other: &FontMetrics) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FontMetrics
impl PartialEq for FontMetrics
Source§impl PartialOrd for FontMetrics
impl PartialOrd for FontMetrics
Source§impl StaticType for FontMetrics
impl StaticType for FontMetrics
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for FontMetrics
impl StructuralPartialEq for FontMetrics
Auto Trait Implementations§
impl Freeze for FontMetrics
impl RefUnwindSafe for FontMetrics
impl !Send for FontMetrics
impl !Sync for FontMetrics
impl Unpin for FontMetrics
impl UnwindSafe for FontMetrics
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