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 #PangoAttrIterator structure is used to represent an iterator through a #PangoAttrList. A new iterator is created with pango_attr_list_get_iterator(). Once the iterator is created, it can be advanced through the style changes in the text using pango_attr_iterator_next(). At each style change, the range of the current style segment and the attributes currently in effect can be queried.
- newtype AttrIterator = AttrIterator (ForeignPtr AttrIterator)
- noAttrIterator :: Maybe AttrIterator
- attrIteratorDestroy :: MonadIO m => AttrIterator -> m ()
- attrIteratorGetAttrs :: MonadIO m => AttrIterator -> m [Attribute]
- attrIteratorGetFont :: MonadIO m => AttrIterator -> FontDescription -> Maybe Language -> [Attribute] -> m ()
- attrIteratorNext :: MonadIO m => AttrIterator -> m Bool
- attrIteratorRange :: MonadIO m => AttrIterator -> m (Int32, Int32)
Exported types
newtype AttrIterator Source
Methods
attrIteratorDestroy
attrIteratorDestroy :: MonadIO m => AttrIterator -> m () Source
attrIteratorGetAttrs
attrIteratorGetAttrs :: MonadIO m => AttrIterator -> m [Attribute] Source
attrIteratorGetFont
attrIteratorGetFont :: MonadIO m => AttrIterator -> FontDescription -> Maybe Language -> [Attribute] -> m () Source
attrIteratorNext
attrIteratorNext :: MonadIO m => AttrIterator -> m Bool Source
attrIteratorRange
attrIteratorRange :: MonadIO m => AttrIterator -> m (Int32, Int32) Source