TreeCellDataFunc
Description:
[ CCode ( instance_pos = 4.9 ) ]
public delegate void TreeCellDataFunc (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
public delegate void TreeCellDataFunc (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
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 | |
cell |
The CellRenderer that is being rendered by |
tree_model |
The TreeModel being rendered |
iter |
A TreeIter of the current row rendered |
data |
user data |
Namespace: Gtk
Package: gtk+-3.0