gi-harfbuzz-0.0.3: HarfBuzz bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.HarfBuzz.Structs.GlyphPositionT

Description

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

Synopsis

Exported types

newZeroGlyphPositionT :: MonadIO m => m GlyphPositionT Source #

Construct a GlyphPositionT struct initialized to zero.

Methods

Overloaded methods

Properties

xAdvance

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

getGlyphPositionTXAdvance :: MonadIO m => GlyphPositionT -> m Int32 Source #

Get the value of the “x_advance” field. When overloading is enabled, this is equivalent to

get glyphPositionT #xAdvance

setGlyphPositionTXAdvance :: MonadIO m => GlyphPositionT -> Int32 -> m () Source #

Set the value of the “x_advance” field. When overloading is enabled, this is equivalent to

set glyphPositionT [ #xAdvance := value ]

xOffset

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

getGlyphPositionTXOffset :: MonadIO m => GlyphPositionT -> m Int32 Source #

Get the value of the “x_offset” field. When overloading is enabled, this is equivalent to

get glyphPositionT #xOffset

setGlyphPositionTXOffset :: MonadIO m => GlyphPositionT -> Int32 -> m () Source #

Set the value of the “x_offset” field. When overloading is enabled, this is equivalent to

set glyphPositionT [ #xOffset := value ]

yAdvance

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

getGlyphPositionTYAdvance :: MonadIO m => GlyphPositionT -> m Int32 Source #

Get the value of the “y_advance” field. When overloading is enabled, this is equivalent to

get glyphPositionT #yAdvance

setGlyphPositionTYAdvance :: MonadIO m => GlyphPositionT -> Int32 -> m () Source #

Set the value of the “y_advance” field. When overloading is enabled, this is equivalent to

set glyphPositionT [ #yAdvance := value ]

yOffset

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

getGlyphPositionTYOffset :: MonadIO m => GlyphPositionT -> m Int32 Source #

Get the value of the “y_offset” field. When overloading is enabled, this is equivalent to

get glyphPositionT #yOffset

setGlyphPositionTYOffset :: MonadIO m => GlyphPositionT -> Int32 -> m () Source #

Set the value of the “y_offset” field. When overloading is enabled, this is equivalent to

set glyphPositionT [ #yOffset := value ]