Gimp.ImageProcedure¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gimp.ImageProcedure(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A [class`Procedure`] subclass that makes it easier to write standard plug-in procedures that operate on drawables.
It automatically adds the standard
( [enum`RunMode`], [class`Image`], [class`Drawable`] )
arguments of an image procedure. It is possible to add additional arguments.
When invoked via [method`Procedure`.run], it unpacks these standard arguments and calls run_func which is a [callback`RunImageFunc`]. The “args” [struct`ValueArray`] of [callback`RunImageFunc`] only contains additionally added arguments.
- classmethod new(plug_in, name, proc_type, run_func)¶
- Parameters:
plug_in (
Gimp.PlugIn
) – aGimp.PlugIn
.name (
str
) – the new procedure’s name.proc_type (
Gimp.PDBProcType
) – the new procedure’sGimp.PDBProcType
.run_func (
Gimp.RunImageFunc
) – the run function for the new procedure.
- Returns:
a new
Gimp.Procedure
.- Return type:
Creates a new image procedure named name which will call run_func when invoked.
See [ctor`Procedure`.new] for information about proc_type.
New in version 3.0.