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 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)
- glyphStringReadLogClusters :: GlyphString -> IO Int32
- glyphStringReadNumGlyphs :: GlyphString -> IO Int32
Exported types
newtype GlyphString Source
newZeroGlyphString :: MonadIO m => m GlyphString Source
Construct a GlyphString
struct initialized to zero.
Methods
glyphStringCopy
data GlyphStringCopyMethodInfo Source
((~) (TYPE Lifted) signature (m GlyphString), MonadIO m) => MethodInfo (TYPE Lifted) GlyphStringCopyMethodInfo GlyphString signature Source | |
glyphStringCopy :: MonadIO m => GlyphString -> m GlyphString Source
glyphStringExtents
data GlyphStringExtentsMethodInfo Source
((~) (TYPE Lifted) signature (a -> m (Rectangle, Rectangle)), MonadIO m, FontK a) => MethodInfo (TYPE Lifted) GlyphStringExtentsMethodInfo GlyphString signature Source | |
glyphStringExtents :: (MonadIO m, FontK a) => GlyphString -> a -> m (Rectangle, Rectangle) Source
glyphStringExtentsRange
data GlyphStringExtentsRangeMethodInfo Source
((~) (TYPE Lifted) signature (Int32 -> Int32 -> a -> m (Rectangle, Rectangle)), MonadIO m, FontK a) => MethodInfo (TYPE Lifted) GlyphStringExtentsRangeMethodInfo GlyphString signature Source | |
glyphStringExtentsRange :: (MonadIO m, FontK a) => GlyphString -> Int32 -> Int32 -> a -> m (Rectangle, Rectangle) Source
glyphStringFree
data GlyphStringFreeMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) GlyphStringFreeMethodInfo GlyphString signature Source | |
glyphStringFree :: MonadIO m => GlyphString -> m () Source
glyphStringGetLogicalWidths
data GlyphStringGetLogicalWidthsMethodInfo Source
((~) (TYPE Lifted) signature (Text -> Int32 -> Int32 -> Ptr Int32 -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) GlyphStringGetLogicalWidthsMethodInfo GlyphString signature Source | |
glyphStringGetLogicalWidths :: MonadIO m => GlyphString -> Text -> Int32 -> Int32 -> Ptr Int32 -> m () Source
glyphStringGetWidth
data GlyphStringGetWidthMethodInfo Source
((~) (TYPE Lifted) signature (m Int32), MonadIO m) => MethodInfo (TYPE Lifted) GlyphStringGetWidthMethodInfo GlyphString signature Source | |
glyphStringGetWidth :: MonadIO m => GlyphString -> m Int32 Source
glyphStringIndexToX
data GlyphStringIndexToXMethodInfo Source
((~) (TYPE Lifted) signature (Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32), MonadIO m) => MethodInfo (TYPE Lifted) GlyphStringIndexToXMethodInfo GlyphString signature Source | |
glyphStringIndexToX :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32 Source
glyphStringNew
glyphStringNew :: MonadIO m => m GlyphString Source
glyphStringSetSize
data GlyphStringSetSizeMethodInfo Source
((~) (TYPE Lifted) signature (Int32 -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) GlyphStringSetSizeMethodInfo GlyphString signature Source | |
glyphStringSetSize :: MonadIO m => GlyphString -> Int32 -> m () Source
glyphStringXToIndex
data GlyphStringXToIndexMethodInfo Source
((~) (TYPE Lifted) signature (Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32)), MonadIO m) => MethodInfo (TYPE Lifted) GlyphStringXToIndexMethodInfo GlyphString signature Source | |
glyphStringXToIndex :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32) Source