Gimp.Procedure.prototype.add_unit_argument
function add_unit_argument(name: String, nick: String, blurb: String, show_pixels: Boolean, show_percent: Boolean, value: Gimp.Unit, flags: GObject.ParamFlags): void {
// Gjs wrapper for gimp_procedure_add_unit_argument()
}
Add a new Gimp.Unit argument to procedure.
Since 3.0
- name
the name of the argument to be created.
- nick
the label used in #GimpProcedureDialog.
- blurb
a more detailed help description.
- show_pixels
whether to allow pixels as a valid option
- show_percent
whether to allow percent as a valid option
- value
the default value.
- flags
argument flags.