# GimpUi.prop_switch_new

    function prop_switch_new(config: GObject.Object, property_name: String, label: String): [return_value: Gtk.Widget, label_out: Gtk.Widget, switch_out: Gtk.Widget] {
        // Gjs wrapper for gimp_prop_switch_new()
    }

Creates a Gtk.Box with a switch and a label that displays and sets the specified boolean property. If label is null, the property_name's nick will be used as label.

Since 3.0

config

  Object to which property is attached.

property_name

  Name of boolean property controlled by checkbutton.

label

  Label to give checkbutton (including mnemonic).

return_value

  The newly created box containing a Gtk.Switch.

label_out

  The generated Gtk.Label

switch_out

  The generated Gtk.Switch