BatchProcedure


Description:

[ CCode ( has_construct_function = false , type = "GimpProcedure*" ) ]
[ Version ( since = "3.0" ) ]
public BatchProcedure (PlugIn plug_in, string name, string interpreter_name, PDBProcType proc_type, owned BatchFunc run_func)

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

See Procedure for information about proc_type.

BatchProcedure is a Procedure subclass that makes it easier to write batch interpreter procedures.

It automatically adds the standard

(RunMode, char)

arguments of a batch procedure. It is possible to add additional arguments.

When invoked via run, it unpacks these standard arguments and calls run_func which is a BatchFunc. The "args" ValueArray of GimpRunSaveFunc only contains additionally added arguments.

Parameters:

plug_in

a PlugIn.

name

the new procedure's name.

interpreter_name

the public-facing name, e.g. "Python 3".

proc_type

the new procedure's PDBProcType.

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.