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 #PangoAttrList structure represents a list of attributes that apply to a section of text. The attributes are, in general, allowed to overlap in an arbitrary fashion, however, if the attributes are manipulated only through pango_attr_list_change(), the overlap between properties will meet stricter criteria.
Since the #PangoAttrList structure is stored as a linear list, it is not suitable for storing attributes for large amounts of text. In general, you should not use a single #PangoAttrList for more than one paragraph of text.
- newtype AttrList = AttrList (ForeignPtr AttrList)
- noAttrList :: Maybe AttrList
- attrListChange :: MonadIO m => AttrList -> Attribute -> m ()
- attrListCopy :: MonadIO m => AttrList -> m AttrList
- attrListFilter :: MonadIO m => AttrList -> AttrFilterFunc -> m AttrList
- attrListInsert :: MonadIO m => AttrList -> Attribute -> m ()
- attrListInsertBefore :: MonadIO m => AttrList -> Attribute -> m ()
- attrListNew :: MonadIO m => m AttrList
- attrListRef :: MonadIO m => AttrList -> m AttrList
- attrListSplice :: MonadIO m => AttrList -> AttrList -> Int32 -> Int32 -> m ()
- attrListUnref :: MonadIO m => AttrList -> m ()
Exported types
Methods
attrListChange
attrListChange :: MonadIO m => AttrList -> Attribute -> m () Source
attrListCopy
attrListCopy :: MonadIO m => AttrList -> m AttrList Source
attrListFilter
attrListFilter :: MonadIO m => AttrList -> AttrFilterFunc -> m AttrList Source
attrListInsert
attrListInsert :: MonadIO m => AttrList -> Attribute -> m () Source
attrListInsertBefore
attrListInsertBefore :: MonadIO m => AttrList -> Attribute -> m () Source
attrListNew
attrListNew :: MonadIO m => m AttrList Source
attrListRef
attrListRef :: MonadIO m => AttrList -> m AttrList Source
attrListSplice
attrListUnref
attrListUnref :: MonadIO m => AttrList -> m () Source