Gtk.TreeView.prototype.insert_column_with_data_func
function insert_column_with_data_func(position:Number, title:String, cell:Gtk.CellRenderer, func:Gtk.TreeCellDataFunc):Number { // Gjs wrapper for gtk_tree_view_insert_column_with_data_func() }
Convenience function that inserts a new column into the Gtk.TreeView with the given cell renderer and a Gtk.TreeCellDataFunc to set cell renderer attributes (normally using data from the model). See also Gtk.set_cell_data_func, Gtk.pack_start. If tree_view has "fixed_height" mode enabled, then the new column will have its "sizing" property set to be GTK_TREE_VIEW_COLUMN_FIXED.
- position
Position to insert, -1 for append
- title
column title
- cell
cell renderer for column
- func
function to set attributes of cell renderer
- Returns
number of columns in the tree view post-insert