Gtk2::Gdk::Drawable.3pm

Langue: en

Version: 2009-03-13 (fedora - 06/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::Gdk::Drawable

HIERARCHY

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

METHODS


unsigned = $drawable->XID


unsigned = $drawable->XID


unsigned = $drawable->XWINDOW


unsigned = $drawable->XWINDOW


region = $drawable->get_clip_region


region = $drawable->get_clip_region


colormap = $drawable->get_colormap


colormap = $drawable->get_colormap


$drawable->set_colormap ($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 = $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


integer = $drawable->get_depth


display = $drawable->get_display


display = $drawable->get_display

Since: gtk+ 2.2

$drawable->draw_arc ($gc, $filled, $x, $y, $width, $height, $angle1, $angle2)


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


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


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


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


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


$drawable->draw_layout ($gc, $x, $y, $layout)

$gc (Gtk2::Gdk::GC)
$x (integer)
$y (integer)
$layout (Gtk2::Pango::Layout)

$drawable->draw_layout_line ($gc, $x, $y, $line)


$drawable->draw_layout_line ($gc, $x, $y, $line)

$gc (Gtk2::Gdk::GC)
$x (integer)
$y (integer)
$line (Gtk2::Pango::LayoutLine)

$drawable->draw_layout_line_with_colors ($gc, $x, $y, $line, $foreground, $background)


$drawable->draw_layout_line_with_colors ($gc, $x, $y, $line, $foreground, $background)

$gc (Gtk2::Gdk::GC)
$x (integer)
$y (integer)
$line (Gtk2::Pango::LayoutLine)
$foreground (Gtk2::Gdk::Color)
$background (Gtk2::Gdk::Color)

$drawable->draw_layout_with_colors ($gc, $x, $y, $layout, $foreground, $background)


$drawable->draw_layout_with_colors ($gc, $x, $y, $layout, $foreground, $background)

$gc (Gtk2::Gdk::GC)
$x (integer)
$y (integer)
$layout (Gtk2::Pango::Layout)
$foreground (Gtk2::Gdk::Color)
$background (Gtk2::Gdk::Color)

$drawable->draw_line ($gc, $x1_, $y1_, $x2_, $y2_)


$drawable->draw_line ($gc, $x1_, $y1_, $x2_, $y2_)

$gc (Gtk2::Gdk::GC)
$x1_ (integer)
$y1_ (integer)
$x2_ (integer)
$y2_ (integer)

$drawable->draw_lines ($gc, $x1, $y1, ...)


$drawable->draw_lines ($gc, $x1, $y1, ...)

$gc (Gtk2::Gdk::GC)
$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_pixbuf ($gc, $pixbuf, $src_x, $src_y, $dest_x, $dest_y, $width, $height, $dither, $x_dither, $y_dither)


$drawable->draw_pixbuf ($gc, $pixbuf, $src_x, $src_y, $dest_x, $dest_y, $width, $height, $dither, $x_dither, $y_dither)

$gc (Gtk2::Gdk::GC)
$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)


$drawable->draw_point ($gc, $x, $y)

$gc (Gtk2::Gdk::GC)
$x (integer)
$y (integer)

$drawable->draw_points ($gc, $x1, $y1, ...)


$drawable->draw_points ($gc, $x1, $y1, ...)

$gc (Gtk2::Gdk::GC)
$x1 (integer) the x coordinate of the first point
$y1 (integer) the y coordinate of the first point

$drawable->draw_polygon ($gc, $filled, $x1, $y1, ...)


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


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


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


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


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


$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, $x1, $y1, $x2, $y2, ...)


$drawable->draw_segments ($gc, $x1, $y1, $x2, $y2, ...)

$gc (Gtk2::Gdk::GC)
$x1 (integer) the x coordinate of the first point
$y1 (integer) the y coordinate of the first point
$x2 (integer) the x coordinate of the second point
$y2 (integer) the y coordinate of the second point
... (list) quads of x and y coordinates

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


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

$x (integer)
$y (integer)
$width (integer)
$height (integer)

screen = $drawable->get_screen


screen = $drawable->get_screen

Since: gtk+ 2.2

(width, height) = $drawable->get_size


(width, height) = $drawable->get_size


region = $drawable->get_visible_region


region = $drawable->get_visible_region


visual = $drawable->get_visual


visual = $drawable->get_visual


unsigned = $drawable->get_xid


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 (C) 2003-2008 by the gtk2-perl team.

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