diff --git a/libgimp/gimp.def b/libgimp/gimp.def index 8bfc2baef9..b0b0e3ce53 100644 --- a/libgimp/gimp.def +++ b/libgimp/gimp.def @@ -738,9 +738,111 @@ EXPORTS gimp_procedure_add_argument_from_property gimp_procedure_add_aux_argument gimp_procedure_add_aux_argument_from_property + gimp_procedure_add_boolean_argument + gimp_procedure_add_boolean_aux_argument + gimp_procedure_add_boolean_return_value + gimp_procedure_add_brush_argument + gimp_procedure_add_brush_aux_argument + gimp_procedure_add_brush_return_value + gimp_procedure_add_bytes_argument + gimp_procedure_add_bytes_aux_argument + gimp_procedure_add_bytes_return_value + gimp_procedure_add_channel_argument + gimp_procedure_add_channel_aux_argument + gimp_procedure_add_channel_return_value + gimp_procedure_add_choice_argument + gimp_procedure_add_choice_aux_argument + gimp_procedure_add_choice_return_value + gimp_procedure_add_color_argument + gimp_procedure_add_color_aux_argument + gimp_procedure_add_color_from_string_argument + gimp_procedure_add_color_from_string_aux_argument + gimp_procedure_add_color_from_string_return_value + gimp_procedure_add_color_return_value + gimp_procedure_add_display_argument + gimp_procedure_add_display_aux_argument + gimp_procedure_add_display_return_value + gimp_procedure_add_double_argument + gimp_procedure_add_double_aux_argument + gimp_procedure_add_double_return_value + gimp_procedure_add_drawable_argument + gimp_procedure_add_drawable_aux_argument + gimp_procedure_add_drawable_return_value + gimp_procedure_add_enum_argument + gimp_procedure_add_enum_aux_argument + gimp_procedure_add_enum_return_value + gimp_procedure_add_file_argument + gimp_procedure_add_file_aux_argument + gimp_procedure_add_file_return_value + gimp_procedure_add_float_array_argument + gimp_procedure_add_float_array_aux_argument + gimp_procedure_add_float_array_return_value + gimp_procedure_add_font_argument + gimp_procedure_add_font_aux_argument + gimp_procedure_add_font_return_value + gimp_procedure_add_gradient_argument + gimp_procedure_add_gradient_aux_argument + gimp_procedure_add_gradient_return_value + gimp_procedure_add_image_argument + gimp_procedure_add_image_aux_argument + gimp_procedure_add_image_return_value + gimp_procedure_add_int32_array_argument + gimp_procedure_add_int32_array_aux_argument + gimp_procedure_add_int32_array_return_value + gimp_procedure_add_int_argument + gimp_procedure_add_int_aux_argument + gimp_procedure_add_int_return_value + gimp_procedure_add_item_argument + gimp_procedure_add_item_aux_argument + gimp_procedure_add_item_return_value + gimp_procedure_add_layer_argument + gimp_procedure_add_layer_aux_argument + gimp_procedure_add_layer_mask_argument + gimp_procedure_add_layer_mask_aux_argument + gimp_procedure_add_layer_mask_return_value + gimp_procedure_add_layer_return_value gimp_procedure_add_menu_path + gimp_procedure_add_object_array_argument + gimp_procedure_add_object_array_aux_argument + gimp_procedure_add_object_array_return_value + gimp_procedure_add_palette_argument + gimp_procedure_add_palette_aux_argument + gimp_procedure_add_palette_return_value + gimp_procedure_add_param_argument + gimp_procedure_add_param_aux_argument + gimp_procedure_add_param_return_value + gimp_procedure_add_parasite_argument + gimp_procedure_add_parasite_aux_argument + gimp_procedure_add_parasite_return_value + gimp_procedure_add_pattern_argument + gimp_procedure_add_pattern_aux_argument + gimp_procedure_add_pattern_return_value + gimp_procedure_add_resource_argument + gimp_procedure_add_resource_aux_argument + gimp_procedure_add_resource_return_value gimp_procedure_add_return_value gimp_procedure_add_return_value_from_property + gimp_procedure_add_selection_argument + gimp_procedure_add_selection_aux_argument + gimp_procedure_add_selection_return_value + gimp_procedure_add_string_argument + gimp_procedure_add_string_array_argument + gimp_procedure_add_string_array_aux_argument + gimp_procedure_add_string_array_return_value + gimp_procedure_add_string_aux_argument + gimp_procedure_add_string_return_value + gimp_procedure_add_text_layer_argument + gimp_procedure_add_text_layer_aux_argument + gimp_procedure_add_text_layer_return_value + gimp_procedure_add_uint_argument + gimp_procedure_add_uint_aux_argument + gimp_procedure_add_uint_return_value + gimp_procedure_add_unit_argument + gimp_procedure_add_unit_aux_argument + gimp_procedure_add_unit_return_value + gimp_procedure_add_vectors_argument + gimp_procedure_add_vectors_aux_argument + gimp_procedure_add_vectors_return_value gimp_procedure_config_get_choice_id gimp_procedure_config_get_procedure gimp_procedure_config_get_type diff --git a/libgimp/gimpprocedure-params.c b/libgimp/gimpprocedure-params.c new file mode 100644 index 0000000000..c21a473ad1 --- /dev/null +++ b/libgimp/gimpprocedure-params.c @@ -0,0 +1,2806 @@ +/* LIBGIMP - The GIMP Library + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpprocedure-params.c + * Copyright (C) 2019 Michael Natterer + * + * This library is free software: you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * . + */ + +#include "config.h" + +#include + +#include "gimp.h" + +#include "gimpprocedure-params.h" + +#include "libgimp-intl.h" + + +/** + * gimp_procedure_add_boolean_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @value: the default value. + * @flags: argument flags. + * + * Add a new boolean argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_boolean_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_boolean (name, nick, blurb, + value, flags)); +} + +/** + * gimp_procedure_add_boolean_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @value: the default value. + * @flags: argument flags. + * + * Add a new boolean auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_boolean_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_boolean (name, nick, blurb, + value, flags)); +} + +/** + * gimp_procedure_add_boolean_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @value: the default value. + * @flags: argument flags. + * + * Add a new boolean return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_boolean_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_boolean (name, nick, blurb, + value, flags)); +} + +/** + * gimp_procedure_add_int_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new integer argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_int_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gint min, + gint max, + gint value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_int (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_int_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new integer auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_int_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gint min, + gint max, + gint value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_int (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_int_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new integer return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_int_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gint min, + gint max, + gint value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_int (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_uint_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new unsigned integer argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_uint_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + guint min, + guint max, + guint value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_uint (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_uint_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new unsigned integer auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_uint_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + guint min, + guint max, + guint value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_uint (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_uint_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new unsigned integer return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_uint_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + guint min, + guint max, + guint value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_uint (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_unit_argument: + * @procedure: the #GimpProcedure. + * @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. + * + * Add a new #GimpUnit argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_unit_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean show_pixels, + gboolean show_percent, + GimpUnit value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_unit (name, nick, blurb, + show_pixels, show_percent, + value, flags)); +} + +/** + * gimp_procedure_add_unit_aux_argument: + * @procedure: the #GimpProcedure. + * @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. + * + * Add a new #GimpUnit auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_unit_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean show_pixels, + gboolean show_percent, + GimpUnit value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_unit (name, nick, blurb, + show_pixels, show_percent, + value, flags)); +} + +/** + * gimp_procedure_add_unit_return_value: + * @procedure: the #GimpProcedure. + * @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. + * + * Add a new #GimpUnit return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_unit_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean show_pixels, + gboolean show_percent, + GimpUnit value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_unit (name, nick, blurb, + show_pixels, show_percent, + value, flags)); +} + +/** + * gimp_procedure_add_double_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new double argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_double_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gdouble min, + gdouble max, + gdouble value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_double (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_double_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new double auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_double_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gdouble min, + gdouble max, + gdouble value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_double (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_double_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @min: the minimum value for this argument + * @max: the maximum value for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new double return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_double_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gdouble min, + gdouble max, + gdouble value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_double (name, nick, blurb, + min, max, value, + flags)); +} + +/** + * gimp_procedure_add_enum_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @enum_type: the #GType for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new enum argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_enum_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType enum_type, + gint value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_enum (name, nick, blurb, + enum_type, value, + flags)); +} + +/** + * gimp_procedure_add_enum_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @enum_type: the #GType for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new enum auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_enum_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType enum_type, + gint value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_enum (name, nick, blurb, + enum_type, value, + flags)); +} + +/** + * gimp_procedure_add_enum_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @enum_type: the #GType for this argument + * @value: the default value. + * @flags: argument flags. + * + * Add a new enum return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_enum_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType enum_type, + gint value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_enum (name, nick, blurb, + enum_type, value, + flags)); +} + +/** + * gimp_procedure_add_choice_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @choice: (transfer full): the #GimpChoice + * @value: the default value for #GimpChoice. + * @flags: argument flags. + * + * Add a new #GimpChoice argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_choice_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GimpChoice *choice, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_choice (name, nick, blurb, + choice, value, flags)); +} + +/** + * gimp_procedure_add_choice_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @choice: the #GimpChoice + * @value: the default value for #GimpChoice. + * @flags: argument flags. + * + * Add a new #GimpChoice auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_choice_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GimpChoice *choice, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_choice (name, nick, blurb, + choice, value, flags)); +} + +/** + * gimp_procedure_add_choice_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @choice: the #GimpChoice + * @value: the default value for #GimpChoice. + * @flags: argument flags. + * + * Add a new #GimpChoice return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_choice_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GimpChoice *choice, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_choice (name, nick, blurb, + choice, value, flags)); +} + +/** + * gimp_procedure_add_string_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @value: the default value. + * @flags: argument flags. + * + * Add a new string argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_string_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_string (name, nick, blurb, + value, flags)); +} + +/** + * gimp_procedure_add_string_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @value: the default value. + * @flags: argument flags. + * + * Add a new string auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_string_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_string (name, nick, blurb, + value, flags)); +} + +/** + * gimp_procedure_add_string_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @value: the default value. + * @flags: argument flags. + * + * Add a new string return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_string_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_string (name, nick, blurb, + value, flags)); +} + +/** + * gimp_procedure_add_color_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @has_alpha: whether the argument has transparency. + * @value: the default #GeglColor value. + * @flags: argument flags. + * + * Add a new #GeglColor argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_color_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + GeglColor *value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_color (name, nick, blurb, + has_alpha, value, flags)); +} + +/** + * gimp_procedure_add_color_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @has_alpha: whether the argument has transparency. + * @value: the default #GeglColor value. + * @flags: argument flags. + * + * Add a new #GeglColor auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_color_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + GeglColor *value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_color (name, nick, blurb, + has_alpha, value, flags)); +} + +/** + * gimp_procedure_add_color_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @has_alpha: whether the argument has transparency. + * @value: the default #GeglColor value. + * @flags: argument flags. + * + * Add a new #GeglColor return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_color_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + GeglColor *value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_color (name, nick, blurb, + has_alpha, value, flags)); +} + +/** + * gimp_procedure_add_color_from_string_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @has_alpha: whether the argument has transparency. + * @value: the default #GeglColor value. + * @flags: argument flags. + * + * Add a new #GeglColor argument to @procedure from a string representation. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_color_from_string_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_color_from_string (name, nick, blurb, + has_alpha, value, + flags)); +} + +/** + * gimp_procedure_add_color_from_string_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @has_alpha: whether the argument has transparency. + * @value: the default #GeglColor value. + * @flags: argument flags. + * + * Add a new #GeglColor auxiliary argument to @procedure from a string representation. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_color_from_string_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_color_from_string (name, nick, blurb, + has_alpha, value, + flags)); +} + +/** + * gimp_procedure_add_color_from_string_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @has_alpha: whether the argument has transparency. + * @value: the default #GeglColor value. + * @flags: argument flags. + * + * Add a new #GeglColor return value to @procedure from a string representation. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_color_from_string_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + const gchar *value, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_color_from_string (name, nick, blurb, + has_alpha, value, + flags)); +} + +/** + * gimp_procedure_add_parasite_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpParasite argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_parasite_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_parasite (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_parasite_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpParasite auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_parasite_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_parasite (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_parasite_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpParasite return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_parasite_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_parasite (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_param_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @param_type: the #GPParamType for this argument + * @flags: argument flags. + * + * Add a new param argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_param_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType param_type, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_param (name, nick, blurb, + param_type, flags)); +} + +/** + * gimp_procedure_add_param_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @param_type: the #GPParamType for this argument + * @flags: argument flags. + * + * Add a new param auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_param_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType param_type, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_param (name, nick, blurb, + param_type, flags)); +} + +/** + * gimp_procedure_add_param_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @param_type: the #GPParamType for this argument + * @flags: argument flags. + * + * Add a new param return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_param_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType param_type, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_param (name, nick, blurb, + param_type, flags)); +} + +/** + * gimp_procedure_add_bytes_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GBytes argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_bytes_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_boxed (name, nick, blurb, + G_TYPE_BYTES, flags)); +} + +/** + * gimp_procedure_add_bytes_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GBytes auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_bytes_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_boxed (name, nick, blurb, + G_TYPE_BYTES, flags)); +} + +/** + * gimp_procedure_add_bytes_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GBytes return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_bytes_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_boxed (name, nick, blurb, + G_TYPE_BYTES, flags)); +} + +/** + * gimp_procedure_add_int32_array_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new integer array argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_int32_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_int32_array (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_int32_array_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new integer array auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_int32_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_int32_array (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_int32_array_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new integer array return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_int32_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_int32_array (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_float_array_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new float array argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_float_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_float_array (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_float_array_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new float array auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_float_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_float_array (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_float_array_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new float array return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_float_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_float_array (name, nick, blurb, + flags)); +} + +/** + * gimp_procedure_add_string_array_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new string array argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_string_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_boxed (name, nick, blurb, + G_TYPE_STRV, flags)); +} + +/** + * gimp_procedure_add_string_array_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new string array auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_string_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_boxed (name, nick, blurb, + G_TYPE_STRV, flags)); +} + +/** + * gimp_procedure_add_string_array_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new string array return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_string_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_boxed (name, nick, blurb, + G_TYPE_STRV, flags)); +} + +/** + * gimp_procedure_add_object_array_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @object_type the type of object stored in the array + * @flags: argument flags. + * + * Add a new object array argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_object_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType object_type, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_object_array (name, nick, blurb, + object_type, flags)); +} + +/** + * gimp_procedure_add_object_array_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @object_type the type of object stored in the array + * @flags: argument flags. + * + * Add a new object array auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_object_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType object_type, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_object_array (name, nick, blurb, + object_type, flags)); +} + +/** + * gimp_procedure_add_object_array_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @object_type the type of object stored in the array + * @flags: argument flags. + * + * Add a new object array return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_object_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType object_type, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_object_array (name, nick, blurb, + object_type, flags)); +} + +/** + * gimp_procedure_add_display_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpDisplay argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_display_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_display (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_display_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpDisplay auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_display_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_display (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_display_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpDisplay return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_display_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_display (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_image_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpImage argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_image_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_image (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_image_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpImage auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_image_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_image (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_image_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpImage return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_image_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_image (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_item_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpItem argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_item_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_item (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_item_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpItem auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_item_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_item (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_item_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpItem return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_item_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_item (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_drawable_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpDrawable argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_drawable_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_drawable (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_drawable_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpDrawable auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_drawable_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_drawable (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_drawable_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpDrawable return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_drawable_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_drawable (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_layer_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpLayer argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_layer_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_layer (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_layer_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpLayer auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_layer_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_layer (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_layer_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpLayer return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_layer_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_layer (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_text_layer_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpTextLayer argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_text_layer_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_text_layer (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_text_layer_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpTextLayer auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_text_layer_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_text_layer (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_text_layer_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpTextLayer return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_text_layer_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_text_layer (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_channel_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpChannel argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_channel_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_channel (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_channel_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpChannel auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_channel_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_channel (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_channel_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpChannel return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_channel_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_channel (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_layer_mask_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpLayerMask argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_layer_mask_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_layer_mask (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_layer_mask_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpLayerMask auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_layer_mask_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_layer_mask (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_layer_mask_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpLayerMask return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_layer_mask_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_layer_mask (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_selection_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpSelection argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_selection_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_selection (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_selection_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpSelection auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_selection_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_selection (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_selection_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpSelection return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_selection_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_selection (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_vectors_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpVectors argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_vectors_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_vectors (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_vectors_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpVectors auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_vectors_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_vectors (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_vectors_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @none_ok: Whether no is a valid value. + * @flags: argument flags. + * + * Add a new #GimpVectors return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_vectors_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_vectors (name, nick, blurb, + none_ok, flags)); +} + +/** + * gimp_procedure_add_file_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GFile argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_file_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + g_param_spec_object (name, nick, blurb, + G_TYPE_FILE, flags)); +} + +/** + * gimp_procedure_add_file_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GFile auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_file_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + g_param_spec_object (name, nick, blurb, + G_TYPE_FILE, flags)); +} + +/** + * gimp_procedure_add_file_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GFile return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_file_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + g_param_spec_object (name, nick, blurb, + G_TYPE_FILE, flags)); +} + +/** + * gimp_procedure_add_resource_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpResource argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_resource_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_resource (name, nick, blurb, + GIMP_TYPE_RESOURCE, + flags)); +} + +/** + * gimp_procedure_add_resource_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpResource auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_resource_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_resource (name, nick, blurb, + GIMP_TYPE_RESOURCE, + flags)); +} + +/** + * gimp_procedure_add_resource_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpResource return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_resource_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_resource (name, nick, blurb, + GIMP_TYPE_RESOURCE, + flags)); +} + +/** + * gimp_procedure_add_brush_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpBrush argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_brush_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_brush (name, nick, blurb, + GIMP_TYPE_BRUSH, flags)); +} + +/** + * gimp_procedure_add_brush_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpBrush auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_brush_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_brush (name, nick, blurb, + GIMP_TYPE_BRUSH, flags)); +} + +/** + * gimp_procedure_add_brush_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpBrush return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_brush_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_brush (name, nick, blurb, + GIMP_TYPE_BRUSH, flags)); +} + +/** + * gimp_procedure_add_font_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpFont argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_font_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_font (name, nick, blurb, + GIMP_TYPE_FONT, flags)); +} + +/** + * gimp_procedure_add_font_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpFont auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_font_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_font (name, nick, blurb, + GIMP_TYPE_FONT, flags)); +} + +/** + * gimp_procedure_add_font_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpFont return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_font_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_font (name, nick, blurb, + GIMP_TYPE_FONT, flags)); +} + +/** + * gimp_procedure_add_gradient_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpGradient argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_gradient_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_gradient (name, nick, blurb, + GIMP_TYPE_GRADIENT, flags)); +} + +/** + * gimp_procedure_add_gradient_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpGradient auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_gradient_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_gradient (name, nick, blurb, + GIMP_TYPE_GRADIENT, flags)); +} + +/** + * gimp_procedure_add_gradient_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpGradient return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_gradient_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_gradient (name, nick, blurb, + GIMP_TYPE_GRADIENT, flags)); +} + +/** + * gimp_procedure_add_palette_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpPalette argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_palette_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_palette (name, nick, blurb, + GIMP_TYPE_PALETTE, flags)); +} + +/** + * gimp_procedure_add_palette_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpPalette auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_palette_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_palette (name, nick, blurb, + GIMP_TYPE_PALETTE, flags)); +} + +/** + * gimp_procedure_add_palette_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpPalette return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_palette_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_palette (name, nick, blurb, + GIMP_TYPE_PALETTE, flags)); +} + +/** + * gimp_procedure_add_pattern_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpPattern argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_pattern_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_argument (procedure, + gimp_param_spec_pattern (name, nick, blurb, + GIMP_TYPE_PATTERN, flags)); +} + +/** + * gimp_procedure_add_pattern_aux_argument: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpPattern auxiliary argument to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_aux_argument]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_pattern_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_aux_argument (procedure, + gimp_param_spec_pattern (name, nick, blurb, + GIMP_TYPE_PATTERN, flags)); +} + +/** + * gimp_procedure_add_pattern_return_value: + * @procedure: the #GimpProcedure. + * @name: the name of the argument to be created. + * @nick: the label used in #GimpProcedureDialog. + * @blurb: a more detailed help description. + * @flags: argument flags. + * + * Add a new #GimpPattern return value to @procedure. + * This function is a utility wrapper over the generic [method@Procedure.add_return_value]. + * + * Since: 3.0 + **/ +void +gimp_procedure_add_pattern_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags) +{ + gimp_procedure_add_return_value (procedure, + gimp_param_spec_pattern (name, nick, blurb, + GIMP_TYPE_PATTERN, flags)); +} diff --git a/libgimp/gimpprocedure-params.h b/libgimp/gimpprocedure-params.h index 0c6c0bdb11..f78c470245 100644 --- a/libgimp/gimpprocedure-params.h +++ b/libgimp/gimpprocedure-params.h @@ -124,24 +124,6 @@ G_BEGIN_DECLS /* uchar */ -#define GIMP_PROC_ARG_UCHAR(procedure, name, nick, blurb, min, max, default, flags) \ - gimp_procedure_add_argument (procedure,\ - g_param_spec_uchar (name, nick, blurb,\ - min, max, default,\ - flags)) - -#define GIMP_PROC_AUX_ARG_UCHAR(procedure, name, nick, blurb, min, max, default, flags) \ - gimp_procedure_add_aux_argument (procedure,\ - g_param_spec_uchar (name, nick, blurb,\ - min, max, default,\ - flags)) - -#define GIMP_PROC_VAL_UCHAR(procedure, name, nick, blurb, min, max, default, flags) \ - gimp_procedure_add_return_value (procedure,\ - g_param_spec_uchar (name, nick, blurb,\ - min, max, default,\ - flags)) - #define GIMP_VALUES_GET_UCHAR(args, n) \ g_value_get_uchar (gimp_value_array_index (args, n)) @@ -745,7 +727,7 @@ G_BEGIN_DECLS #define GIMP_PROC_VAL_CHANNEL(procedure, name, nick, blurb, none_ok, flags) \ gimp_procedure_add_return_value (procedure,\ - gimp_param_spec_channe (name, nick, blurb,\ + gimp_param_spec_channel (name, nick, blurb,\ none_ok,\ flags)) @@ -946,6 +928,653 @@ G_BEGIN_DECLS #define GIMP_VALUES_SET_PATTERN(args, n, value) \ g_value_set_object (gimp_value_array_index (args, n), value) +void gimp_procedure_add_boolean_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean value, + GParamFlags flags); +void gimp_procedure_add_boolean_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean value, + GParamFlags flags); +void gimp_procedure_add_boolean_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean value, + GParamFlags flags); + +void gimp_procedure_add_int_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gint min, + gint max, + gint value, + GParamFlags flags); +void gimp_procedure_add_int_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gint min, + gint max, + gint value, + GParamFlags flags); +void gimp_procedure_add_int_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gint min, + gint max, + gint value, + GParamFlags flags); + +void gimp_procedure_add_uint_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + guint min, + guint max, + guint value, + GParamFlags flags); +void gimp_procedure_add_uint_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + guint min, + guint max, + guint value, + GParamFlags flags); +void gimp_procedure_add_uint_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + guint min, + guint max, + guint value, + GParamFlags flags); + +void gimp_procedure_add_unit_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean show_pixels, + gboolean show_percent, + GimpUnit value, + GParamFlags flags); +void gimp_procedure_add_unit_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean show_pixels, + gboolean show_percent, + GimpUnit value, + GParamFlags flags); +void gimp_procedure_add_unit_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean show_pixels, + gboolean show_percent, + GimpUnit value, + GParamFlags flags); + +void gimp_procedure_add_double_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gdouble min, + gdouble max, + gdouble value, + GParamFlags flags); +void gimp_procedure_add_double_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gdouble min, + gdouble max, + gdouble value, + GParamFlags flags); +void gimp_procedure_add_double_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gdouble min, + gdouble max, + gdouble value, + GParamFlags flags); + +void gimp_procedure_add_enum_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType enum_type, + gint value, + GParamFlags flags); +void gimp_procedure_add_enum_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType enum_type, + gint value, + GParamFlags flags); +void gimp_procedure_add_enum_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType enum_type, + gint value, + GParamFlags flags); + +void gimp_procedure_add_choice_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GimpChoice *choice, + const gchar *value, + GParamFlags flags); +void gimp_procedure_add_choice_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GimpChoice *choice, + const gchar *value, + GParamFlags flags); +void gimp_procedure_add_choice_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GimpChoice *choice, + const gchar *value, + GParamFlags flags); + +void gimp_procedure_add_string_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + const gchar *value, + GParamFlags flags); +void gimp_procedure_add_string_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + const gchar *value, + GParamFlags flags); +void gimp_procedure_add_string_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + const gchar *value, + GParamFlags flags); + +void gimp_procedure_add_color_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + GeglColor *value, + GParamFlags flags); +void gimp_procedure_add_color_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + GeglColor *value, + GParamFlags flags); +void gimp_procedure_add_color_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + GeglColor *value, + GParamFlags flags); + +void gimp_procedure_add_color_from_string_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + const gchar *value, + GParamFlags flags); +void gimp_procedure_add_color_from_string_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + const gchar *value, + GParamFlags flags); +void gimp_procedure_add_color_from_string_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean has_alpha, + const gchar *value, + GParamFlags flags); + +void gimp_procedure_add_parasite_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_parasite_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_parasite_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_param_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType param_type, + GParamFlags flags); +void gimp_procedure_add_param_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType param_type, + GParamFlags flags); +void gimp_procedure_add_param_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType param_type, + GParamFlags flags); + +void gimp_procedure_add_bytes_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_bytes_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_bytes_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_int32_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_int32_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_int32_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_float_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_float_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_float_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_string_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_string_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_string_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_object_array_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType object_type, + GParamFlags flags); +void gimp_procedure_add_object_array_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType object_type, + GParamFlags flags); +void gimp_procedure_add_object_array_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GType object_type, + GParamFlags flags); + +void gimp_procedure_add_display_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_display_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_display_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_image_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_image_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_image_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_item_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_item_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_item_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_drawable_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_drawable_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_drawable_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_layer_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_layer_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_layer_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_text_layer_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_text_layer_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_text_layer_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_channel_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_channel_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_channel_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_layer_mask_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_layer_mask_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_layer_mask_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_selection_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_selection_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_selection_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_vectors_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_vectors_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); +void gimp_procedure_add_vectors_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean none_ok, + GParamFlags flags); + +void gimp_procedure_add_file_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_file_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_file_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_resource_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_resource_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_resource_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_brush_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_brush_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_brush_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_font_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_font_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_font_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_gradient_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_gradient_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_gradient_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_palette_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_palette_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_palette_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + +void gimp_procedure_add_pattern_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_pattern_aux_argument (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +void gimp_procedure_add_pattern_return_value (GimpProcedure *procedure, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); + + G_END_DECLS #endif /* __GIMP_PROCEDURE_PARAMS_H__ */ diff --git a/libgimp/meson.build b/libgimp/meson.build index fc8b1a6544..96a3d1752c 100644 --- a/libgimp/meson.build +++ b/libgimp/meson.build @@ -194,6 +194,7 @@ libgimp_sources_introspectable = [ 'gimppdb.c', 'gimpplugin.c', 'gimpprocedure.c', + 'gimpprocedure-params.c', 'gimpprocedureconfig.c', 'gimpprogress.c', 'gimpresource.c', @@ -253,6 +254,7 @@ libgimp_headers_introspectable = [ 'gimppdb.h', 'gimpplugin.h', 'gimpprocedure.h', + 'gimpprocedure-params.h', 'gimpprocedureconfig.h', 'gimpprogress.h', 'gimpresource.h', @@ -268,7 +270,6 @@ libgimp_headers_introspectable = [ libgimp_headers = [ libgimp_headers_introspectable, - 'gimpprocedure-params.h', ] libgimpui_sources_introspectable = [