TreeCellDataFunc

typealias TreeCellDataFunc = (treeColumn: TreeViewColumn, cell: CellRenderer, treeModel: TreeModel, iter: TreeIter) -> Unit

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()

  • param treeColumn A GtkTreeViewColumn

  • param cell The GtkCellRenderer that is being rendered by @tree_column

  • param treeModel The GtkTreeModel being rendered

  • param iter A GtkTreeIter of the current row rendered