NAME
Gimp::OO - Pseudo-OO for Gimp functions.
SYNOPSIS
use Gimp::OO;
DESCRIPTION
After use'ing this module, the following classes are available to the user. You can drop the Gimp:: prefix from all packages, too.
All gimp functions can be called through these modules, there is some simple rewriting going on, for example Gimp::Edit::gimp_quit is the same as Gimp::gimp_quit. Further examples:
$img=Gimp::Image::new(60,300,RGB) get's translated to $img=gimp_image_new(60,300,RGB).
$img->delete get's translated to gimp_image_delete ($img).
Palette::set_foreground get's translated to gimp_palette_set_foreground
See example-oo.pl for a working extension using these techniques.
The following modules (with and without Gimp::) are available, with the indicated rewritings:
- Layer
-
gimp_layer_*
gimp_drawable_*
gimp_*
- Image
-
gimp_image_*
gimp_*
- Drawable
-
gimp_drawable_*
gimp_*
- Selection
-
gimp_selection_*
- Channel
-
gimp_channel_*
gimp_drawable_*
gimp_*
- Display
-
gimp_display_*
gimp_*
- Palette
-
gimp_palette_*
- Plugin
-
plug_in_*
- Gradients
-
gimp_gradients_*
- Edit
-
gimp_edit_*
- Progress
-
gimp_progress_*
STATUS
This module is experimental, the API is subjedt to change.
AUTHOR
Marc Lehmann, pcg@goof.com
SEE ALSO
perl(1), Gimp(1),