1Gtk2::Gdk::GC(3)      User Contributed Perl Documentation     Gtk2::Gdk::GC(3)
2
3
4

NAME

6       Gtk2::Gdk::GC
7

HIERARCHY

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

METHODS

13       gc = Gtk2::Gdk::GC->new ($drawable, $values=undef)
14
15           * $drawable (Gtk2::Gdk::Drawable)
16           * $values (scalar)
17
18       gc = Gtk2::Gdk::GC->new_with_values ($drawable, $values=undef)
19
20           * $drawable (Gtk2::Gdk::Drawable)
21           * $values (scalar)
22
23       $gc->set_background ($color)
24
25           * $color (Gtk2::Gdk::Color)
26
27       $gc->set_clip_mask ($mask)
28
29           * $mask (scalar)
30
31       $gc->set_clip_origin ($x, $y)
32
33           * $x (integer)
34           * $y (integer)
35
36       $gc->set_clip_rectangle ($rectangle)
37
38           * $rectangle (Gtk2::Gdk::Rectangle or undef)
39
40       $gc->set_clip_region ($region)
41
42           * $region (Gtk2::Gdk::Region or undef)
43
44       colormap = $gc->get_colormap
45
46       $gc->set_colormap ($colormap)
47
48           * $colormap (Gtk2::Gdk::Colormap)
49
50       $dst_gc->copy ($src_gc)
51
52           * $src_gc (Gtk2::Gdk::GC)
53
54       $gc->set_dashes ($dash_offset, ...)
55
56           * $dash_offset (integer)
57           * ... (list) of integers, the length of the dash segments
58
59           Sets the way dashed-lines are drawn. Lines will be drawn with
60           alternating on and off segments of the lengths specified in list of
61           dashes. The manner in which the on and off segments are drawn is
62           determined by the line_style value of the GC.
63
64       $gc->set_exposures ($exposures)
65
66           * $exposures (boolean)
67
68       $gc->set_fill ($fill)
69
70           * $fill (Gtk2::Gdk::Fill)
71
72       $gc->set_font ($font)
73
74           * $font (Gtk2::Gdk::Font)
75
76       $gc->set_foreground ($color)
77
78           * $color (Gtk2::Gdk::Color)
79
80       $gc->set_function ($function)
81
82           * $function (Gtk2::Gdk::Function)
83
84       $gc->set_line_attributes ($line_width, $line_style, $cap_style,
85       $join_style)
86
87           * $line_width (integer)
88           * $line_style (Gtk2::Gdk::LineStyle)
89           * $cap_style (Gtk2::Gdk::CapStyle)
90           * $join_style (Gtk2::Gdk::JoinStyle)
91
92       $gc->offset ($x_offset, $y_offset)
93
94           * $x_offset (integer)
95           * $y_offset (integer)
96
97       $gc->set_rgb_background ($rgb)
98
99           * $rgb (unsigned)
100
101       $gc->set_rgb_bg_color ($color)
102
103           * $color (Gtk2::Gdk::Color)
104
105       $gc->set_rgb_fg_color ($color)
106
107           * $color (Gtk2::Gdk::Color)
108
109       $gc->set_rgb_foreground ($rgb)
110
111           * $rgb (unsigned)
112
113       $gc->rgb_gc_set_background ($rgb)
114
115           * $rgb (unsigned)
116
117       $gc->rgb_gc_set_foreground ($rgb)
118
119           * $rgb (unsigned)
120
121       screen = $gc->get_screen
122
123       $gc->set_stipple ($stipple)
124
125           * $stipple (Gtk2::Gdk::Pixmap)
126
127       $gc->set_subwindow ($mode)
128
129           * $mode (Gtk2::Gdk::SubwindowMode)
130
131       $gc->set_tile ($tile)
132
133           * $tile (Gtk2::Gdk::Pixmap)
134
135       $gc->set_ts_origin ($x, $y)
136
137           * $x (integer)
138           * $y (integer)
139
140       scalar = $gc->get_values
141
142       $gc->set_values ($values)
143
144           * $values (scalar)
145

ENUMS AND FLAGS

147       enum Gtk2::Gdk::CapStyle
148
149       * 'not-last' / 'GDK_CAP_NOT_LAST'
150       * 'butt' / 'GDK_CAP_BUTT'
151       * 'round' / 'GDK_CAP_ROUND'
152       * 'projecting' / 'GDK_CAP_PROJECTING'
153
154       enum Gtk2::Gdk::Fill
155
156       * 'solid' / 'GDK_SOLID'
157       * 'tiled' / 'GDK_TILED'
158       * 'stippled' / 'GDK_STIPPLED'
159       * 'opaque-stippled' / 'GDK_OPAQUE_STIPPLED'
160
161       enum Gtk2::Gdk::Function
162
163       * 'copy' / 'GDK_COPY'
164       * 'invert' / 'GDK_INVERT'
165       * 'xor' / 'GDK_XOR'
166       * 'clear' / 'GDK_CLEAR'
167       * 'and' / 'GDK_AND'
168       * 'and-reverse' / 'GDK_AND_REVERSE'
169       * 'and-invert' / 'GDK_AND_INVERT'
170       * 'noop' / 'GDK_NOOP'
171       * 'or' / 'GDK_OR'
172       * 'equiv' / 'GDK_EQUIV'
173       * 'or-reverse' / 'GDK_OR_REVERSE'
174       * 'copy-invert' / 'GDK_COPY_INVERT'
175       * 'or-invert' / 'GDK_OR_INVERT'
176       * 'nand' / 'GDK_NAND'
177       * 'nor' / 'GDK_NOR'
178       * 'set' / 'GDK_SET'
179
180       enum Gtk2::Gdk::JoinStyle
181
182       * 'miter' / 'GDK_JOIN_MITER'
183       * 'round' / 'GDK_JOIN_ROUND'
184       * 'bevel' / 'GDK_JOIN_BEVEL'
185
186       enum Gtk2::Gdk::LineStyle
187
188       * 'solid' / 'GDK_LINE_SOLID'
189       * 'on-off-dash' / 'GDK_LINE_ON_OFF_DASH'
190       * 'double-dash' / 'GDK_LINE_DOUBLE_DASH'
191
192       enum Gtk2::Gdk::SubwindowMode
193
194       * 'clip-by-children' / 'GDK_CLIP_BY_CHILDREN'
195       * 'include-inferiors' / 'GDK_INCLUDE_INFERIORS'
196

SEE ALSO

198       Gtk2, Glib::Object
199
201       Copyright (C) 2003-2007 by the gtk2-perl team.
202
203       This software is licensed under the LGPL.  See Gtk2 for a full notice.
204
205
206
207perl v5.8.8                       2007-03-18                  Gtk2::Gdk::GC(3)
Impressum