Gtk2HsContentsIndex
Graphics.UI.Gtk.TreeList.CellView
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Contents
Detail
Class Hierarchy
Types
Constructors
Methods
Attributes
Description

A widget displaying a single row of a TreeModel

  • Module available since Gtk+ version 2.6
Synopsis
data CellView
class WidgetClass o => CellViewClass o
castToCellView :: GObjectClass obj => obj -> CellView
cellViewNew :: IO CellView
cellViewNewWithMarkup :: String -> IO CellView
cellViewNewWithPixbuf :: Pixbuf -> IO CellView
cellViewNewWithText :: String -> IO CellView
cellViewSetModel :: (CellViewClass self, TreeModelClass model) => self -> model -> IO ()
cellViewSetDisplayedRow :: CellViewClass self => self -> TreePath -> IO ()
cellViewGetDisplayedRow :: CellViewClass self => self -> IO TreePath
cellViewGetSizeOfRow :: CellViewClass self => self -> TreePath -> IO Requisition
cellViewSetBackgroundColor :: CellViewClass self => self -> Color -> IO ()
cellViewGetCellRenderers :: CellViewClass self => self -> IO [CellRenderer]
cellViewDisplayedRow :: CellViewClass self => Attr self TreePath
Detail
A CellView displays a single row of a TreeModel, using cell renderers just like TreeView. CellView doesn't support some of the more complex features of TreeView, like cell editing and drag and drop.
Class Hierarchy
 |  GObject
 |   +----Object
 |         +----Widget
 |               +----CellView
 
Types
data CellView
show/hide Instances
class WidgetClass o => CellViewClass o
show/hide Instances
castToCellView :: GObjectClass obj => obj -> CellView
Constructors
cellViewNew :: IO CellView
Creates a new CellView widget.
cellViewNewWithMarkup
:: Stringmarkup - the text to display in the cell view
-> IO CellView
Creates a new CellView widget, adds a CellRendererText to it, and makes its show markup. The text can text can be marked up with the Pango text markup language.
cellViewNewWithPixbuf
:: Pixbufpixbuf - the image to display in the cell view
-> IO CellView
Creates a new CellView widget, adds a CellRendererPixbuf to it, and makes its show pixbuf.
cellViewNewWithText
:: Stringtext - the text to display in the cell view
-> IO CellView
Creates a new CellView widget, adds a CellRendererText to it, and makes its show text.
Methods
cellViewSetModel
:: (CellViewClass self, TreeModelClass model)
=> self
-> modelmodel - a TreeModel
-> IO ()
Sets the model for cellView. If cellView already has a model set, it will remove it before setting the new model. If model is {NULL, FIXME: this should probably be converted to a Maybe data type}, then it will unset the old model.
cellViewSetDisplayedRow
:: CellViewClass self
=> self
-> TreePathpath - a TreePath or [] to unset.
-> IO ()
Sets the row of the model that is currently displayed by the CellView. If the path is unset, then the contents of the cellview "stick" at their last value; this is not normally a desired result, but may be a needed intermediate state if say, the model for the CellView becomes temporarily empty.
cellViewGetDisplayedRow :: CellViewClass self => self -> IO TreePath
cellViewGetSizeOfRow
:: CellViewClass self
=> self
-> TreePathpath - a TreePath
-> IO Requisitionreturns the size requisition
Returns the size needed by the cell view to display the model row pointed to by path.
cellViewSetBackgroundColor
:: CellViewClass self
=> self
-> Colorcolor - the new background color
-> IO ()
Sets the background color of view.
cellViewGetCellRenderers
:: CellViewClass self
=> self
-> IO [CellRenderer]returns a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with gListFree when no longer needed.
Returns the cell renderers which have been added to cellView.
Attributes
cellViewDisplayedRow :: CellViewClass self => Attr self TreePath
'displayedRow' property. See cellViewGetDisplayedRow and cellViewSetDisplayedRow
Produced by Haddock version 0.7