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

An interface for packing cells

  • Module available since Gtk+ version 2.4
Synopsis
class GObjectClass o => CellLayoutClass o
toCellLayout :: CellLayoutClass o => o -> CellLayout
cellLayoutPackStart :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Bool -> IO ()
cellLayoutPackEnd :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Bool -> IO ()
cellLayoutReorder :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Int -> IO ()
cellLayoutClear :: CellLayoutClass self => self -> IO ()
cellLayoutSetAttributes :: (CellLayoutClass self, CellRendererClass cell, TreeModelClass (model row), TypedTreeModelClass model) => self -> cell -> model row -> (row -> [AttrOp cell]) -> IO ()
cellLayoutClearAttributes :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> IO ()
Detail
CellLayout is an interface which is implemented by all objects which provide a TreeViewColumn API for packing cells, setting attributes and data funcs.
Class Hierarchy
 |  Interface CellLayout
 |   +----TreeViewColumn
 |   +----CellView
 |   +----IconView
 |   +----EntryCompletion
 |   +----ComboBox
 |   +----ComboBoxEntry
 
Types
class GObjectClass o => CellLayoutClass o
show/hide Instances
toCellLayout :: CellLayoutClass o => o -> CellLayout
Methods
cellLayoutPackStart
:: (CellLayoutClass self, CellRendererClass cell)
=> self
-> cellcell - A CellRenderer.
-> Boolexpand - True if cell is to be given extra space allocated to cellLayout.
-> IO ()

Packs the cell into the beginning of the cell layout. If expand is False, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is True.

Note that reusing the same cell renderer is not supported.

cellLayoutPackEnd
:: (CellLayoutClass self, CellRendererClass cell)
=> self
-> cellcell - A CellRenderer.
-> Boolexpand - True if cell is to be given extra space allocated to cellLayout.
-> IO ()

Adds the cell to the end of cellLayout. If expand is False, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is True.

Note that reusing the same cell renderer is not supported.

cellLayoutReorder
:: (CellLayoutClass self, CellRendererClass cell)
=> self
-> cellcell - A CellRenderer to reorder.
-> Intposition - New position to insert cell at.
-> IO ()
Re-inserts cell at position. Note that cell has already to be packed into cellLayout for this to function properly.
cellLayoutClear :: CellLayoutClass self => self -> IO ()
Remove all renderers from the cell layout.
cellLayoutSetAttributes
:: (CellLayoutClass self, CellRendererClass cell, TreeModelClass (model row), TypedTreeModelClass model)
=> self
-> cellcell - A CellRenderer.
-> model rowmodel - A model containing rows of type row.
-> (row -> [AttrOp cell])Function to set attributes on the cell renderer.
-> IO ()
Insert a CellRenderer cell into the layout and specify how a row of the store defines the attributes of this renderer.
cellLayoutClearAttributes
:: (CellLayoutClass self, CellRendererClass cell)
=> self
-> cellcell - A CellRenderer to clear the attribute mapping on.
-> IO ()
Clears all existing attributes previously set with cellLayoutSetAttributes.
Produced by Haddock version 0.8