mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
libgimp: add missing stuff to gimpprocedure-params.h
Add some accessors, and the complete set of macros for GimpParasite and GParamSpec.
This commit is contained in:
parent
cb24709916
commit
c6082b37f8
1 changed files with 62 additions and 0 deletions
|
@ -97,6 +97,12 @@ G_BEGIN_DECLS
|
|||
min, max, default,\
|
||||
flags))
|
||||
|
||||
#define GIMP_VALUES_GET_UINT(args, n) \
|
||||
g_value_get_uint (gimp_value_array_index (args, n))
|
||||
|
||||
#define GIMP_VALUES_SET_UINT(args, n, value) \
|
||||
g_value_set_uint (gimp_value_array_index (args, n), value)
|
||||
|
||||
|
||||
/* uchar */
|
||||
|
||||
|
@ -224,6 +230,56 @@ G_BEGIN_DECLS
|
|||
gimp_value_set_rgb (gimp_value_array_index (args, n), value)
|
||||
|
||||
|
||||
/* parasite */
|
||||
|
||||
#define GIMP_PROC_ARG_PARASITE(class, name, nick, blurb, flags) \
|
||||
gimp_procedure_add_argument (procedure,\
|
||||
gimp_param_spec_parasite (name, nick, blurb,\
|
||||
flags))
|
||||
|
||||
#define GIMP_PROC_VAL_PARASITE(class, name, nick, blurb, flags) \
|
||||
gimp_procedure_add_return_value (procedure,\
|
||||
gimp_param_spec_parasite (name, nick, blurb,\
|
||||
flags))
|
||||
|
||||
#define GIMP_VALUES_GET_PARASITE(args, n) \
|
||||
g_value_get_boxed (gimp_value_array_index (args, n))
|
||||
|
||||
#define GIMP_VALUES_DUP_PARASITE(args, n) \
|
||||
g_value_dup_boxed (gimp_value_array_index (args, n))
|
||||
|
||||
#define GIMP_VALUES_SET_PARASITE(args, n, value) \
|
||||
g_value_set_boxed (gimp_value_array_index (args, n), value)
|
||||
|
||||
#define GIMP_VALUES_TAKE_PARASITE(args, n, value) \
|
||||
g_value_take_boxed (gimp_value_array_index (args, n), value)
|
||||
|
||||
|
||||
/* param */
|
||||
|
||||
#define GIMP_PROC_ARG_PARAM(class, name, nick, blurb, param_type, flags) \
|
||||
gimp_procedure_add_argument (procedure,\
|
||||
g_param_spec_param (name, nick, blurb, param_type, \
|
||||
flags))
|
||||
|
||||
#define GIMP_PROC_VAL_PARAM(class, name, nick, blurb, param_type, flags) \
|
||||
gimp_procedure_add_return_value (procedure,\
|
||||
g_param_spec_param (name, nick, blurb, param_type, \
|
||||
flags))
|
||||
|
||||
#define GIMP_VALUES_GET_PARAM(args, n) \
|
||||
g_value_get_param (gimp_value_array_index (args, n))
|
||||
|
||||
#define GIMP_VALUES_DUP_PARAM(args, n) \
|
||||
g_value_dup_param (gimp_value_array_index (args, n))
|
||||
|
||||
#define GIMP_VALUES_SET_PARAM(args, n, value) \
|
||||
g_value_set_param (gimp_value_array_index (args, n), value)
|
||||
|
||||
#define GIMP_VALUES_TAKE_PARAM(args, n, value) \
|
||||
g_value_take_param (gimp_value_array_index (args, n), value)
|
||||
|
||||
|
||||
/* uint8 array */
|
||||
|
||||
#define GIMP_PROC_ARG_UINT8_ARRAY(class, name, nick, blurb, flags) \
|
||||
|
@ -388,6 +444,12 @@ G_BEGIN_DECLS
|
|||
none_ok, \
|
||||
flags))
|
||||
|
||||
#define GIMP_VALUES_GET_DISPLAY(args, n) \
|
||||
g_value_get_object (gimp_value_array_index (args, n))
|
||||
|
||||
#define GIMP_VALUES_SET_DISPLAY(args, n, value) \
|
||||
g_value_set_object (gimp_value_array_index (args, n), value)
|
||||
|
||||
|
||||
/* image */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue