| 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 |
GI.Pango.Structs.GlyphString
Contents
Description
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, IsFont a) => GlyphString -> a -> m (Rectangle, Rectangle)
- data GlyphStringExtentsRangeMethodInfo
- glyphStringExtentsRange :: (MonadIO m, IsFont 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)
- getGlyphStringLogClusters :: MonadIO m => GlyphString -> m Int32
- glyphStringLogClusters :: AttrLabelProxy "logClusters"
- setGlyphStringLogClusters :: MonadIO m => GlyphString -> Int32 -> m ()
- getGlyphStringNumGlyphs :: MonadIO m => GlyphString -> m Int32
- glyphStringNumGlyphs :: AttrLabelProxy "numGlyphs"
- setGlyphStringNumGlyphs :: MonadIO m => GlyphString -> Int32 -> m ()
Exported types
newtype GlyphString Source #
Constructors
| GlyphString (ForeignPtr GlyphString) |
Instances
| BoxedObject GlyphString Source # | |
| (~) AttrOpTag tag AttrSet => Constructible GlyphString tag Source # | |
| ((~) * info (ResolveGlyphStringMethod t GlyphString), MethodInfo * info GlyphString p) => IsLabel t (GlyphString -> p) Source # | |
| ((~) * info (ResolveGlyphStringMethod t GlyphString), MethodInfo * info GlyphString p) => IsLabelProxy t (GlyphString -> p) Source # | |
| HasAttributeList * GlyphString Source # | |
| ((~) * signature (Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32)), MonadIO m) => MethodInfo * GlyphStringXToIndexMethodInfo GlyphString signature Source # | |
| ((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * GlyphStringSetSizeMethodInfo GlyphString signature Source # | |
| ((~) * signature (Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32), MonadIO m) => MethodInfo * GlyphStringIndexToXMethodInfo GlyphString signature Source # | |
| ((~) * signature (m Int32), MonadIO m) => MethodInfo * GlyphStringGetWidthMethodInfo GlyphString signature Source # | |
| ((~) * signature (Text -> Int32 -> Int32 -> Ptr Int32 -> m ()), MonadIO m) => MethodInfo * GlyphStringGetLogicalWidthsMethodInfo GlyphString signature Source # | |
| ((~) * signature (m ()), MonadIO m) => MethodInfo * GlyphStringFreeMethodInfo GlyphString signature Source # | |
| ((~) * signature (Int32 -> Int32 -> a -> m (Rectangle, Rectangle)), MonadIO m, IsFont a) => MethodInfo * GlyphStringExtentsRangeMethodInfo GlyphString signature Source # | |
| ((~) * signature (a -> m (Rectangle, Rectangle)), MonadIO m, IsFont a) => MethodInfo * GlyphStringExtentsMethodInfo GlyphString signature Source # | |
| ((~) * signature (m (Maybe GlyphString)), MonadIO m) => MethodInfo * GlyphStringCopyMethodInfo GlyphString signature Source # | |
| type AttributeList GlyphString Source # | |
newZeroGlyphString :: MonadIO m => m GlyphString Source #
Construct a GlyphString struct initialized to zero.
Methods
glyphStringCopy
data GlyphStringCopyMethodInfo Source #
Instances
| ((~) * signature (m (Maybe GlyphString)), MonadIO m) => MethodInfo * GlyphStringCopyMethodInfo GlyphString signature Source # | |
glyphStringCopy :: MonadIO m => GlyphString -> m (Maybe GlyphString) Source #
glyphStringExtents
data GlyphStringExtentsMethodInfo Source #
Instances
| ((~) * signature (a -> m (Rectangle, Rectangle)), MonadIO m, IsFont a) => MethodInfo * GlyphStringExtentsMethodInfo GlyphString signature Source # | |
glyphStringExtents :: (MonadIO m, IsFont a) => GlyphString -> a -> m (Rectangle, Rectangle) Source #
glyphStringExtentsRange
glyphStringExtentsRange :: (MonadIO m, IsFont a) => GlyphString -> Int32 -> Int32 -> a -> m (Rectangle, Rectangle) Source #
glyphStringFree
data GlyphStringFreeMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m) => MethodInfo * GlyphStringFreeMethodInfo GlyphString signature Source # | |
glyphStringFree :: MonadIO m => GlyphString -> m () Source #
glyphStringGetLogicalWidths
glyphStringGetLogicalWidths :: MonadIO m => GlyphString -> Text -> Int32 -> Int32 -> Ptr Int32 -> m () Source #
glyphStringGetWidth
data GlyphStringGetWidthMethodInfo Source #
Instances
| ((~) * signature (m Int32), MonadIO m) => MethodInfo * GlyphStringGetWidthMethodInfo GlyphString signature Source # | |
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
data GlyphStringSetSizeMethodInfo Source #
Instances
| ((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * GlyphStringSetSizeMethodInfo GlyphString signature Source # | |
glyphStringSetSize :: MonadIO m => GlyphString -> Int32 -> m () Source #
glyphStringXToIndex
glyphStringXToIndex :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32) Source #
Properties
LogClusters
getGlyphStringLogClusters :: MonadIO m => GlyphString -> m Int32 Source #
glyphStringLogClusters :: AttrLabelProxy "logClusters" Source #
setGlyphStringLogClusters :: MonadIO m => GlyphString -> Int32 -> m () Source #
NumGlyphs
getGlyphStringNumGlyphs :: MonadIO m => GlyphString -> m Int32 Source #
glyphStringNumGlyphs :: AttrLabelProxy "numGlyphs" Source #
setGlyphStringNumGlyphs :: MonadIO m => GlyphString -> Int32 -> m () Source #