Expand description
Used to return the position of a glyph with associated metrics
Fields§
§pos: Vec2(x, y) coordinate of glyph
ascent: f32Ascent (subtract from y to get top)
descent: f32Descent (subtract from y to get bottom)
Implementations§
Trait Implementations§
source§impl PartialEq<MarkerPos> for MarkerPos
impl PartialEq<MarkerPos> for MarkerPos
impl Copy for MarkerPos
impl StructuralPartialEq for MarkerPos
Auto Trait Implementations§
impl RefUnwindSafe for MarkerPos
impl Send for MarkerPos
impl Sync for MarkerPos
impl Unpin for MarkerPos
impl UnwindSafe for MarkerPos
Blanket Implementations§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more