Gtk.CellRendererText.new
function new():Gtk.CellRenderer { // Gjs wrapper for gtk_cell_renderer_text_new() }
Creates a new Gtk.CellRendererText. Adjust how text is drawn using object properties. Object properties can be set globally (with GObject.set). Also, with Gtk.TreeViewColumn, you can bind a property to a value in a Gtk.TreeModel. For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the Gtk.TreeView
- Returns
the new cell renderer