1Gtk2::Gdk::Drawable(3)User Contributed Perl DocumentationGtk2::Gdk::Drawable(3)
2
3
4

NAME

6       Gtk2::Gdk::Drawable
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Gdk::Drawable
11

METHODS

13       unsigned = $drawable->XID
14
15       unsigned = $drawable->XWINDOW
16
17       region = $drawable->get_clip_region
18
19       colormap = $drawable->get_colormap
20
21       $drawable->set_colormap ($colormap)
22
23           * $colormap (Gtk2::Gdk::Colormap)
24
25       image = $drawable->copy_to_image ($image, $src_x, $src_y, $dest_x,
26       $dest_y, $width, $height)
27
28           * $image (Gtk2::Gdk::Image or undef)
29           * $src_x (integer)
30           * $src_y (integer)
31           * $dest_x (integer)
32           * $dest_y (integer)
33           * $width (integer)
34           * $height (integer)
35
36       integer = $drawable->get_depth
37
38       display = $drawable->get_display
39
40       $drawable->draw_arc ($gc, $filled, $x, $y, $width, $height, $angle1,
41       $angle2)
42
43           * $gc (Gtk2::Gdk::GC)
44           * $filled (boolean)
45           * $x (integer)
46           * $y (integer)
47           * $width (integer)
48           * $height (integer)
49           * $angle1 (integer)
50           * $angle2 (integer)
51
52       $drawable->draw_drawable ($gc, $src, $xsrc, $ysrc, $xdest, $ydest,
53       $width, $height)
54
55           * $gc (Gtk2::Gdk::GC)
56           * $src (Gtk2::Gdk::Drawable)
57           * $xsrc (integer)
58           * $ysrc (integer)
59           * $xdest (integer)
60           * $ydest (integer)
61           * $width (integer)
62           * $height (integer)
63
64       $drawable->draw_gray_image ($gc, $x, $y, $width, $height, $dith, $buf,
65       $rowstride)
66
67           * $gc (Gtk2::Gdk::GC)
68           * $x (integer)
69           * $y (integer)
70           * $width (integer)
71           * $height (integer)
72           * $dith (Gtk2::Gdk::RgbDither)
73           * $buf (scalar)
74           * $rowstride (integer)
75
76       $drawable->draw_image ($gc, $image, $xsrc, $ysrc, $xdest, $ydest,
77       $width, $height)
78
79           * $gc (Gtk2::Gdk::GC)
80           * $image (Gtk2::Gdk::Image)
81           * $xsrc (integer)
82           * $ysrc (integer)
83           * $xdest (integer)
84           * $ydest (integer)
85           * $width (integer)
86           * $height (integer)
87
88       $drawable->draw_indexed_image ($gc, $x, $y, $width, $height, $dith,
89       $buf, $rowstride, $cmap)
90
91           * $gc (Gtk2::Gdk::GC)
92           * $x (integer)
93           * $y (integer)
94           * $width (integer)
95           * $height (integer)
96           * $dith (Gtk2::Gdk::RgbDither)
97           * $buf (scalar)
98           * $rowstride (integer)
99           * $cmap (scalar)
100
101       $drawable->draw_layout ($gc, $x, $y, $layout)
102
103           * $gc (Gtk2::Gdk::GC)
104           * $x (integer)
105           * $y (integer)
106           * $layout (Gtk2::Pango::Layout)
107
108       $drawable->draw_layout_with_colors ($gc, $x, $y, $layout, $foreground,
109       $background)
110
111           * $gc (Gtk2::Gdk::GC)
112           * $x (integer)
113           * $y (integer)
114           * $layout (Gtk2::Pango::Layout)
115           * $foreground (Gtk2::Gdk::Color)
116           * $background (Gtk2::Gdk::Color)
117
118       $drawable->draw_line ($gc, $x1_, $y1_, $x2_, $y2_)
119
120           * $gc (Gtk2::Gdk::GC)
121           * $x1_ (integer)
122           * $y1_ (integer)
123           * $x2_ (integer)
124           * $y2_ (integer)
125
126       $drawable->draw_lines ($gc, $x1, $y1, ...)
127
128           * $gc (Gtk2::Gdk::GC)
129           * $x1 (integer) the x coordinate of the first point
130           * $y1 (integer) the y coordinate of the first point
131           * ... (list) pairs of x and y coordinates
132
133       $drawable->draw_pixbuf ($gc, $pixbuf, $src_x, $src_y, $dest_x, $dest_y,
134       $width, $height, $dither, $x_dither, $y_dither)
135
136           * $gc (Gtk2::Gdk::GC)
137           * $pixbuf (Gtk2::Gdk::Pixbuf)
138           * $src_x (integer)
139           * $src_y (integer)
140           * $dest_x (integer)
141           * $dest_y (integer)
142           * $width (integer)
143           * $height (integer)
144           * $dither (Gtk2::Gdk::RgbDither)
145           * $x_dither (integer)
146           * $y_dither (integer)
147
148       $drawable->draw_point ($gc, $x, $y)
149
150           * $gc (Gtk2::Gdk::GC)
151           * $x (integer)
152           * $y (integer)
153
154       $drawable->draw_points ($gc, $x1, $y1, ...)
155
156           * $gc (Gtk2::Gdk::GC)
157           * $x1 (integer) the x coordinate of the first point
158           * $y1 (integer) the y coordinate of the first point
159
160       $drawable->draw_polygon ($gc, $filled, $x1, $y1, ...)
161
162           * $gc (Gtk2::Gdk::GC)
163           * $filled (boolean)
164           * $x1 (integer) the x coordinate of the first point
165           * $y1 (integer) the y coordinate of the first point
166           * ... (list) pairs of x and y coordinates
167
168       $drawable->draw_rectangle ($gc, $filled, $x, $y, $width, $height)
169
170           * $gc (Gtk2::Gdk::GC)
171           * $filled (boolean)
172           * $x (integer)
173           * $y (integer)
174           * $width (integer)
175           * $height (integer)
176
177       $drawable->draw_rgb_32_image ($gc, $x, $y, $width, $height, $dith,
178       $buf, $rowstride)
179
180           * $gc (Gtk2::Gdk::GC)
181           * $x (integer)
182           * $y (integer)
183           * $width (integer)
184           * $height (integer)
185           * $dith (Gtk2::Gdk::RgbDither)
186           * $buf (scalar)
187           * $rowstride (integer)
188
189       $drawable->draw_rgb_32_image_dithalign ($gc, $x, $y, $width, $height,
190       $dith, $rgb_buf, $rowstride, $xdith, $ydith)
191
192           * $gc (Gtk2::Gdk::GC)
193           * $x (integer)
194           * $y (integer)
195           * $width (integer)
196           * $height (integer)
197           * $dith (Gtk2::Gdk::RgbDither)
198           * $rgb_buf (scalar)
199           * $rowstride (integer)
200           * $xdith (integer)
201           * $ydith (integer)
202
203       $drawable->draw_rgb_image ($gc, $x, $y, $width, $height, $dith, $buf,
204       $rowstride)
205
206           * $gc (Gtk2::Gdk::GC)
207           * $x (integer)
208           * $y (integer)
209           * $width (integer)
210           * $height (integer)
211           * $dith (Gtk2::Gdk::RgbDither)
212           * $buf (scalar)
213           * $rowstride (integer)
214
215       $drawable->draw_rgb_image_dithalign ($gc, $x, $y, $width, $height,
216       $dith, $rgb_buf, $rowstride, $xdith, $ydith)
217
218           * $gc (Gtk2::Gdk::GC)
219           * $x (integer)
220           * $y (integer)
221           * $width (integer)
222           * $height (integer)
223           * $dith (Gtk2::Gdk::RgbDither)
224           * $rgb_buf (scalar)
225           * $rowstride (integer)
226           * $xdith (integer)
227           * $ydith (integer)
228
229       $drawable->draw_segments ($gc, $x1, $y1, $x2, $y2, ...)
230
231           * $gc (Gtk2::Gdk::GC)
232           * $x1 (integer) the x coordinate of the first point
233           * $y1 (integer) the y coordinate of the first point
234           * $x2 (integer) the x coordinate of the second point
235           * $y2 (integer) the y coordinate of the second point
236           * ... (list) quads of x and y coordinates
237
238       image = $drawable->get_image ($x, $y, $width, $height)
239
240           * $x (integer)
241           * $y (integer)
242           * $width (integer)
243           * $height (integer)
244
245       screen = $drawable->get_screen
246
247       (width, height) = $drawable->get_size
248
249       region = $drawable->get_visible_region
250
251       visual = $drawable->get_visual
252
253       unsigned = $drawable->get_xid
254

ENUMS AND FLAGS

256       enum Gtk2::Gdk::RgbDither
257
258       * 'none' / 'GDK_RGB_DITHER_NONE'
259       * 'normal' / 'GDK_RGB_DITHER_NORMAL'
260       * 'max' / 'GDK_RGB_DITHER_MAX'
261

SEE ALSO

263       Gtk2, Glib::Object
264
266       Copyright (C) 2003-2007 by the gtk2-perl team.
267
268       This software is licensed under the LGPL.  See Gtk2 for a full notice.
269
270
271
272perl v5.8.8                       2007-03-18            Gtk2::Gdk::Drawable(3)
Impressum