GimpUi.enum_icon_box_new_with_range

function enum_icon_box_new_with_range(enum_type: GObject.Type, minimum: Number(gint), maximum: Number(gint), icon_prefix: String, icon_size: Gtk.IconSize, callback: GObject.Callback): [return_value: Gtk.Widget, first_button: Gtk.Widget] {
    // Gjs wrapper for gimp_enum_icon_box_new_with_range()
}
  

Just like GimpUi.enum_icon_box_new, this function creates a group of radio buttons, but additionally it supports limiting the range of available enum values.

Since 2.10

enum_type

the GLib.Type of an enum.

minimum

the minumim enum value

maximum

the maximum enum value

icon_prefix

the prefix of the group of icon names to use.

icon_size

the icon size for the icons

callback

a callback to connect to the "toggled" signal of each Gtk.RadioButton that is created.

return_value

a new horizontal Gtk.Box holding a group of Gtk.RadioButtons.

first_button

Returns the first button in the created group.