TreeCellDataFunc


Description:

[ CCode ( instance_pos = 4.9 ) ]
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 function 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.

See also: gtk_tree_view_column_set_cell_data_func

Parameters:

tree_column

A `GtkTreeViewColumn`

cell

The `GtkCellRenderer` that is being rendered by tree_column

tree_model

The `GtkTreeModel` being rendered

iter

A `GtkTreeIter` of the current row rendered

data

user data


Namespace: Gtk
Package: gtk4



2022 vala-language.org