|
| Graphics.UI.Gtk.TreeList.CellView | | Portability | portable (depends on GHC) | | Stability | provisional | | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
| Description |
A widget displaying a single row of a TreeModel
- Module available since Gtk+ version 2.6
|
|
| Synopsis |
|
|
|
|
| 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 |
Instances | |
|
|
| class WidgetClass o => CellViewClass o |
| Instances | |
|
|
| castToCellView :: GObjectClass obj => obj -> CellView |
|
| toCellView :: CellViewClass o => o -> CellView |
|
| Constructors
|
|
| cellViewNew :: IO CellView |
| Creates a new CellView widget.
|
|
| cellViewNewWithMarkup |
| :: String | markup - 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 |
|
|
| cellViewNewWithText |
|
|
| Methods
|
|
| cellViewSetModel |
| :: (CellViewClass self, TreeModelClass model) | | | => self | | | -> Maybe model | model - 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 Nothing, then
it will unset the old model.
|
|
|
| cellViewSetDisplayedRow |
| :: CellViewClass self | | | => self | | | -> TreePath | path - 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 (Maybe TreePath) |
| Returns a TreePath referring to the currently displayed row. If no row
is currently displayed, Nothing is returned.
|
|
| cellViewGetSizeOfRow |
|
|
| cellViewSetBackgroundColor |
| :: CellViewClass self | | | => self | | | -> Color | color - the new background color
| | -> IO () | | | Sets the background color of view.
|
|
|
| cellViewGetCellRenderers :: CellViewClass self => self -> IO [CellRenderer] |
| Returns the cell renderers which have been added to cellView.
|
|
| Attributes
|
|
| cellViewDisplayedRow :: CellViewClass self => ReadWriteAttr self (Maybe TreePath) TreePath |
| 'displayedRow' property. See cellViewGetDisplayedRow and
cellViewSetDisplayedRow
|
|
| Produced by Haddock version 0.8 |