1Goo::Canvas::ItemModel(U3s)er Contributed Perl DocumentatGiooon::Canvas::ItemModel(3)
2
3
4

NAME

6       Goo::Canvas::ItemModel
7

HIERARCHY

9         Glib::Interface
10         +----Goo::Canvas::ItemModel
11

METHODS

13   $model->add_child ($child, $position)
14           ·   $child (Goo::Canvas::ItemModel)
15
16           ·   $position (integer)
17
18   $model->animate ($x, $y, $scale, $degrees, $absolute, $duration,
19       $step_time, $type)
20           ·   $x (double)
21
22           ·   $y (double)
23
24           ·   $scale (double)
25
26           ·   $degrees (double)
27
28           ·   $absolute (boolean)
29
30           ·   $duration (integer)
31
32           ·   $step_time (integer)
33
34           ·   $type (Goo::Canvas::AnimateType)
35
36   itemmodel = $model->get_child ($child_num)
37           ·   $child_num (integer)
38
39   list = $model->get_child_properties ($child, ...)
40           ·   $child (Goo::Canvas::ItemModel)
41
42           ·   ... (list)
43
44           Not like the original C function, which call as
45           goo_canvas_item_model_get_child_properties(model, child, key1,
46           &val1, key2, &val2, ..., NULL). This function call as
47           $model->get_child_properties($child, $key1, $key2, ...) and return
48           a list ($key1, $val1, $key2, $val2, ...) instead. So you can call
49           like %pair = $model->get_child_properties($child, $key1, $key2) and
50           use $pair{$key1} and $pair{$key2} to access the value for the
51           property.
52
53   $model->set_child_properties ($child, ...)
54           ·   $child (Goo::Canvas::ItemModel)
55
56           ·   ... (list)
57
58   integer = $model->find_child ($child)
59           ·   $child (Goo::Canvas::ItemModel)
60
61   boolean = $model->is_container
62   $item->lower (...)
63           ·   ... (list)
64
65   $model->move_child ($old_position, $new_position)
66           ·   $old_position (integer)
67
68           ·   $new_position (integer)
69
70   integer = $model->get_n_children
71   itemmodel = $model->get_parent
72   $model->set_parent ($parent)
73           ·   $parent (Goo::Canvas::ItemModel)
74
75   $item->raise (...)
76           ·   ... (list)
77
78   $model->remove_child ($child_num)
79           ·   $child_num (integer)
80
81   $model->rotate ($degrees, $cx, $cy)
82           ·   $degrees (double)
83
84           ·   $cx (double)
85
86           ·   $cy (double)
87
88   $model->scale ($sx, $sy)
89           ·   $sx (double)
90
91           ·   $sy (double)
92
93   $model->set_simple_transform ($x, $y, $scale, $rotation)
94           ·   $x (double)
95
96           ·   $y (double)
97
98           ·   $scale (double)
99
100           ·   $rotation (double)
101
102   $model->skew_x ($degrees, $cx, $cy)
103           ·   $degrees (double)
104
105           ·   $cx (double)
106
107           ·   $cy (double)
108
109   $model->skew_y ($degrees, $cx, $cy)
110           ·   $degrees (double)
111
112           ·   $cx (double)
113
114           ·   $cy (double)
115
116   $model->stop_animation
117   style = $model->get_style
118   $model->set_style ($style)
119           ·   $style (Goo::Canvas::Style)
120
121   list = $item->get_transform
122   $model->set_transform ($matrix)
123           ·   $matrix (cairo_matrix_t)
124
125   $model->translate ($tx, $ty)
126           ·   $tx (double)
127
128           ·   $ty (double)
129

PROPERTIES

131       'can-focus' (boolean : readable / writable)
132           If the item can take the keyboard focus
133
134       'description' (string : readable / writable)
135           A description of the item for use by assistive technologies
136
137       'parent' (Goo::Canvas::ItemModel : readable / writable)
138           The parent item model
139
140       'pointer-events' (Goo::Canvas::PointerEvents : readable / writable)
141           Specifies when the item receives pointer events
142
143       'title' (string : readable / writable)
144           A short context-rich description of the item for use by assistive
145           technologies
146
147       'tooltip' (string : readable / writable)
148           The tooltip to display for the item
149
150       'transform' (Goo::Cairo::Matrix : readable / writable)
151           The transformation matrix of the item
152
153       'visibility' (Goo::Canvas::ItemVisibility : readable / writable)
154           When the canvas item is visible
155
156       'visibility-threshold' (double : readable / writable)
157           The scale threshold at which the item becomes visible
158

SIGNALS

160       child-added (Goo::Canvas::ItemModel, integer)
161       child-moved (Goo::Canvas::ItemModel, integer, integer)
162       child-removed (Goo::Canvas::ItemModel, integer)
163       changed (Goo::Canvas::ItemModel, boolean)
164       child-notify (Goo::Canvas::ItemModel, Glib::ParamSpec)
165       animation-finished (Goo::Canvas::ItemModel, boolean)
166

ENUMS AND FLAGS

168   enum Goo::Canvas::AnimateType
169       ·   'freeze' / 'GOO_CANVAS_ANIMATE_FREEZE'
170
171       ·   'reset' / 'GOO_CANVAS_ANIMATE_RESET'
172
173       ·   'restart' / 'GOO_CANVAS_ANIMATE_RESTART'
174
175       ·   'bounce' / 'GOO_CANVAS_ANIMATE_BOUNCE'
176
177   enum Goo::Canvas::ItemVisibility
178       ·   'hidden' / 'GOO_CANVAS_ITEM_HIDDEN'
179
180       ·   'invisible' / 'GOO_CANVAS_ITEM_INVISIBLE'
181
182       ·   'visible' / 'GOO_CANVAS_ITEM_VISIBLE'
183
184       ·   'visible-above-threshold' /
185           'GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD'
186
187   flags Goo::Canvas::PointerEvents
188       ·   'visible-mask' / 'GOO_CANVAS_EVENTS_VISIBLE_MASK'
189
190       ·   'painted-mask' / 'GOO_CANVAS_EVENTS_PAINTED_MASK'
191
192       ·   'fill-mask' / 'GOO_CANVAS_EVENTS_FILL_MASK'
193
194       ·   'stroke-mask' / 'GOO_CANVAS_EVENTS_STROKE_MASK'
195
196       ·   'none' / 'GOO_CANVAS_EVENTS_NONE'
197
198       ·   'visible-painted' / 'GOO_CANVAS_EVENTS_VISIBLE_PAINTED'
199
200       ·   'visible-fill' / 'GOO_CANVAS_EVENTS_VISIBLE_FILL'
201
202       ·   'visible-stroke' / 'GOO_CANVAS_EVENTS_VISIBLE_STROKE'
203
204       ·   'visible' / 'GOO_CANVAS_EVENTS_VISIBLE'
205
206       ·   'painted' / 'GOO_CANVAS_EVENTS_PAINTED'
207
208       ·   'fill' / 'GOO_CANVAS_EVENTS_FILL'
209
210       ·   'stroke' / 'GOO_CANVAS_EVENTS_STROKE'
211
212       ·   'all' / 'GOO_CANVAS_EVENTS_ALL'
213

SEE ALSO

215       Glib::Interface
216
218       Copyright (C) 2010 Gtk2-Perl Team
219
220
221
222perl v5.12.0                      2010-05-12         Goo::Canvas::ItemModel(3)
Impressum