gi-harfbuzz-0.0.2: 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.GlyphInfoT

Description

The GlyphInfoT is the structure that holds information about the glyphs and their relation to input text.

Synopsis

Exported types

newtype GlyphInfoT Source #

Memory-managed wrapper type.

Constructors

GlyphInfoT (ManagedPtr GlyphInfoT) 

Instances

Instances details
Eq GlyphInfoT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphInfoT

Methods

(==) :: GlyphInfoT -> GlyphInfoT -> Bool

(/=) :: GlyphInfoT -> GlyphInfoT -> Bool

GBoxed GlyphInfoT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphInfoT

ManagedPtrNewtype GlyphInfoT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphInfoT

Methods

toManagedPtr :: GlyphInfoT -> ManagedPtr GlyphInfoT

TypedObject GlyphInfoT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphInfoT

Methods

glibType :: IO GType

IsGValue GlyphInfoT Source #

Convert GlyphInfoT to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.HarfBuzz.Structs.GlyphInfoT

Methods

toGValue :: GlyphInfoT -> IO GValue

fromGValue :: GValue -> IO GlyphInfoT

HasParentTypes GlyphInfoT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphInfoT

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

Defined in GI.HarfBuzz.Structs.GlyphInfoT

Methods

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

type ParentTypes GlyphInfoT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.GlyphInfoT

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

newZeroGlyphInfoT :: MonadIO m => m GlyphInfoT Source #

Construct a GlyphInfoT struct initialized to zero.

Methods

Overloaded methods

Properties

cluster

the index of the character in the original text that corresponds to this GlyphInfoT, or whatever the client passes to bufferAdd. More than one GlyphInfoT can have the same cluster value, if they resulted from the same character (e.g. one to many glyph substitution), and when more than one character gets merged in the same glyph (e.g. many to one glyph substitution) the GlyphInfoT will have the smallest cluster value of them. By default some characters are merged into the same cluster (e.g. combining marks have the same cluster as their bases) even if they are separate glyphs, bufferSetClusterLevel allow selecting more fine-grained cluster handling.

getGlyphInfoTCluster :: MonadIO m => GlyphInfoT -> m Word32 Source #

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

get glyphInfoT #cluster

setGlyphInfoTCluster :: MonadIO m => GlyphInfoT -> Word32 -> m () Source #

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

set glyphInfoT [ #cluster := value ]

codepoint

either a Unicode code point (before shaping) or a glyph index (after shaping).

getGlyphInfoTCodepoint :: MonadIO m => GlyphInfoT -> m Word32 Source #

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

get glyphInfoT #codepoint

setGlyphInfoTCodepoint :: MonadIO m => GlyphInfoT -> Word32 -> m () Source #

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

set glyphInfoT [ #codepoint := value ]