.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Gtk2::Gdk::Drawable 3pm" .TH Gtk2::Gdk::Drawable 3pm "2019-09-16" "perl v5.28.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::Gdk::Drawable \- wrapper for GdkDrawable .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 2 \& Glib::Object \& +\-\-\-\-Gtk2::Gdk::Drawable .Ve .SH "METHODS" .IX Header "METHODS" .ie n .SS "unsigned = $drawable\->\fB\s-1XID\s0\fP" .el .SS "unsigned = \f(CW$drawable\fP\->\fB\s-1XID\s0\fP" .IX Subsection "unsigned = $drawable->XID" .ie n .SS "unsigned = $drawable\->\fB\s-1XWINDOW\s0\fP" .el .SS "unsigned = \f(CW$drawable\fP\->\fB\s-1XWINDOW\s0\fP" .IX Subsection "unsigned = $drawable->XWINDOW" .ie n .SS "region = $drawable\->\fBget_clip_region\fP" .el .SS "region = \f(CW$drawable\fP\->\fBget_clip_region\fP" .IX Subsection "region = $drawable->get_clip_region" .ie n .SS "colormap or undef = $drawable\->\fBget_colormap\fP" .el .SS "colormap or undef = \f(CW$drawable\fP\->\fBget_colormap\fP" .IX Subsection "colormap or undef = $drawable->get_colormap" .ie n .SS "$drawable\->\fBset_colormap\fP ($colormap)" .el .SS "\f(CW$drawable\fP\->\fBset_colormap\fP ($colormap)" .IX Subsection "$drawable->set_colormap ($colormap)" .IP "\(bu" 4 \&\f(CW$colormap\fR (Gtk2::Gdk::Colormap) .ie n .SS "image = $drawable\->\fBcopy_to_image\fP ($image, $src_x, $src_y, $dest_x, $dest_y, $width, $height)" .el .SS "image = \f(CW$drawable\fP\->\fBcopy_to_image\fP ($image, \f(CW$src_x\fP, \f(CW$src_y\fP, \f(CW$dest_x\fP, \f(CW$dest_y\fP, \f(CW$width\fP, \f(CW$height\fP)" .IX Subsection "image = $drawable->copy_to_image ($image, $src_x, $src_y, $dest_x, $dest_y, $width, $height)" .IP "\(bu" 4 \&\f(CW$image\fR (Gtk2::Gdk::Image or undef) .IP "\(bu" 4 \&\f(CW$src_x\fR (integer) .IP "\(bu" 4 \&\f(CW$src_y\fR (integer) .IP "\(bu" 4 \&\f(CW$dest_x\fR (integer) .IP "\(bu" 4 \&\f(CW$dest_y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .PP Since: gtk+ 2.4 .ie n .SS "integer = $drawable\->\fBget_depth\fP" .el .SS "integer = \f(CW$drawable\fP\->\fBget_depth\fP" .IX Subsection "integer = $drawable->get_depth" .ie n .SS "display = $drawable\->\fBget_display\fP" .el .SS "display = \f(CW$drawable\fP\->\fBget_display\fP" .IX Subsection "display = $drawable->get_display" Since: gtk+ 2.2 .ie n .SS "$drawable\->\fBdraw_arc\fP ($gc, $filled, $x, $y, $width, $height, $angle1, $angle2)" .el .SS "\f(CW$drawable\fP\->\fBdraw_arc\fP ($gc, \f(CW$filled\fP, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$angle1\fP, \f(CW$angle2\fP)" .IX Subsection "$drawable->draw_arc ($gc, $filled, $x, $y, $width, $height, $angle1, $angle2)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$filled\fR (boolean) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$angle1\fR (integer) .IP "\(bu" 4 \&\f(CW$angle2\fR (integer) .ie n .SS "$drawable\->\fBdraw_drawable\fP ($gc, $src, $xsrc, $ysrc, $xdest, $ydest, $width, $height)" .el .SS "\f(CW$drawable\fP\->\fBdraw_drawable\fP ($gc, \f(CW$src\fP, \f(CW$xsrc\fP, \f(CW$ysrc\fP, \f(CW$xdest\fP, \f(CW$ydest\fP, \f(CW$width\fP, \f(CW$height\fP)" .IX Subsection "$drawable->draw_drawable ($gc, $src, $xsrc, $ysrc, $xdest, $ydest, $width, $height)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$src\fR (Gtk2::Gdk::Drawable) .IP "\(bu" 4 \&\f(CW$xsrc\fR (integer) .IP "\(bu" 4 \&\f(CW$ysrc\fR (integer) .IP "\(bu" 4 \&\f(CW$xdest\fR (integer) .IP "\(bu" 4 \&\f(CW$ydest\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .ie n .SS "$drawable\->\fBdraw_gray_image\fP ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)" .el .SS "\f(CW$drawable\fP\->\fBdraw_gray_image\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$dith\fP, \f(CW$buf\fP, \f(CW$rowstride\fP)" .IX Subsection "$drawable->draw_gray_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$dith\fR (Gtk2::Gdk::RgbDither) .IP "\(bu" 4 \&\f(CW$buf\fR (scalar) .IP "\(bu" 4 \&\f(CW$rowstride\fR (integer) .ie n .SS "$drawable\->\fBdraw_image\fP ($gc, $image, $xsrc, $ysrc, $xdest, $ydest, $width, $height)" .el .SS "\f(CW$drawable\fP\->\fBdraw_image\fP ($gc, \f(CW$image\fP, \f(CW$xsrc\fP, \f(CW$ysrc\fP, \f(CW$xdest\fP, \f(CW$ydest\fP, \f(CW$width\fP, \f(CW$height\fP)" .IX Subsection "$drawable->draw_image ($gc, $image, $xsrc, $ysrc, $xdest, $ydest, $width, $height)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$image\fR (Gtk2::Gdk::Image) .IP "\(bu" 4 \&\f(CW$xsrc\fR (integer) .IP "\(bu" 4 \&\f(CW$ysrc\fR (integer) .IP "\(bu" 4 \&\f(CW$xdest\fR (integer) .IP "\(bu" 4 \&\f(CW$ydest\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .ie n .SS "$drawable\->\fBdraw_indexed_image\fP ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride, $cmap)" .el .SS "\f(CW$drawable\fP\->\fBdraw_indexed_image\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$dith\fP, \f(CW$buf\fP, \f(CW$rowstride\fP, \f(CW$cmap\fP)" .IX Subsection "$drawable->draw_indexed_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride, $cmap)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$dith\fR (Gtk2::Gdk::RgbDither) .IP "\(bu" 4 \&\f(CW$buf\fR (scalar) .IP "\(bu" 4 \&\f(CW$rowstride\fR (integer) .IP "\(bu" 4 \&\f(CW$cmap\fR (scalar) .ie n .SS "$drawable\->\fBdraw_layout\fP ($gc, $x, $y, $layout)" .el .SS "\f(CW$drawable\fP\->\fBdraw_layout\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$layout\fP)" .IX Subsection "$drawable->draw_layout ($gc, $x, $y, $layout)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$layout\fR (Pango::Layout) .ie n .SS "$drawable\->\fBdraw_layout_line\fP ($gc, $x, $y, $line)" .el .SS "\f(CW$drawable\fP\->\fBdraw_layout_line\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$line\fP)" .IX Subsection "$drawable->draw_layout_line ($gc, $x, $y, $line)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$line\fR (Pango::LayoutLine) .ie n .SS "$drawable\->\fBdraw_layout_line_with_colors\fP ($gc, $x, $y, $line, $foreground, $background)" .el .SS "\f(CW$drawable\fP\->\fBdraw_layout_line_with_colors\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$line\fP, \f(CW$foreground\fP, \f(CW$background\fP)" .IX Subsection "$drawable->draw_layout_line_with_colors ($gc, $x, $y, $line, $foreground, $background)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$line\fR (Pango::LayoutLine) .IP "\(bu" 4 \&\f(CW$foreground\fR (Gtk2::Gdk::Color or undef) .IP "\(bu" 4 \&\f(CW$background\fR (Gtk2::Gdk::Color or undef) .ie n .SS "$drawable\->\fBdraw_layout_with_colors\fP ($gc, $x, $y, $layout, $foreground, $background)" .el .SS "\f(CW$drawable\fP\->\fBdraw_layout_with_colors\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$layout\fP, \f(CW$foreground\fP, \f(CW$background\fP)" .IX Subsection "$drawable->draw_layout_with_colors ($gc, $x, $y, $layout, $foreground, $background)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$layout\fR (Pango::Layout) .IP "\(bu" 4 \&\f(CW$foreground\fR (Gtk2::Gdk::Color or undef) .IP "\(bu" 4 \&\f(CW$background\fR (Gtk2::Gdk::Color or undef) .ie n .SS "$drawable\->\fBdraw_line\fP ($gc, $x1_, $y1_, $x2_, $y2_)" .el .SS "\f(CW$drawable\fP\->\fBdraw_line\fP ($gc, \f(CW$x1_\fP, \f(CW$y1_\fP, \f(CW$x2_\fP, \f(CW$y2_\fP)" .IX Subsection "$drawable->draw_line ($gc, $x1_, $y1_, $x2_, $y2_)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x1_\fR (integer) .IP "\(bu" 4 \&\f(CW$y1_\fR (integer) .IP "\(bu" 4 \&\f(CW$x2_\fR (integer) .IP "\(bu" 4 \&\f(CW$y2_\fR (integer) .ie n .SS "$drawable\->\fBdraw_lines\fP ($gc, ...)" .el .SS "\f(CW$drawable\fP\->\fBdraw_lines\fP ($gc, ...)" .IX Subsection "$drawable->draw_lines ($gc, ...)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&... (list) integer x,y coordinates (possibly none) .PP For example .PP .Vb 1 \& $win\->draw_lines ($gc, 0,0, 20,30, 40,20); .Ve .ie n .SS "$drawable\->\fBdraw_pixbuf\fP ($gc, $pixbuf, $src_x, $src_y, $dest_x, $dest_y, $width, $height, $dither, $x_dither, $y_dither)" .el .SS "\f(CW$drawable\fP\->\fBdraw_pixbuf\fP ($gc, \f(CW$pixbuf\fP, \f(CW$src_x\fP, \f(CW$src_y\fP, \f(CW$dest_x\fP, \f(CW$dest_y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$dither\fP, \f(CW$x_dither\fP, \f(CW$y_dither\fP)" .IX Subsection "$drawable->draw_pixbuf ($gc, $pixbuf, $src_x, $src_y, $dest_x, $dest_y, $width, $height, $dither, $x_dither, $y_dither)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC or undef) .IP "\(bu" 4 \&\f(CW$pixbuf\fR (Gtk2::Gdk::Pixbuf) .IP "\(bu" 4 \&\f(CW$src_x\fR (integer) .IP "\(bu" 4 \&\f(CW$src_y\fR (integer) .IP "\(bu" 4 \&\f(CW$dest_x\fR (integer) .IP "\(bu" 4 \&\f(CW$dest_y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$dither\fR (Gtk2::Gdk::RgbDither) .IP "\(bu" 4 \&\f(CW$x_dither\fR (integer) .IP "\(bu" 4 \&\f(CW$y_dither\fR (integer) .PP Since: gtk+ 2.2 .ie n .SS "$drawable\->\fBdraw_point\fP ($gc, $x, $y)" .el .SS "\f(CW$drawable\fP\->\fBdraw_point\fP ($gc, \f(CW$x\fP, \f(CW$y\fP)" .IX Subsection "$drawable->draw_point ($gc, $x, $y)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .ie n .SS "$drawable\->\fBdraw_points\fP ($gc, ...)" .el .SS "\f(CW$drawable\fP\->\fBdraw_points\fP ($gc, ...)" .IX Subsection "$drawable->draw_points ($gc, ...)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&... (list) integer x,y coordinates (possibly none) .PP For example three points .PP .Vb 1 \& $win\->draw_points ($gc, 0,0, 10,10, 20,20); .Ve .ie n .SS "$drawable\->\fBdraw_polygon\fP ($gc, $filled, $x1, $y1, ...)" .el .SS "\f(CW$drawable\fP\->\fBdraw_polygon\fP ($gc, \f(CW$filled\fP, \f(CW$x1\fP, \f(CW$y1\fP, ...)" .IX Subsection "$drawable->draw_polygon ($gc, $filled, $x1, $y1, ...)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$filled\fR (boolean) .IP "\(bu" 4 \&\f(CW$x1\fR (integer) the x coordinate of the first point .IP "\(bu" 4 \&\f(CW$y1\fR (integer) the y coordinate of the first point .IP "\(bu" 4 \&... (list) pairs of x and y coordinates .ie n .SS "$drawable\->\fBdraw_rectangle\fP ($gc, $filled, $x, $y, $width, $height)" .el .SS "\f(CW$drawable\fP\->\fBdraw_rectangle\fP ($gc, \f(CW$filled\fP, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP)" .IX Subsection "$drawable->draw_rectangle ($gc, $filled, $x, $y, $width, $height)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$filled\fR (boolean) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .ie n .SS "$drawable\->\fBdraw_rgb_32_image\fP ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)" .el .SS "\f(CW$drawable\fP\->\fBdraw_rgb_32_image\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$dith\fP, \f(CW$buf\fP, \f(CW$rowstride\fP)" .IX Subsection "$drawable->draw_rgb_32_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$dith\fR (Gtk2::Gdk::RgbDither) .IP "\(bu" 4 \&\f(CW$buf\fR (scalar) .IP "\(bu" 4 \&\f(CW$rowstride\fR (integer) .ie n .SS "$drawable\->\fBdraw_rgb_32_image_dithalign\fP ($gc, $x, $y, $width, $height, $dith, $rgb_buf, $rowstride, $xdith, $ydith)" .el .SS "\f(CW$drawable\fP\->\fBdraw_rgb_32_image_dithalign\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$dith\fP, \f(CW$rgb_buf\fP, \f(CW$rowstride\fP, \f(CW$xdith\fP, \f(CW$ydith\fP)" .IX Subsection "$drawable->draw_rgb_32_image_dithalign ($gc, $x, $y, $width, $height, $dith, $rgb_buf, $rowstride, $xdith, $ydith)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$dith\fR (Gtk2::Gdk::RgbDither) .IP "\(bu" 4 \&\f(CW$rgb_buf\fR (scalar) .IP "\(bu" 4 \&\f(CW$rowstride\fR (integer) .IP "\(bu" 4 \&\f(CW$xdith\fR (integer) .IP "\(bu" 4 \&\f(CW$ydith\fR (integer) .ie n .SS "$drawable\->\fBdraw_rgb_image\fP ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)" .el .SS "\f(CW$drawable\fP\->\fBdraw_rgb_image\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$dith\fP, \f(CW$buf\fP, \f(CW$rowstride\fP)" .IX Subsection "$drawable->draw_rgb_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$dith\fR (Gtk2::Gdk::RgbDither) .IP "\(bu" 4 \&\f(CW$buf\fR (scalar) .IP "\(bu" 4 \&\f(CW$rowstride\fR (integer) .ie n .SS "$drawable\->\fBdraw_rgb_image_dithalign\fP ($gc, $x, $y, $width, $height, $dith, $rgb_buf, $rowstride, $xdith, $ydith)" .el .SS "\f(CW$drawable\fP\->\fBdraw_rgb_image_dithalign\fP ($gc, \f(CW$x\fP, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$dith\fP, \f(CW$rgb_buf\fP, \f(CW$rowstride\fP, \f(CW$xdith\fP, \f(CW$ydith\fP)" .IX Subsection "$drawable->draw_rgb_image_dithalign ($gc, $x, $y, $width, $height, $dith, $rgb_buf, $rowstride, $xdith, $ydith)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .IP "\(bu" 4 \&\f(CW$dith\fR (Gtk2::Gdk::RgbDither) .IP "\(bu" 4 \&\f(CW$rgb_buf\fR (scalar) .IP "\(bu" 4 \&\f(CW$rowstride\fR (integer) .IP "\(bu" 4 \&\f(CW$xdith\fR (integer) .IP "\(bu" 4 \&\f(CW$ydith\fR (integer) .ie n .SS "$drawable\->\fBdraw_segments\fP ($gc, ...)" .el .SS "\f(CW$drawable\fP\->\fBdraw_segments\fP ($gc, ...)" .IX Subsection "$drawable->draw_segments ($gc, ...)" .IP "\(bu" 4 \&\f(CW$gc\fR (Gtk2::Gdk::GC) .IP "\(bu" 4 \&... (list) quads of x1,y1,x2,y2 coordinates .PP For example to draw two diagonal line segments, .PP .Vb 1 \& $drawable\->draw_segments($gc, 0,0,100,100, 200,200,300,300); .Ve .ie n .SS "image = $drawable\->\fBget_image\fP ($x, $y, $width, $height)" .el .SS "image = \f(CW$drawable\fP\->\fBget_image\fP ($x, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP)" .IX Subsection "image = $drawable->get_image ($x, $y, $width, $height)" .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .IP "\(bu" 4 \&\f(CW$width\fR (integer) .IP "\(bu" 4 \&\f(CW$height\fR (integer) .ie n .SS "screen = $drawable\->\fBget_screen\fP" .el .SS "screen = \f(CW$drawable\fP\->\fBget_screen\fP" .IX Subsection "screen = $drawable->get_screen" Since: gtk+ 2.2 .ie n .SS "(width, height) = $drawable\->\fBget_size\fP" .el .SS "(width, height) = \f(CW$drawable\fP\->\fBget_size\fP" .IX Subsection "(width, height) = $drawable->get_size" .ie n .SS "region = $drawable\->\fBget_visible_region\fP" .el .SS "region = \f(CW$drawable\fP\->\fBget_visible_region\fP" .IX Subsection "region = $drawable->get_visible_region" .ie n .SS "visual = $drawable\->\fBget_visual\fP" .el .SS "visual = \f(CW$drawable\fP\->\fBget_visual\fP" .IX Subsection "visual = $drawable->get_visual" .ie n .SS "unsigned = $drawable\->\fBget_xid\fP" .el .SS "unsigned = \f(CW$drawable\fP\->\fBget_xid\fP" .IX Subsection "unsigned = $drawable->get_xid" .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Gtk2::Gdk::RgbDither" .IX Subsection "enum Gtk2::Gdk::RgbDither" .IP "\(bu" 4 \&'none' / '\s-1GDK_RGB_DITHER_NONE\s0' .IP "\(bu" 4 \&'normal' / '\s-1GDK_RGB_DITHER_NORMAL\s0' .IP "\(bu" 4 \&'max' / '\s-1GDK_RGB_DITHER_MAX\s0' .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2, Glib::Object .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the \s-1LGPL.\s0 See Gtk2 for a full notice.