Image::Base::Gtk2::Gdk::Window -- draw into a Gdk window
use Image::Base::Gtk2::Gdk::Window; my $image = Image::Base::Gtk2::Gdk::Window->new (-window => $win); $image->line (0,0, 99,99, '#FF00FF'); $image->rectangle (10,10, 20,15, 'white');
Image::Base::Gtk2::Gdk::Window is a subclass of Image::Base::Gtk2::Gdk::Drawable,
Image::Base::Gtk2::Gdk::Window
Image::Base::Gtk2::Gdk::Drawable
Image::Base Image::Base::Gtk2::Gdk::Drawable Image::Base::Gtk2::Gdk::Window
Image::Base::Gtk2::Gdk::Window extends Image::Base to draw into Gdk windows. There's no file load or save, just drawing operations.
Image::Base
This is a placeholder at the moment, it doesn't add anything to what Image::Base::Gtk2::Gdk::Drawable does.
See "FUNCTIONS" in Image::Base::Gtk2::Gdk::Drawable and "FUNCTIONS" in Image::Base for the behaviour inherited from the superclasses.
$image = Image::Base::Gtk2::Gdk::Window->new (key=>value,...)
Create and return a new image object. -window must be a Gtk2::Gdk::Window object,
-window
Gtk2::Gdk::Window
$image = Image::Base::Gtk2::Gdk::Window->new (-window => $win);
There's nothing to create a new Gtk2::Gdk::Window since there's so many attributes when creating which seem outside the scope of this Image::Base wrapper.
-width
-height
The size of the window. Changing these resizes the window.
The target window. -drawable and -window access the same attribute.
-drawable
It might be possible for colour "None" to mean transparent so drawing it would make holes in windows per $window->shape_combine_mask. But is there a shape "Subtract"? Or how to get the current shape to modify?
$window->shape_combine_mask
http://user42.tuxfamily.org/image-base-gtk2/index.html
Copyright 2010, 2011, 2012 Kevin Ryde
Image-Base-Gtk2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Image-Base-Gtk2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Image-Base-Gtk2. If not, see http://www.gnu.org/licenses/.
To install Image::Base::Gtk2::Gdk::Image, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Base::Gtk2::Gdk::Image
CPAN shell
perl -MCPAN -e shell install Image::Base::Gtk2::Gdk::Image
For more information on module installation, please visit the detailed CPAN module installation guide.