GtkCellLayout {RGtk2.10} | R Documentation |
An interface for packing cells
gtkCellLayoutPackStart(object, cell, expand = TRUE)
gtkCellLayoutPackEnd(object, cell, expand = TRUE)
gtkCellLayoutReorder(object, cell, position)
gtkCellLayoutClear(object)
gtkCellLayoutSetAttributes(object, cell, ...)
gtkCellLayoutAddAttribute(object, cell, attribute, column)
gtkCellLayoutSetCellDataFunc(object, cell, func, func.data = NULL)
gtkCellLayoutClearAttributes(object, cell)
GInterface +----GtkCellLayout
GtkCellLayout is implemented by
GtkCellView
, GtkEntryCompletion
, GtkTreeViewColumn
, GtkComboBox
, GtkIconView
and GtkComboBoxEntry
.
GtkCellLayout
is an interface to be implemented by all objects which
want to provide a GtkTreeViewColumn-like
API for packing cells, setting
attributes and data funcs.
One of the notable features provided by implementations of GtkCellLayout
are attributes. Attributes let you set the properties
in flexible ways. They can just be set to constant values like regular
properties. But they can also be mapped to a column of the underlying
tree model with gtkCellLayoutSetAttributes
, which means that the value
of the attribute can change from cell to cell as they are rendered by the
cell renderer. Finally, it is possible to specify a function with
gtkCellLayoutSetCellDataFunc
that is called to determine the value
of the attribute for each cell that is rendered.
GtkCellLayout
GtkCellLayoutDataFunc(cell.layout, cell, tree.model, iter, data)
cell.layout
's cell renderer(s)
as appropriate.
cell.layout
GtkCellLayout
] a GtkCellLayout
cell
GtkCellRenderer
] the cell renderer whose value is to be settree.model
GtkTreeModel
] the modeliter
GtkTreeIter
] a GtkTreeIter
indicating the row to set the value fordata
gtkCellLayoutSetCellDataFunc
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gtk/GtkCellLayout.html