Gimp::OO - Pseudo-OO for Gimp functions.
use Gimp::OO;
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:
gimp_layer_*
gimp_drawable_*
gimp_*
gimp_image_*
gimp_selection_*
gimp_channel_*
gimp_display_*
gimp_palette_*
plug_in_*
gimp_gradients_*
gimp_edit_*
gimp_progress_*
Marc Lehmann <pcg@goof.com>
perl(1), Gimp,
To install Gimp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gimp
CPAN shell
perl -MCPAN -e shell install Gimp
For more information on module installation, please visit the detailed CPAN module installation guide.