Gimp::UI - Programming interface to libgimpui, plus Gtk widgets for other parameter types.
use Gimp::UI;
If you use Gimp::Fu in your script, a GUI will be taken care of for you. However, for an example of implementing your own UI, see examples/example-no-fu.
examples/example-no-fu
$combo_box = new Gimp::UI::Combo::Image; $combo_box = new Gimp::UI::Combo::Layer; $button = new Gimp::UI::PatternSelect; $button = new Gimp::UI::BrushSelect; $button = new Gimp::UI::GradientSelect; # if $code = undef, just run the UI and return the Ok/Cancel and values ($result, \@input_vals, \@return_vals) = Gimp::UI::interact( $functionname, $blurb, $help, $params, $menupath, $code, \@silent_vals, # don't show in UI or return in \@input_vals \@start_vals, # do show in UI and return in \@input_vals ); # $result = true if "Ok", false if "Cancel"
Marc Lehmann <pcg@goof.com>, Seth Burgess <sjburges@gimp.org>
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.