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 (ManagedPtr 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
- glyphString_logClusters :: AttrLabelProxy "logClusters"
- setGlyphStringLogClusters :: MonadIO m => GlyphString -> Int32 -> m ()
- getGlyphStringNumGlyphs :: MonadIO m => GlyphString -> m Int32
- glyphString_numGlyphs :: AttrLabelProxy "numGlyphs"
- setGlyphStringNumGlyphs :: MonadIO m => GlyphString -> Int32 -> m ()
Exported types
newtype GlyphString Source #
Constructors
GlyphString (ManagedPtr 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
copy
data GlyphStringCopyMethodInfo Source #
Instances
((~) * signature (m (Maybe GlyphString)), MonadIO m) => MethodInfo * GlyphStringCopyMethodInfo GlyphString signature Source # | |
glyphStringCopy :: MonadIO m => GlyphString -> m (Maybe GlyphString) Source #
extents
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 #
extentsRange
glyphStringExtentsRange :: (MonadIO m, IsFont a) => GlyphString -> Int32 -> Int32 -> a -> m (Rectangle, Rectangle) Source #
free
data GlyphStringFreeMethodInfo Source #
Instances
((~) * signature (m ()), MonadIO m) => MethodInfo * GlyphStringFreeMethodInfo GlyphString signature Source # | |
glyphStringFree :: MonadIO m => GlyphString -> m () Source #
getLogicalWidths
glyphStringGetLogicalWidths :: MonadIO m => GlyphString -> Text -> Int32 -> Int32 -> Ptr Int32 -> m () Source #
getWidth
data GlyphStringGetWidthMethodInfo Source #
Instances
((~) * signature (m Int32), MonadIO m) => MethodInfo * GlyphStringGetWidthMethodInfo GlyphString signature Source # | |
glyphStringGetWidth :: MonadIO m => GlyphString -> m Int32 Source #
indexToX
glyphStringIndexToX :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> Bool -> m Int32 Source #
new
glyphStringNew :: MonadIO m => m GlyphString Source #
setSize
data GlyphStringSetSizeMethodInfo Source #
Instances
((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * GlyphStringSetSizeMethodInfo GlyphString signature Source # | |
glyphStringSetSize :: MonadIO m => GlyphString -> Int32 -> m () Source #
xToIndex
glyphStringXToIndex :: MonadIO m => GlyphString -> Text -> Int32 -> Analysis -> Int32 -> m (Int32, Int32) Source #
Properties
logClusters
getGlyphStringLogClusters :: MonadIO m => GlyphString -> m Int32 Source #
glyphString_logClusters :: AttrLabelProxy "logClusters" Source #
setGlyphStringLogClusters :: MonadIO m => GlyphString -> Int32 -> m () Source #
numGlyphs
getGlyphStringNumGlyphs :: MonadIO m => GlyphString -> m Int32 Source #
glyphString_numGlyphs :: AttrLabelProxy "numGlyphs" Source #
setGlyphStringNumGlyphs :: MonadIO m => GlyphString -> Int32 -> m () Source #