gi-harfbuzz-0.0.9: HarfBuzz bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
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

newtype GlyphPositionT Source #

Memory-managed wrapper type.

Constructors

GlyphPositionT (ManagedPtr GlyphPositionT) 

Instances

Instances details
Eq GlyphPositionT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

GBoxed GlyphPositionT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

ManagedPtrNewtype GlyphPositionT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

TypedObject GlyphPositionT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

Methods

glibType :: IO GType

HasParentTypes GlyphPositionT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

tag ~ 'AttrSet => Constructible GlyphPositionT tag Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

Methods

new :: MonadIO m => (ManagedPtr GlyphPositionT -> GlyphPositionT) -> [AttrOp GlyphPositionT tag] -> m GlyphPositionT

IsGValue (Maybe GlyphPositionT) Source #

Convert GlyphPositionT to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe GlyphPositionT -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe GlyphPositionT)

type ParentTypes GlyphPositionT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphPositionT

type ParentTypes GlyphPositionT = '[] :: [Type]

newZeroGlyphPositionT :: MonadIO m => m GlyphPositionT Source #

Construct a GlyphPositionT struct initialized to zero.

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 ]