Kevin Ryde > Image-Base-Gtk2-11 > Image::Base::Gtk2::Gdk::Window

Download:
Image-Base-Gtk2-11.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 11   Source  

NAME ^

Image::Base::Gtk2::Gdk::Window -- draw into a Gdk window

SYNOPSIS ^

 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');

CLASS HIERARCHY ^

Image::Base::Gtk2::Gdk::Window is a subclass of Image::Base::Gtk2::Gdk::Drawable,

    Image::Base
      Image::Base::Gtk2::Gdk::Drawable
        Image::Base::Gtk2::Gdk::Window

DESCRIPTION ^

Image::Base::Gtk2::Gdk::Window extends Image::Base to draw into Gdk windows. There's no file load or save, just drawing operations.

This is a placeholder at the moment, it doesn't add anything to what Image::Base::Gtk2::Gdk::Drawable does.

FUNCTIONS ^

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,

    $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.

ATTRIBUTES ^

-width (integer)
-height (integer)

The size of the window. Changing these resizes the window.

-window (Gtk2::Gdk::Window object)

The target window. -drawable and -window access the same attribute.

FUTURE ^

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?

HOME PAGE ^

http://user42.tuxfamily.org/image-base-gtk2/index.html

LICENSE ^

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/.

syntax highlighting: