[][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.

Methods

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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for GlyphPosition[src]

impl Debug for GlyphPosition[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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