/usr/share/perl5/Gtk2/Gdk/GC.pod is in libgtk2-perl-doc 2:1.24992-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 | =head1 NAME
Gtk2::Gdk::GC - wrapper for GdkGC
=cut
=head1 HIERARCHY
Glib::Object
+----Gtk2::Gdk::GC
=cut
=head1 METHODS
=head2 gc = Gtk2::Gdk::GC-E<gt>B<new> ($drawable, $values=undef)
=over
=item * $drawable (Gtk2::Gdk::Drawable)
=item * $values (scalar)
=back
Create and return a new GC.
C<$drawable> is used for the depth and the display
(C<Gtk2::Gdk::Display>) for the GC. The GC can then be used with any
drawable of the same depth on that display.
C<$values> is a hashref containing some of the following keys,
foreground Gtk2::Gdk::Color
background Gtk2::Gdk::Color
font Gtk2::Gdk::Font
function Gtk2::Gdk::Function enum
fill Gtk2::Gdk::Fill enum
tile Gtk2::Gdk::Pixmap
stipple Gtk2::Gdk::Pixmap
clip_mask Gtk2::Gdk::Pixmap
subwindow_mode Gtk2::Gdk::SubwindowMode enum
ts_x_origin integer
ts_y_origin integer
clip_x_origin integer
clip_y_origin integer
graphics_exposures boolean integer 1 or 0
line_width integer
line_style Gtk2::Gdk::LineStyle enum
cap_style Gtk2::Gdk::CapStyle enum
join_style Gtk2::Gdk::JoinStyle enum
Keys not given get default values. For the C<foreground> and
C<background> colour objects only the C<pixel> field is used; the red,
green and blue are ignored. For example
my $pixel = 0x123456;
my $color = Gtk2::Gdk::Color->new (0,0,0, $pixel);
my $gc = Gtk2::Gdk::GC->new_with_values
($win, { foreground => $color,
line_style => 'on_off_dash' });
=head2 gc = Gtk2::Gdk::GC-E<gt>B<new_with_values> ($drawable, $values=undef)
=over
=item * $drawable (Gtk2::Gdk::Drawable)
=item * $values (scalar)
=back
=head2 $gc-E<gt>B<set_background> ($color)
=over
=item * $color (Gtk2::Gdk::Color)
=back
=head2 $gc-E<gt>B<set_clip_mask> ($mask)
=over
=item * $mask (scalar)
=back
=head2 $gc-E<gt>B<set_clip_origin> ($x, $y)
=over
=item * $x (integer)
=item * $y (integer)
=back
=head2 $gc-E<gt>B<set_clip_rectangle> ($rectangle)
=over
=item * $rectangle (Gtk2::Gdk::Rectangle or undef)
=back
=head2 $gc-E<gt>B<set_clip_region> ($region)
=over
=item * $region (Gtk2::Gdk::Region or undef)
=back
=head2 colormap = $gc-E<gt>B<get_colormap>
=head2 $gc-E<gt>B<set_colormap> ($colormap)
=over
=item * $colormap (Gtk2::Gdk::Colormap)
=back
=head2 $dst_gc-E<gt>B<copy> ($src_gc)
=over
=item * $src_gc (Gtk2::Gdk::GC)
=back
=head2 $gc-E<gt>B<set_dashes> ($dash_offset, ...)
=over
=item * $dash_offset (integer)
=item * ... (list) of integers, the length of the dash segments
=back
Sets the way dashed-lines are drawn. Lines will be drawn with alternating on
and off segments of the lengths specified in list of dashes. The manner in
which the on and off segments are drawn is determined by the line_style value
of the GC.
=head2 $gc-E<gt>B<set_exposures> ($exposures)
=over
=item * $exposures (boolean)
=back
=head2 $gc-E<gt>B<set_fill> ($fill)
=over
=item * $fill (Gtk2::Gdk::Fill)
=back
=head2 $gc-E<gt>B<set_font> ($font)
=over
=item * $font (Gtk2::Gdk::Font)
=back
=head2 $gc-E<gt>B<set_foreground> ($color)
=over
=item * $color (Gtk2::Gdk::Color)
=back
=head2 $gc-E<gt>B<set_function> ($function)
=over
=item * $function (Gtk2::Gdk::Function)
=back
=head2 $gc-E<gt>B<set_line_attributes> ($line_width, $line_style, $cap_style, $join_style)
=over
=item * $line_width (integer)
=item * $line_style (Gtk2::Gdk::LineStyle)
=item * $cap_style (Gtk2::Gdk::CapStyle)
=item * $join_style (Gtk2::Gdk::JoinStyle)
=back
=head2 $gc-E<gt>B<offset> ($x_offset, $y_offset)
=over
=item * $x_offset (integer)
=item * $y_offset (integer)
=back
=head2 $gc-E<gt>B<set_rgb_background> ($rgb)
=over
=item * $rgb (unsigned)
=back
=head2 $gc-E<gt>B<set_rgb_bg_color> ($color)
=over
=item * $color (Gtk2::Gdk::Color)
=back
=head2 $gc-E<gt>B<set_rgb_fg_color> ($color)
=over
=item * $color (Gtk2::Gdk::Color)
=back
=head2 $gc-E<gt>B<set_rgb_foreground> ($rgb)
=over
=item * $rgb (unsigned)
=back
=head2 $gc-E<gt>B<rgb_gc_set_background> ($rgb)
=over
=item * $rgb (unsigned)
=back
=head2 $gc-E<gt>B<rgb_gc_set_foreground> ($rgb)
=over
=item * $rgb (unsigned)
=back
=head2 screen = $gc-E<gt>B<get_screen>
Since: gtk+ 2.2
=head2 $gc-E<gt>B<set_stipple> ($stipple)
=over
=item * $stipple (Gtk2::Gdk::Pixmap)
=back
=head2 $gc-E<gt>B<set_subwindow> ($mode)
=over
=item * $mode (Gtk2::Gdk::SubwindowMode)
=back
=head2 $gc-E<gt>B<set_tile> ($tile)
=over
=item * $tile (Gtk2::Gdk::Pixmap)
=back
=head2 $gc-E<gt>B<set_ts_origin> ($x, $y)
=over
=item * $x (integer)
=item * $y (integer)
=back
=head2 scalar = $gc-E<gt>B<get_values>
Return the attributes of C<$gc> in the form of a hashref with keys and
values as described with C<new> above.
In the C<foreground> and C<background> colour objects returned only
the C<pixel> fields are set; the red, green and blue fields are
garbage.
=head2 $gc-E<gt>B<set_values> ($values)
=over
=item * $values (scalar)
=back
Set some of the attributes of C<$gc>. C<$values> is a hashref of keys
and values as described for C<new> and C<new_with_values> above.
Fields not present in C<$values> are left unchanged.
=cut
=head1 ENUMS AND FLAGS
=head2 enum Gtk2::Gdk::CapStyle
=over
=item * 'not-last' / 'GDK_CAP_NOT_LAST'
=item * 'butt' / 'GDK_CAP_BUTT'
=item * 'round' / 'GDK_CAP_ROUND'
=item * 'projecting' / 'GDK_CAP_PROJECTING'
=back
=head2 enum Gtk2::Gdk::Fill
=over
=item * 'solid' / 'GDK_SOLID'
=item * 'tiled' / 'GDK_TILED'
=item * 'stippled' / 'GDK_STIPPLED'
=item * 'opaque-stippled' / 'GDK_OPAQUE_STIPPLED'
=back
=head2 enum Gtk2::Gdk::Function
=over
=item * 'copy' / 'GDK_COPY'
=item * 'invert' / 'GDK_INVERT'
=item * 'xor' / 'GDK_XOR'
=item * 'clear' / 'GDK_CLEAR'
=item * 'and' / 'GDK_AND'
=item * 'and-reverse' / 'GDK_AND_REVERSE'
=item * 'and-invert' / 'GDK_AND_INVERT'
=item * 'noop' / 'GDK_NOOP'
=item * 'or' / 'GDK_OR'
=item * 'equiv' / 'GDK_EQUIV'
=item * 'or-reverse' / 'GDK_OR_REVERSE'
=item * 'copy-invert' / 'GDK_COPY_INVERT'
=item * 'or-invert' / 'GDK_OR_INVERT'
=item * 'nand' / 'GDK_NAND'
=item * 'nor' / 'GDK_NOR'
=item * 'set' / 'GDK_SET'
=back
=head2 enum Gtk2::Gdk::JoinStyle
=over
=item * 'miter' / 'GDK_JOIN_MITER'
=item * 'round' / 'GDK_JOIN_ROUND'
=item * 'bevel' / 'GDK_JOIN_BEVEL'
=back
=head2 enum Gtk2::Gdk::LineStyle
=over
=item * 'solid' / 'GDK_LINE_SOLID'
=item * 'on-off-dash' / 'GDK_LINE_ON_OFF_DASH'
=item * 'double-dash' / 'GDK_LINE_DOUBLE_DASH'
=back
=head2 enum Gtk2::Gdk::SubwindowMode
=over
=item * 'clip-by-children' / 'GDK_CLIP_BY_CHILDREN'
=item * 'include-inferiors' / 'GDK_INCLUDE_INFERIORS'
=back
=cut
=head1 SEE ALSO
L<Gtk2>, L<Glib::Object>
=cut
=head1 COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See L<Gtk2> for a full notice.
=cut
|