Function
GtkTreeCellDataFunc
Declaration
void
(* GtkTreeCellDataFunc) (
GtkTreeViewColumn* tree_column,
GtkCellRenderer* cell,
GtkTreeModel* tree_model,
GtkTreeIter* iter,
gpointer data
)
Description [src]
A function to set the properties of a cell instead of just using the
straight mapping between the cell and the model. This is useful for
customizing the cell renderer. For example, a function might get an
integer from the tree_model
, and render it to the “text” attribute of
“cell” by converting it to its written equivalent. This is set by
calling gtk_tree_view_column_set_cell_data_func().
Parameters
tree_column
-
Type:
GtkTreeViewColumn
A
GtkTreeViewColumn
.The data is owned by the caller of the function. cell
-
Type:
GtkCellRenderer
The
GtkCellRenderer
that is being rendered bytree_column
.The data is owned by the caller of the function. tree_model
-
Type:
GtkTreeModel
The
GtkTreeModel
being rendered.The data is owned by the caller of the function. iter
-
Type:
GtkTreeIter
A
GtkTreeIter
of the current row rendered.The data is owned by the caller of the function. data
-
Type:
gpointer
User data.
The argument can be NULL
.The data is owned by the caller of the function.