pub struct OriginOffset {
pub x: i16,
pub y: i16,
}Expand description
Bitmap offset from glyph origin in font units.
Fields§
§x: i16The horizontal (x-axis) offset from the left edge of the graphic to the glyph’s origin.
y: i16The vertical (y-axis) offset from the bottom edge of the graphic to the glyph’s origin.
Trait Implementations§
Source§impl Debug for OriginOffset
impl Debug for OriginOffset
Auto Trait Implementations§
impl Freeze for OriginOffset
impl RefUnwindSafe for OriginOffset
impl Send for OriginOffset
impl Sync for OriginOffset
impl Unpin for OriginOffset
impl UnwindSafe for OriginOffset
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more