Gimp.ThumbnailProcedure¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gimp.ThumbnailProcedure(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(plug_in, name, proc_type, run_func, *run_data)¶
- 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.RunThumbnailFunc) – the run function for the new procedure.
- Returns:
a new
Gimp.Procedure.- Return type:
Creates a new thumbnail procedure named name which will call run_func when invoked.
See
Gimp.Procedure.new() for information about proc_type.Gimp.ThumbnailProcedureis aGimp.Proceduresubclass that makes it easier to write file thumbnail procedures.It automatically adds the standard
(
Gio.File, size)arguments and the standard
(
Gimp.Image, image-width, image-height,Gimp.ImageType, num-layers)return value of a thumbnail 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 aGimp.RunThumbnailFunc. The “args”Gimp.ValueArrayofGimp.RunThumbnailFunconly contains additionally added arguments.Gimp.RunThumbnailFuncmustGimp.ValueArray.truncate() the returnedGimp.ValueArrayto the number of return values it actually uses.New in version 3.0.