Struct gfx_glyph::ab_glyph::PxScaleFactor
pub struct PxScaleFactor {
pub horizontal: f32,
pub vertical: f32,
}
Expand description
2D scale factors for use with unscaled metrics.
Fields§
§horizontal: f32
§vertical: f32
Trait Implementations§
§impl Clone for PxScaleFactor
impl Clone for PxScaleFactor
§fn clone(&self) -> PxScaleFactor
fn clone(&self) -> PxScaleFactor
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 PxScaleFactor
impl Debug for PxScaleFactor
§impl PartialEq<PxScaleFactor> for PxScaleFactor
impl PartialEq<PxScaleFactor> for PxScaleFactor
§fn eq(&self, other: &PxScaleFactor) -> bool
fn eq(&self, other: &PxScaleFactor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<PxScaleFactor> for PxScaleFactor
impl PartialOrd<PxScaleFactor> for PxScaleFactor
§fn partial_cmp(&self, other: &PxScaleFactor) -> Option<Ordering>
fn partial_cmp(&self, other: &PxScaleFactor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more