Gtk.CellRenderer.prototype.render
function render(cr:cairo.Context, widget:Gtk.Widget, background_area:Gdk.Rectangle, cell_area:Gdk.Rectangle, flags:Gtk.CellRendererState):void { // Gjs wrapper for gtk_cell_renderer_render() }
Invokes the virtual render function of the Gtk.CellRenderer. The three passed-in rectangles are areas in cr. Most renderers will draw within cell_area; the xalign, yalign, xpad, and ypad fields of the Gtk.CellRenderer should be honored with respect to cell_area. background_area includes the blank space around the cell, and also the area containing the tree expander; so the background_area rectangles for all cells tile to cover the entire @window.
- cr
a cairo context to draw to
- widget
the widget owning @window
- background_area
entire cell area (including tree expanders and maybe padding on the sides)
- cell_area
area normally rendered by a cell renderer
- flags
flags that affect rendering