gtk2hsContentsIndex
CellRenderer
Description

A CellRenderer is an object that determines how the cell of a TreeView widget is displayed.

  • Each TreeViewColumn has exactly one accociated CellRenderer. The data supply for a cell is contained in a TreeStore or a ListStore (both subclasses of TreeModel). Each CellRenderer may have several attributes. Each Attribute is associated with one column of the TreeModel database. Thus several columns of a TreeModel may be the supply for one TreeViewColumn.
Synopsis
data Attribute cr a = Attribute [String] [TMType] (a -> IO [GenericValue]) ([GenericValue] -> IO a)
cellRendererSet :: CellRendererClass cr => cr -> Attribute cr val -> val -> IO ()
cellRendererGet :: CellRendererClass cr => cr -> Attribute cr val -> IO val
Documentation
data Attribute cr a

Definition of the Attribute data type.

  • Each CellRenderer defines a set of attributes. They are used by the Mogul layer to generate columns in a TreeStore or ListStore.
Constructors
Attribute [String] [TMType] (a -> IO [GenericValue]) ([GenericValue] -> IO a)
cellRendererSet :: CellRendererClass cr => cr -> Attribute cr val -> val -> IO ()

Set a property statically.

  • Instead of using a TreeStore or ListStore to set properties of a CellRenderer this method allows to set such a property for the whole column.
cellRendererGet :: CellRendererClass cr => cr -> Attribute cr val -> IO val

Get a static property.

  • See cellRendererSet. Note that calling this function on a property of a CellRenderer object which retrieves its values from a ListStore or TreeStore will result in an abitrary value.
Produced by Haddock version 0.6