Rechercher une page de manuel
Gtk2::Gdk::Drawable.3pm
Langue: en
Version: 2010-05-02 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- HIERARCHY
- METHODS
- unsigned = $drawable->XID
- unsigned = $drawable->XWINDOW
- region = $drawable->get_clip_region
- colormap = $drawable->get_colormap
- $drawable->set_colormap ($colormap)
- image = $drawable->copy_to_image ($image, $src_x, $src_y, $dest_x, $dest_y, $width, $height)
- integer = $drawable->get_depth
- display = $drawable->get_display
- $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, $x1, $y1, ...)
- $drawable->draw_pixbuf ($gc, $pixbuf, $src_x, $src_y, $dest_x, $dest_y, $width, $height, $dither, $x_dither, $y_dither)
- $drawable->draw_point ($gc, $x, $y)
- $drawable->draw_points ($gc, $x1, $y1, ...)
- $drawable->draw_polygon ($gc, $filled, $x1, $y1, ...)
- $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, $x1, $y1, $x2, $y2, ...)
- image = $drawable->get_image ($x, $y, $width, $height)
- screen = $drawable->get_screen
- (width, height) = $drawable->get_size
- region = $drawable->get_visible_region
- visual = $drawable->get_visual
- unsigned = $drawable->get_xid
- ENUMS AND FLAGS
- SEE ALSO
- COPYRIGHT
NAME
Gtk2::Gdk::DrawableHIERARCHY
Glib::Object +----Gtk2::Gdk::Drawable
METHODS
unsigned = $drawable->XID
unsigned = $drawable->XWINDOW
region = $drawable->get_clip_region
colormap = $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 (Gtk2::Pango::Layout)
$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)
-
- *
- $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)
-
- *
- $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_)
-
- *
- $gc (Gtk2::Gdk::GC)
- *
- $x1_ (integer)
- *
- $y1_ (integer)
- *
- $x2_ (integer)
- *
- $y2_ (integer)
$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)
-
- *
- $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)
-
- *
- $gc (Gtk2::Gdk::GC)
- *
- $x (integer)
- *
- $y (integer)
$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, ...)
-
- *
- $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, $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)
-
- *
- $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::ObjectCOPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre