Gtk2HsContentsIndex
Graphics.UI.Gtk.Multiline.TextTag
Description

A tag that can be applied to text in a TextBuffer.

TODO

  • accessor functions for TextAttributes
Synopsis
data TextTag
class GObjectClass o => TextTagClass o
castToTextTag :: GObjectClass obj => obj -> TextTag
type TagName = String
textTagNew :: TagName -> IO TextTag
textTagSetPriority :: TextTagClass obj => obj -> Int -> IO ()
textTagGetPriority :: TextTagClass obj => obj -> IO Int
newtype TextAttributes = TextAttributes (ForeignPtr TextAttributes)
textAttributesNew :: IO TextAttributes
makeNewTextAttributes :: Ptr TextAttributes -> IO TextAttributes
Documentation
data TextTag
Instances
TextTagClass TextTag
GObjectClass TextTag
class GObjectClass o => TextTagClass o
Instances
TextTagClass SourceTag
TextTagClass TextTag
castToTextTag :: GObjectClass obj => obj -> TextTag
type TagName = String
textTagNew :: TagName -> IO TextTag
Creates a TextTag.
textTagSetPriority :: TextTagClass obj => obj -> Int -> IO ()

Sets the priority of a TextTag.

Valid priorities are start at 0 and go to one less than textTagTableGetSize. Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag. Higher priority tags "win" if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with textBufferCreateTag, which adds the tag to the buffer's table automatically.

textTagGetPriority :: TextTagClass obj => obj -> IO Int
Get the tag priority.
newtype TextAttributes
Constructors
TextAttributes (ForeignPtr TextAttributes)
textAttributesNew :: IO TextAttributes
Creates a TextAttributes, which describes a set of properties on some text.
makeNewTextAttributes :: Ptr TextAttributes -> IO TextAttributes
Produced by Haddock version 0.6