Gtk2::Gdk::Drawable3pm
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)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
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)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_drawable ($gc, $src, $xsrc, $ysrc, $xdest, $ydest, $width, $height)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_gray_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_image ($gc, $image, $xsrc, $ysrc, $xdest, $ydest, $width, $height)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_indexed_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride, $cmap)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_layout ($gc, $x, $y, $layout)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
$drawable->draw_layout_line ($gc, $x, $y, $line)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
$drawable->draw_layout_line_with_colors ($gc, $x, $y, $line, $foreground, $background)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_layout_with_colors ($gc, $x, $y, $layout, $foreground, $background)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_line ($gc, $x1_, $y1_, $x2_, $y2_)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_lines ($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)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
Since: gtk+ 2.2
$drawable->draw_point ($gc, $x, $y)
•
|
|
|---|---|
•
|
|
•
|
|
$drawable->draw_points ($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, ...)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
... (list) pairs of x and y coordinates |
$drawable->draw_rectangle ($gc, $filled, $x, $y, $width, $height)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_rgb_32_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_rgb_32_image_dithalign ($gc, $x, $y, $width, $height, $dith, $rgb_buf, $rowstride, $xdith, $ydith)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_rgb_image ($gc, $x, $y, $width, $height, $dith, $buf, $rowstride)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_rgb_image_dithalign ($gc, $x, $y, $width, $height, $dith, $rgb_buf, $rowstride, $xdith, $ydith)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
$drawable->draw_segments ($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)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
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' |
Releases
7 releases since Debian 3.1 (Sarge); the text changed 6 times.