logo
pub struct OriginOffset {
    pub x: i16,
    pub y: i16,
}
Expand description

Bitmap offset from glyph origin in font units.

Fields

x: i16

The horizontal (x-axis) offset from the left edge of the graphic to the glyph’s origin.

y: i16

The vertical (y-axis) offset from the bottom edge of the graphic to the glyph’s origin.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.