[][src]Struct harfbuzz_rs::GlyphPosition

#[repr(C)]pub struct GlyphPosition {
    pub x_advance: Position,
    pub y_advance: Position,
    pub x_offset: Position,
    pub y_offset: Position,
    // some fields omitted
}

GlyphPosition is the structure that holds the positions of the glyph in both horizontal and vertical directions. All positions in GlyphPosition are relative to the current point.

Fields

x_advance: Position

how much the line advances after drawing this glyph when setting text in horizontal direction.

y_advance: Position

how much the line advances after drawing this glyph when setting text in vertical direction.

x_offset: Position

how much the glyph moves on the X-axis before drawing it, this should not affect how much the line advances.

y_offset: Position

how much the glyph moves on the Y-axis before drawing it, this should not affect how much the line advances.

Implementations

impl GlyphPosition[src]

pub const fn new(
    x_advance: Position,
    y_advance: Position,
    x_offset: Position,
    y_offset: Position
) -> Self
[src]

Trait Implementations

impl Clone for GlyphPosition[src]

impl Copy for GlyphPosition[src]

impl Debug for GlyphPosition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.