GimpUi.prop_enum_check_button_new

function prop_enum_check_button_new(config: GObject.Object, property_name: String, label: String, false_value: Number(gint), true_value: Number(gint)): Gtk.Widget {
    // Gjs wrapper for gimp_prop_enum_check_button_new()
}
  

Creates a Gtk.CheckButton that displays and sets the specified property of type Enum. Note that this widget only allows two values for the enum, one corresponding to the "checked" state and the other to the "unchecked" state. If label is null, the property_name's nick will be used as label of the returned button.

Since 2.4

config

Object to which property is attached.

property_name

Name of enum property controlled by checkbutton.

label

Label to give checkbutton (including mnemonic).

false_value

Enum value corresponding to unchecked state.

true_value

Enum value corresponding to checked state.

Returns

The newly created Gtk.CheckButton widget.