1Goo::Canvas::Item(3) User Contributed Perl Documentation Goo::Canvas::Item(3)
2
3
4
6 Goo::Canvas::Item
7
9 Glib::Interface
10 +----Goo::Canvas::Item
11
13 $item->add_child ($child, $position)
14 · $child (Goo::Canvas::Item)
15
16 · $position (integer)
17
18 $item->allocate_area ($cr, $requested_area, $allocated_area, $x_offset,
19 $y_offset)
20 · $cr (cairo_t)
21
22 · $requested_area (GooCanvasBounds)
23
24 · $allocated_area (GooCanvasBounds)
25
26 · $x_offset (double)
27
28 · $y_offset (double)
29
30 $item->animate ($x, $y, $scale, $degrees, $absolute, $duration, $step_time,
31 $type)
32 · $x (double)
33
34 · $y (double)
35
36 · $scale (double)
37
38 · $degrees (double)
39
40 · $absolute (boolean)
41
42 · $duration (integer)
43
44 · $step_time (integer)
45
46 · $type (Goo::Canvas::AnimateType)
47
48 GooCanvasBounds = $item->get_bounds
49 canvas = $item->get_canvas
50 $item->set_canvas ($canvas)
51 · $canvas (Goo::Canvas)
52
53 item = $item->get_child ($child_num)
54 · $child_num (integer)
55
56 list = $item->get_child_properties ($child, ...)
57 · $child (Goo::Canvas::Item)
58
59 · ... (list)
60
61 Not like the original C function, which call as
62 goo_canvas_item_get_child_properties(item, child, key1, &val1,
63 key2, &val2, ..., NULL). This function call as
64 $item->get_child_properties($child, $key1, $key2, ...) and return a
65 list ($key1, $val1, $key2, $val2, ...) instead. So you can call
66 like %pair = $item->get_child_properties($child, $key1, $key2) and
67 use $pair{$key1} and $pair{$key2} to access the value for the
68 property.
69
70 $item->set_child_properties ($child, ...)
71 · $child (Goo::Canvas::Item)
72
73 · ... (list)
74
75 $item->ensure_updated
76 integer = $item->find_child ($child)
77 · $child (Goo::Canvas::Item)
78
79 boolean = $item->is_container
80 boolean = $item->is_visible
81 AV = $item->get_items_at ($x, $y, $cr, $is_pointer_event,
82 $parent_is_visible)
83 · $x (double)
84
85 · $y (double)
86
87 · $cr (cairo_t)
88
89 · $is_pointer_event (boolean)
90
91 · $parent_is_visible (boolean)
92
93 $item->lower (...)
94 · ... (list)
95
96 itemmodel = $item->get_model
97 $item->set_model ($model)
98 · $model (Goo::Canvas::ItemModel)
99
100 $item->move_child ($old_position, $new_position)
101 · $old_position (integer)
102
103 · $new_position (integer)
104
105 integer = $item->get_n_children
106 $item->paint ($cr, $bounds, $scale)
107 · $cr (cairo_t)
108
109 · $bounds (GooCanvasBounds)
110
111 · $scale (double)
112
113 item = $item->get_parent
114 $item->set_parent ($parent)
115 · $parent (Goo::Canvas::Item)
116
117 $item->raise (...)
118 · ... (list)
119
120 $item->remove_child ($child_num)
121 · $child_num (integer)
122
123 $item->request_update
124 GooCanvasBounds = $item->get_requested_area ($cr)
125 · $cr (cairo_t)
126
127 $item->rotate ($degrees, $cx, $cy)
128 · $degrees (double)
129
130 · $cx (double)
131
132 · $cy (double)
133
134 $item->scale ($sx, $sy)
135 · $sx (double)
136
137 · $sy (double)
138
139 $item->set_simple_transform ($x, $y, $scale, $rotation)
140 · $x (double)
141
142 · $y (double)
143
144 · $scale (double)
145
146 · $rotation (double)
147
148 $item->skew_x ($degrees, $cx, $cy)
149 · $degrees (double)
150
151 · $cx (double)
152
153 · $cy (double)
154
155 $item->skew_y ($degrees, $cx, $cy)
156 · $degrees (double)
157
158 · $cx (double)
159
160 · $cy (double)
161
162 $item->stop_animation
163 style = $item->get_style
164 $item->set_style ($style)
165 · $style (Goo::Canvas::Style)
166
167 boolean = $item->get_transform_for_child ($child, $transform)
168 · $child (Goo::Canvas::Item)
169
170 · $transform (cairo_matrix_t)
171
172 list = $item->get_transform
173 $item->set_transform ($matrix)
174 · $matrix (cairo_matrix_t)
175
176 $item->translate ($tx, $ty)
177 · $tx (double)
178
179 · $ty (double)
180
181 GooCanvasBounds = $item->update ($entire_tree, $cr)
182 · $entire_tree (boolean)
183
184 · $cr (cairo_t)
185
187 'can-focus' (boolean : readable / writable)
188 If the item can take the keyboard focus
189
190 'description' (string : readable / writable)
191 A description of the item for use by assistive technologies
192
193 'parent' (Goo::Canvas::Item : readable / writable)
194 The parent item
195
196 'pointer-events' (Goo::Canvas::PointerEvents : readable / writable)
197 Specifies when the item receives pointer events
198
199 'title' (string : readable / writable)
200 A short context-rich description of the item for use by assistive
201 technologies
202
203 'tooltip' (string : readable / writable)
204 The tooltip to display for the item
205
206 'transform' (Goo::Cairo::Matrix : readable / writable)
207 The transformation matrix of the item
208
209 'visibility' (Goo::Canvas::ItemVisibility : readable / writable)
210 When the canvas item is visible
211
212 'visibility-threshold' (double : readable / writable)
213 The scale threshold at which the item becomes visible
214
216 child-notify (Goo::Canvas::Item, Glib::ParamSpec)
217 animation-finished (Goo::Canvas::Item, boolean)
218 boolean = enter-notify-event (Goo::Canvas::Item, Goo::Canvas::Item,
219 Gtk2::Gdk::Event)
220 boolean = leave-notify-event (Goo::Canvas::Item, Goo::Canvas::Item,
221 Gtk2::Gdk::Event)
222 boolean = motion-notify-event (Goo::Canvas::Item, Goo::Canvas::Item,
223 Gtk2::Gdk::Event)
224 boolean = button-press-event (Goo::Canvas::Item, Goo::Canvas::Item,
225 Gtk2::Gdk::Event)
226 boolean = button-release-event (Goo::Canvas::Item, Goo::Canvas::Item,
227 Gtk2::Gdk::Event)
228 boolean = focus-in-event (Goo::Canvas::Item, Goo::Canvas::Item,
229 Gtk2::Gdk::Event)
230 boolean = focus-out-event (Goo::Canvas::Item, Goo::Canvas::Item,
231 Gtk2::Gdk::Event)
232 boolean = key-press-event (Goo::Canvas::Item, Goo::Canvas::Item,
233 Gtk2::Gdk::Event)
234 boolean = key-release-event (Goo::Canvas::Item, Goo::Canvas::Item,
235 Gtk2::Gdk::Event)
236 boolean = query-tooltip (Goo::Canvas::Item, double, double, boolean,
237 Gtk2::Tooltip)
238 boolean = grab-broken-event (Goo::Canvas::Item, Goo::Canvas::Item,
239 Gtk2::Gdk::Event)
240 boolean = scroll-event (Goo::Canvas::Item, Goo::Canvas::Item,
241 Gtk2::Gdk::Event)
242
244 enum Goo::Canvas::AnimateType
245 · 'freeze' / 'GOO_CANVAS_ANIMATE_FREEZE'
246
247 · 'reset' / 'GOO_CANVAS_ANIMATE_RESET'
248
249 · 'restart' / 'GOO_CANVAS_ANIMATE_RESTART'
250
251 · 'bounce' / 'GOO_CANVAS_ANIMATE_BOUNCE'
252
253 enum Goo::Canvas::ItemVisibility
254 · 'hidden' / 'GOO_CANVAS_ITEM_HIDDEN'
255
256 · 'invisible' / 'GOO_CANVAS_ITEM_INVISIBLE'
257
258 · 'visible' / 'GOO_CANVAS_ITEM_VISIBLE'
259
260 · 'visible-above-threshold' /
261 'GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD'
262
263 flags Goo::Canvas::PointerEvents
264 · 'visible-mask' / 'GOO_CANVAS_EVENTS_VISIBLE_MASK'
265
266 · 'painted-mask' / 'GOO_CANVAS_EVENTS_PAINTED_MASK'
267
268 · 'fill-mask' / 'GOO_CANVAS_EVENTS_FILL_MASK'
269
270 · 'stroke-mask' / 'GOO_CANVAS_EVENTS_STROKE_MASK'
271
272 · 'none' / 'GOO_CANVAS_EVENTS_NONE'
273
274 · 'visible-painted' / 'GOO_CANVAS_EVENTS_VISIBLE_PAINTED'
275
276 · 'visible-fill' / 'GOO_CANVAS_EVENTS_VISIBLE_FILL'
277
278 · 'visible-stroke' / 'GOO_CANVAS_EVENTS_VISIBLE_STROKE'
279
280 · 'visible' / 'GOO_CANVAS_EVENTS_VISIBLE'
281
282 · 'painted' / 'GOO_CANVAS_EVENTS_PAINTED'
283
284 · 'fill' / 'GOO_CANVAS_EVENTS_FILL'
285
286 · 'stroke' / 'GOO_CANVAS_EVENTS_STROKE'
287
288 · 'all' / 'GOO_CANVAS_EVENTS_ALL'
289
291 Glib::Interface
292
294 Copyright (C) 2010 Gtk2-Perl Team
295
296
297
298perl v5.12.0 2010-05-12 Goo::Canvas::Item(3)