Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The #PangoGlyphString structure is used to store strings of glyphs with geometry and visual attribute information. The storage for the glyph information is owned by the structure which simplifies memory management.
- newtype GlyphString = GlyphString (ForeignPtr GlyphString)
- newZeroGlyphString :: MonadIO m => m GlyphString
- noGlyphString :: Maybe GlyphString
- data GlyphStringCopyMethodInfo
- glyphStringCopy :: MonadIO m => GlyphString -> m (Maybe GlyphString)
- data GlyphStringExtentsMethodInfo
- glyphStringExtents :: (MonadIO m, FontK a) => GlyphString -> a -> m (Rectangle, Rectangle)
- data GlyphStringExtentsRangeMethodInfo
- glyphStringExtentsRange :: (MonadIO m, FontK a) => GlyphString -> Int32 -> Int32 -> a -> m (Rectangle, Rectangle)
- data GlyphStringFreeMethodInfo
- glyphStringFree :: MonadIO m => GlyphString -> m ()
- data GlyphStringGetLogicalWidthsMethodInfo
- glyphStringGetLogicalWidths :: MonadIO m => GlyphString -> Text -> Int32 -> Int32 -> Ptr Int32 -> m ()
- data GlyphStringGetWidthMethodInfo
- glyphStringGetWidth :: MonadIO m => GlyphString -> m Int32
- data GlyphStringIndexToXMethodInfo
- glyphStringIndexToX :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32
- glyphStringNew :: MonadIO m => m GlyphString
- data GlyphStringSetSizeMethodInfo
- glyphStringSetSize :: MonadIO m => GlyphString -> Int32 -> m ()
- data GlyphStringXToIndexMethodInfo
- glyphStringXToIndex :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32)
- glyphStringLogClusters :: AttrLabelProxy "logClusters"
- glyphStringReadLogClusters :: MonadIO m => GlyphString -> m Int32
- glyphStringWriteLogClusters :: MonadIO m => GlyphString -> Int32 -> m ()
- glyphStringNumGlyphs :: AttrLabelProxy "numGlyphs"
- glyphStringReadNumGlyphs :: MonadIO m => GlyphString -> m Int32
- glyphStringWriteNumGlyphs :: MonadIO m => GlyphString -> Int32 -> m ()
Exported types
newtype GlyphString Source
newZeroGlyphString :: MonadIO m => m GlyphString Source
Construct a GlyphString
struct initialized to zero.
Methods
glyphStringCopy
data GlyphStringCopyMethodInfo Source
((~) * signature (m (Maybe GlyphString)), MonadIO m) => MethodInfo * GlyphStringCopyMethodInfo GlyphString signature |
glyphStringCopy :: MonadIO m => GlyphString -> m (Maybe GlyphString) Source
glyphStringExtents
data GlyphStringExtentsMethodInfo Source
((~) * signature (a -> m (Rectangle, Rectangle)), MonadIO m, FontK a) => MethodInfo * GlyphStringExtentsMethodInfo GlyphString signature |
glyphStringExtents :: (MonadIO m, FontK a) => GlyphString -> a -> m (Rectangle, Rectangle) Source
glyphStringExtentsRange
data GlyphStringExtentsRangeMethodInfo Source
((~) * signature (Int32 -> Int32 -> a -> m (Rectangle, Rectangle)), MonadIO m, FontK a) => MethodInfo * GlyphStringExtentsRangeMethodInfo GlyphString signature |
glyphStringExtentsRange :: (MonadIO m, FontK a) => GlyphString -> Int32 -> Int32 -> a -> m (Rectangle, Rectangle) Source
glyphStringFree
data GlyphStringFreeMethodInfo Source
((~) * signature (m ()), MonadIO m) => MethodInfo * GlyphStringFreeMethodInfo GlyphString signature |
glyphStringFree :: MonadIO m => GlyphString -> m () Source
glyphStringGetLogicalWidths
data GlyphStringGetLogicalWidthsMethodInfo Source
((~) * signature (Text -> Int32 -> Int32 -> Ptr Int32 -> m ()), MonadIO m) => MethodInfo * GlyphStringGetLogicalWidthsMethodInfo GlyphString signature |
glyphStringGetLogicalWidths :: MonadIO m => GlyphString -> Text -> Int32 -> Int32 -> Ptr Int32 -> m () Source
glyphStringGetWidth
data GlyphStringGetWidthMethodInfo Source
((~) * signature (m Int32), MonadIO m) => MethodInfo * GlyphStringGetWidthMethodInfo GlyphString signature |
glyphStringGetWidth :: MonadIO m => GlyphString -> m Int32 Source
glyphStringIndexToX
data GlyphStringIndexToXMethodInfo Source
((~) * signature (Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32), MonadIO m) => MethodInfo * GlyphStringIndexToXMethodInfo GlyphString signature |
glyphStringIndexToX :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32 Source
glyphStringNew
glyphStringNew :: MonadIO m => m GlyphString Source
glyphStringSetSize
data GlyphStringSetSizeMethodInfo Source
((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * GlyphStringSetSizeMethodInfo GlyphString signature |
glyphStringSetSize :: MonadIO m => GlyphString -> Int32 -> m () Source
glyphStringXToIndex
data GlyphStringXToIndexMethodInfo Source
((~) * signature (Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32)), MonadIO m) => MethodInfo * GlyphStringXToIndexMethodInfo GlyphString signature |
glyphStringXToIndex :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32) Source
Properties
LogClusters
glyphStringLogClusters :: AttrLabelProxy "logClusters" Source
glyphStringReadLogClusters :: MonadIO m => GlyphString -> m Int32 Source
glyphStringWriteLogClusters :: MonadIO m => GlyphString -> Int32 -> m () Source
NumGlyphs
glyphStringNumGlyphs :: AttrLabelProxy "numGlyphs" Source
glyphStringReadNumGlyphs :: MonadIO m => GlyphString -> m Int32 Source
glyphStringWriteNumGlyphs :: MonadIO m => GlyphString -> Int32 -> m () Source