Gtk.CellRendererToggle.new

function new():Gtk.CellRenderer {
    // Gjs wrapper for gtk_cell_renderer_toggle_new()
}

Creates a new Gtk.CellRendererToggle. Adjust rendering parameters 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 "active" property on the cell renderer to a boolean value in the model, thus causing the check button to reflect the state of the model.

Returns

the new cell renderer