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)
- noGlyphString :: Maybe GlyphString
- glyphStringCopy :: MonadIO m => GlyphString -> m GlyphString
- glyphStringExtents :: (MonadIO m, FontK a) => GlyphString -> a -> m (Rectangle, Rectangle)
- glyphStringExtentsRange :: (MonadIO m, FontK a) => GlyphString -> Int32 -> Int32 -> a -> m (Rectangle, Rectangle)
- glyphStringFree :: MonadIO m => GlyphString -> m ()
- glyphStringGetLogicalWidths :: MonadIO m => GlyphString -> Text -> Int32 -> Int32 -> Ptr Int32 -> m ()
- glyphStringGetWidth :: MonadIO m => GlyphString -> m Int32
- glyphStringIndexToX :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32
- glyphStringNew :: MonadIO m => m GlyphString
- glyphStringSetSize :: MonadIO m => GlyphString -> Int32 -> m ()
- glyphStringXToIndex :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32)
- glyphStringReadLogClusters :: GlyphString -> IO Int32
- glyphStringReadNumGlyphs :: GlyphString -> IO Int32
Exported types
Methods
glyphStringCopy
glyphStringCopy :: MonadIO m => GlyphString -> m GlyphString Source
glyphStringExtents
glyphStringExtents :: (MonadIO m, FontK a) => GlyphString -> a -> m (Rectangle, Rectangle) Source
glyphStringExtentsRange
glyphStringExtentsRange :: (MonadIO m, FontK a) => GlyphString -> Int32 -> Int32 -> a -> m (Rectangle, Rectangle) Source
glyphStringFree
glyphStringFree :: MonadIO m => GlyphString -> m () Source
glyphStringGetLogicalWidths
glyphStringGetLogicalWidths :: MonadIO m => GlyphString -> Text -> Int32 -> Int32 -> Ptr Int32 -> m () Source
glyphStringGetWidth
glyphStringGetWidth :: MonadIO m => GlyphString -> m Int32 Source
glyphStringIndexToX
glyphStringIndexToX :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32 Source
glyphStringNew
glyphStringNew :: MonadIO m => m GlyphString Source
glyphStringSetSize
glyphStringSetSize :: MonadIO m => GlyphString -> Int32 -> m () Source
glyphStringXToIndex
glyphStringXToIndex :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32) Source