Package ch.bailu.gtk.gtk
Interface TreeViewColumn.OnTreeCellDataFunc
- Enclosing class:
- TreeViewColumn
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onTreeCellDataFunc
(CallbackHandler __self, TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter, Pointer data) A function to set the properties of a cell instead of just using the
straight mapping between the cell and the model.
-
Method Details
-
onTreeCellDataFunc
void onTreeCellDataFunc(CallbackHandler __self, @Nonnull TreeViewColumn tree_column, @Nonnull CellRenderer cell, @Nonnull TreeModel tree_model, @Nonnull TreeIter iter, @Nullable Pointer data) 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_columntree_model
- The `GtkTreeModel` being renderediter
- A `GtkTreeIter` of the current row rendereddata
- user data
-