Struct makepad_widgets::makepad_vector::font::HorizontalMetrics
pub struct HorizontalMetrics {
pub advance_width: f64,
pub left_side_bearing: f64,
}Expand description
The horizontal metrics for a glyph
Fields§
§advance_width: f64§left_side_bearing: f64Trait Implementations§
§impl Clone for HorizontalMetrics
impl Clone for HorizontalMetrics
§fn clone(&self) -> HorizontalMetrics
fn clone(&self) -> HorizontalMetrics
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 more§impl Debug for HorizontalMetrics
impl Debug for HorizontalMetrics
§impl PartialEq<HorizontalMetrics> for HorizontalMetrics
impl PartialEq<HorizontalMetrics> for HorizontalMetrics
§fn eq(&self, other: &HorizontalMetrics) -> bool
fn eq(&self, other: &HorizontalMetrics) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for HorizontalMetrics
impl StructuralPartialEq for HorizontalMetrics
Auto Trait Implementations§
impl RefUnwindSafe for HorizontalMetrics
impl Send for HorizontalMetrics
impl Sync for HorizontalMetrics
impl Unpin for HorizontalMetrics
impl UnwindSafe for HorizontalMetrics
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