Name

CellRenderer —

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
cellRendererGet:: CellRendererClass cr => cr -> Attribute cr val -> IO val
cellRendererSet:: CellRendererClass cr => cr -> Attribute cr val -> val -> IO ()

Datatypes

data Attribute

data Attribute cr a =Attribute [String][TMType](a -> IO [GenericValue])([GenericValue] -> IO a)

Methods

cellRendererGet

Get a static property.

cellRendererGet:: cr:: Attribute cr val:: IO val
cr(Attribute names _ _ read)

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.

cellRendererSet

Set a property statically.

cellRendererSet:: cr:: Attribute cr val:: val:: IO ()
cr(Attribute names _ write _)val

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.