ExportProcedure


Description:

[ CCode ( has_construct_function = false , type = "GimpProcedure*" ) ]
[ Version ( since = "3.0" ) ]
public ExportProcedure (PlugIn plug_in, string name, PDBProcType proc_type, bool export_metadata, owned RunExportFunc run_func)

Creates a new export procedure named name which will call run_func when invoked.

See Procedure for information about proc_type.

ExportProcedure is a Procedure subclass that makes it easier to write file export procedures.

It automatically adds the standard

(RunMode, Image, File, ExportOptions)

arguments of an export procedure. It is possible to add additional arguments.

When invoked via run, it unpacks these standard arguments and calls run_func which is a RunExportFunc. The ProcedureConfig of RunExportFunc only contains additionally added arguments.

If export_metadata is TRUE, then the class will also handle the metadata export if the format is supported by our backend. This requires you to also set appropriate MimeType with set_mime_types .

Parameters:

plug_in

a PlugIn.

name

the new procedure's name.

proc_type

the new procedure's PDBProcType.

export_metadata

whether GIMP should handle metadata exporting.

run_func

the run function for the new procedure.

run_data

user data passed to run_func.

run_data_destroy

free function for run_data, or null.

Returns:

a new Procedure.