Provided by: libgtk2-perl-doc_1.249-2_all bug

NAME

       Gtk2::Gdk::Drawable - wrapper for GdkDrawable

HIERARCHY

         Glib::Object
         +----Gtk2::Gdk::Drawable

METHODS

   unsigned = $drawable->XID
   unsigned = $drawable->XWINDOW
   region = $drawable->get_clip_region
   colormap or undef = $drawable->get_colormap
   $drawable->set_colormap ($colormap)
       •   $colormap (Gtk2::Gdk::Colormap)

   image = $drawable->copy_to_image ($image, $src_x, $src_y, $dest_x, $dest_y, $width, $height)
       •   $image (Gtk2::Gdk::Image or undef)

       •   $src_x (integer)

       •   $src_y (integer)

       •   $dest_x (integer)

       •   $dest_y (integer)

       •   $width (integer)

       •   $height (integer)

       Since: gtk+ 2.4

   integer = $drawable->get_depth
   display = $drawable->get_display
       Since: gtk+ 2.2

   $drawable->draw_arc ($gc, $filled, $x, $y, $width, $height, $angle1, $angle2)
       •   $gc (Gtk2::Gdk::GC)

       •   $filled (boolean)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $angle1 (integer)

       •   $angle2 (integer)

   $drawable->draw_drawable ($gc, $src, $xsrc, $ysrc, $xdest, $ydest, $width, $height)
       •   $gc (Gtk2::Gdk::GC)

       •   $src (Gtk2::Gdk::Drawable)

       •   $xsrc (integer)

       •   $ysrc (integer)

       •   $xdest (integer)

       •   $ydest (integer)

       •   $width (integer)

       •   $height (integer)

   $drawable->draw_gray_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $dith (Gtk2::Gdk::RgbDither)

       •   $buf (scalar)

       •   $rowstride (integer)

   $drawable->draw_image ($gc, $image, $xsrc, $ysrc, $xdest, $ydest, $width, $height)
       •   $gc (Gtk2::Gdk::GC)

       •   $image (Gtk2::Gdk::Image)

       •   $xsrc (integer)

       •   $ysrc (integer)

       •   $xdest (integer)

       •   $ydest (integer)

       •   $width (integer)

       •   $height (integer)

   $drawable->draw_indexed_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride, $cmap)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $dith (Gtk2::Gdk::RgbDither)

       •   $buf (scalar)

       •   $rowstride (integer)

       •   $cmap (scalar)

   $drawable->draw_layout ($gc, $x, $y, $layout)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $layout (Pango::Layout)

   $drawable->draw_layout_line ($gc, $x, $y, $line)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $line (Pango::LayoutLine)

   $drawable->draw_layout_line_with_colors ($gc, $x, $y, $line, $foreground, $background)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $line (Pango::LayoutLine)

       •   $foreground (Gtk2::Gdk::Color or undef)

       •   $background (Gtk2::Gdk::Color or undef)

   $drawable->draw_layout_with_colors ($gc, $x, $y, $layout, $foreground, $background)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $layout (Pango::Layout)

       •   $foreground (Gtk2::Gdk::Color or undef)

       •   $background (Gtk2::Gdk::Color or undef)

   $drawable->draw_line ($gc, $x1_, $y1_, $x2_, $y2_)
       •   $gc (Gtk2::Gdk::GC)

       •   $x1_ (integer)

       •   $y1_ (integer)

       •   $x2_ (integer)

       •   $y2_ (integer)

   $drawable->draw_lines ($gc, ...)
       •   $gc (Gtk2::Gdk::GC)

       •   ... (list) integer x,y coordinates (possibly none)

       For example

           $win->draw_lines ($gc, 0,0, 20,30, 40,20);

   $drawable->draw_pixbuf ($gc, $pixbuf, $src_x, $src_y, $dest_x, $dest_y, $width, $height,
       $dither, $x_dither, $y_dither)
       •   $gc (Gtk2::Gdk::GC or undef)

       •   $pixbuf (Gtk2::Gdk::Pixbuf)

       •   $src_x (integer)

       •   $src_y (integer)

       •   $dest_x (integer)

       •   $dest_y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $dither (Gtk2::Gdk::RgbDither)

       •   $x_dither (integer)

       •   $y_dither (integer)

       Since: gtk+ 2.2

   $drawable->draw_point ($gc, $x, $y)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

   $drawable->draw_points ($gc, ...)
       •   $gc (Gtk2::Gdk::GC)

       •   ... (list) integer x,y coordinates (possibly none)

       For example three points

           $win->draw_points ($gc, 0,0, 10,10, 20,20);

   $drawable->draw_polygon ($gc, $filled, $x1, $y1, ...)
       •   $gc (Gtk2::Gdk::GC)

       •   $filled (boolean)

       •   $x1 (integer) the x coordinate of the first point

       •   $y1 (integer) the y coordinate of the first point

       •   ... (list) pairs of x and y coordinates

   $drawable->draw_rectangle ($gc, $filled, $x, $y, $width, $height)
       •   $gc (Gtk2::Gdk::GC)

       •   $filled (boolean)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

   $drawable->draw_rgb_32_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $dith (Gtk2::Gdk::RgbDither)

       •   $buf (scalar)

       •   $rowstride (integer)

   $drawable->draw_rgb_32_image_dithalign ($gc, $x, $y, $width, $height, $dith, $rgb_buf,
       $rowstride, $xdith, $ydith)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $dith (Gtk2::Gdk::RgbDither)

       •   $rgb_buf (scalar)

       •   $rowstride (integer)

       •   $xdith (integer)

       •   $ydith (integer)

   $drawable->draw_rgb_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $dith (Gtk2::Gdk::RgbDither)

       •   $buf (scalar)

       •   $rowstride (integer)

   $drawable->draw_rgb_image_dithalign ($gc, $x, $y, $width, $height, $dith, $rgb_buf,
       $rowstride, $xdith, $ydith)
       •   $gc (Gtk2::Gdk::GC)

       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

       •   $dith (Gtk2::Gdk::RgbDither)

       •   $rgb_buf (scalar)

       •   $rowstride (integer)

       •   $xdith (integer)

       •   $ydith (integer)

   $drawable->draw_segments ($gc, ...)
       •   $gc (Gtk2::Gdk::GC)

       •   ... (list) quads of x1,y1,x2,y2 coordinates

       For example to draw two diagonal line segments,

           $drawable->draw_segments($gc, 0,0,100,100, 200,200,300,300);

   image = $drawable->get_image ($x, $y, $width, $height)
       •   $x (integer)

       •   $y (integer)

       •   $width (integer)

       •   $height (integer)

   screen = $drawable->get_screen
       Since: gtk+ 2.2

   (width, height) = $drawable->get_size
   region = $drawable->get_visible_region
   visual = $drawable->get_visual
   unsigned = $drawable->get_xid

ENUMS AND FLAGS

   enum Gtk2::Gdk::RgbDither
       •   'none' / 'GDK_RGB_DITHER_NONE'

       •   'normal' / 'GDK_RGB_DITHER_NORMAL'

       •   'max' / 'GDK_RGB_DITHER_MAX'

SEE ALSO

       Gtk2, Glib::Object

COPYRIGHT

       Copyright (C) 2003-2011 by the gtk2-perl team.

       This software is licensed under the LGPL.  See Gtk2 for a full notice.