Gtk.CellArea.prototype.copy_context
function copy_context(context:Gtk.CellAreaContext):Gtk.CellAreaContext { // Gjs wrapper for gtk_cell_area_copy_context() }
This is sometimes needed for cases where rows need to share alignments in one orientation but may be separately grouped in the opposing orientation.
For instance, Gtk.IconView creates all icons (rows) to have the same width and the cells theirin to have the same horizontal alignments. However each row of icons may have a separate collective height. Gtk.IconView uses this to request the heights of each row based on a context which was already used to request all the row widths that are to be displayed.
Since 3.0
- context
the Gtk.CellAreaContext to copy
- Returns
a newly created Gtk.CellAreaContext copy of context.