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

NAME

6       Goo::Canvas::ItemModel - wrapper for GooCanvasItemModel
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, &val1,
46       key2, &val2, ..., NULL). This function call as
47       $model->get_child_properties($child, $key1, $key2, ...) and return a
48       list ($key1, $val1, $key2, $val2, ...) instead. So you can call like
49       %pair = $model->get_child_properties($child, $key1, $key2) and use
50       $pair{$key1} and $pair{$key2} to access the value for the property.
51
52   $model->set_child_properties ($child, ...)
53       •   $child (Goo::Canvas::ItemModel)
54
55       •   ... (list)
56
57   integer = $model->find_child ($child)
58       •   $child (Goo::Canvas::ItemModel)
59
60   boolean = $model->is_container
61   $item->lower (...)
62       •   ... (list)
63
64   $model->move_child ($old_position, $new_position)
65       •   $old_position (integer)
66
67       •   $new_position (integer)
68
69   integer = $model->get_n_children
70   itemmodel = $model->get_parent
71   $model->set_parent ($parent)
72       •   $parent (Goo::Canvas::ItemModel)
73
74   $item->raise (...)
75       •   ... (list)
76
77   $model->remove_child ($child_num)
78       •   $child_num (integer)
79
80   $model->rotate ($degrees, $cx, $cy)
81       •   $degrees (double)
82
83       •   $cx (double)
84
85       •   $cy (double)
86
87   $model->scale ($sx, $sy)
88       •   $sx (double)
89
90       •   $sy (double)
91
92   $model->set_simple_transform ($x, $y, $scale, $rotation)
93       •   $x (double)
94
95       •   $y (double)
96
97       •   $scale (double)
98
99       •   $rotation (double)
100
101   $model->skew_x ($degrees, $cx, $cy)
102       •   $degrees (double)
103
104       •   $cx (double)
105
106       •   $cy (double)
107
108   $model->skew_y ($degrees, $cx, $cy)
109       •   $degrees (double)
110
111       •   $cx (double)
112
113       •   $cy (double)
114
115   $model->stop_animation
116   style = $model->get_style
117   $model->set_style ($style)
118       •   $style (Goo::Canvas::Style)
119
120   list = $item->get_transform
121   $model->set_transform ($matrix)
122       •   $matrix (cairo_matrix_t)
123
124   $model->translate ($tx, $ty)
125       •   $tx (double)
126
127       •   $ty (double)
128

PROPERTIES

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

SIGNALS

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

ENUMS AND FLAGS

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

SEE ALSO

217       Glib::Interface
218
220       Copyright (C) 2022 Gtk2-Perl Team
221
222
223
224perl v5.34.0                      2022-01-21         Goo::Canvas::ItemModel(3)
Impressum