| Top |
| gboolean | supports-comment | Read / Write / Construct |
| gboolean | supports-exif | Read / Write / Construct |
| gboolean | supports-iptc | Read / Write / Construct |
| gboolean | supports-profile | Read / Write / Construct |
| gboolean | supports-thumbnail | Read / Write / Construct |
| gboolean | supports-xmp | Read / Write / Construct |
GimpValueArray * (*GimpRunSaveFunc) (GimpProcedure *procedure,GimpRunMode run_mode,GimpImage *image,gint n_drawables,GimpDrawable **drawables,GFile *file,const GimpValueArray *args,gpointer run_data);
The save function is run during the lifetime of the GIMP session, each time a plug-in save procedure is called.
procedure |
the GimpProcedure that runs. |
|
run_mode |
the GimpRunMode. |
|
image |
the image to save. |
|
n_drawables |
the number of drawables to save. |
|
drawables |
the drawables to save. |
[array length=n_drawables] |
file |
the GFile to save to. |
|
args |
the |
|
run_data |
the run_data given in |
[closure] |
Since: 3.0
GimpProcedure * gimp_save_procedure_new (GimpPlugIn *plug_in,const gchar *name,GimpPDBProcType proc_type,GimpRunSaveFunc run_func,gpointer run_data,GDestroyNotify run_data_destroy);
Creates a new save procedure named name
which will call run_func
when invoked.
See gimp_procedure_new() for information about proc_type
.
GimpSaveProcedure is a GimpProcedure subclass that makes it easier to write file save procedures.
It automatically adds the standard
(GimpRunMode, GimpImage, GimpDrawable, GFile)
arguments of a save procedure. It is possible to add additional arguments.
When invoked via gimp_procedure_run(), it unpacks these standard
arguments and calls run_func
which is a GimpRunSaveFunc. The
"args" GimpValueArray of GimpRunSaveFunc only contains
additionally added arguments.
plug_in |
a GimpPlugIn. |
|
name |
the new procedure's name. |
|
proc_type |
the new procedure's GimpPDBProcType. |
|
run_func |
the run function for the new procedure. |
|
run_data |
user data passed to |
|
run_data_destroy |
free function for |
[nullable] |
Since: 3.0
“supports-comment” property “supports-comment” gboolean
Owner: GimpSaveProcedure
Flags: Read / Write / Construct
Default value: FALSE
“supports-exif” property “supports-exif” gboolean
Owner: GimpSaveProcedure
Flags: Read / Write / Construct
Default value: FALSE
“supports-iptc” property “supports-iptc” gboolean
Owner: GimpSaveProcedure
Flags: Read / Write / Construct
Default value: FALSE
“supports-profile” property “supports-profile” gboolean
Owner: GimpSaveProcedure
Flags: Read / Write / Construct
Default value: FALSE
“supports-thumbnail” property “supports-thumbnail” gboolean
Owner: GimpSaveProcedure
Flags: Read / Write / Construct
Default value: FALSE