1Gnome2::Canvas::Item(3)User Contributed Perl DocumentatioGnnome2::Canvas::Item(3)
2
3
4

NAME

6       Gnome2::Canvas::Item - wrapper for GnomeCanvasItem
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gnome2::Canvas::Item
13

METHODS

15   item = Gnome2::Canvas::Item->new ($parent, $object_class, ...)
16       •   $parent (Gnome2::Canvas::Group)
17
18       •   $object_class (string)
19
20       •   ... (list) property name => value pairs
21
22       Factory constructor for Gnome2::Canvas::Item subclasses.
23
24   $item->affine_absolute ($affine)
25       •   $affine (arrayref) affine transformation matrix
26
27       Replaces $item's transformation matrix.
28
29   $item->affine_relative ($affine)
30       •   $affine (arrayref) affine transformation matrix
31
32       Combines $affine with $item's current transformation.
33
34   (x1, y1, x2, y2) = $item->get_bounds
35   $canvas = $item->canvas
36       Fetch the Gnome2::Canvas to which $item is attached.
37
38   grabstatus = $item->grab ($event_mask, $cursor, $etime=GDK_CURRENT_TIME)
39       •   $event_mask (Gtk2::Gdk::EventMask)
40
41       •   $cursor (Gtk2::Gdk::Cursor)
42
43       •   $etime (unsigned)
44
45   $item->grab_focus
46   $item->hide
47   $affine = $item->i2c_affine
48       Fetch the affine transform that converts from item-relative coordinates
49       to canvas pixel coordinates.
50
51       Note: This method was completely broken for all
52       $Gnome2::Canvas::VERSION < 1.002.
53
54   (x, y) = $item->i2w ($x, $y)
55       •   $x (double)
56
57       •   $y (double)
58
59   $affine = $item->i2w_affine
60       Fetch the affine transform that converts from item's coordinate system
61       to world coordinates.
62
63       Note: This method was completely broken for all
64       $Gnome2::Canvas::VERSION < 1.002.
65
66   $item->lower ($positions)
67       •   $positions (integer)
68
69   $item->lower_to_bottom
70   $item->move ($dx, $dy)
71       •   $dx (double)
72
73       •   $dy (double)
74
75   $canvasgroup = $item->parent
76       Fetch $item's parent group item.
77
78   $item->raise ($positions)
79       •   $positions (integer)
80
81   $item->raise_to_top
82   $item->reparent ($new_group)
83       •   $new_group (Gnome2::Canvas::Group)
84
85   $item->request_update
86   $item->reset_bounds
87       Reset the bounding box of $item to an empty rectangle.
88
89   $item->show
90   $item->ungrab ($etime=GDK_CURRENT_TIME)
91       •   $etime (unsigned)
92
93   $item->update_bbox ($x1, $y1, $x2, $y2)
94       •   $x1 (integer)
95
96       •   $y1 (integer)
97
98       •   $x2 (integer)
99
100       •   $y2 (integer)
101
102       Set $item's bounding box to a new rectangle, and request a full
103       repaint.
104
105   (x, y) = $item->w2i ($x, $y)
106       •   $x (double)
107
108       •   $y (double)
109

PROPERTIES

111       'parent' (Gnome2::Canvas::Item : default undef : readable / writable)
112

SIGNALS

114       boolean = event (Gnome2::Canvas::Item, Gtk2::Gdk::Event)
115

ENUMS AND FLAGS

117   flags Gtk2::Gdk::EventMask
118       •   'exposure-mask' / 'GDK_EXPOSURE_MASK'
119
120       •   'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'
121
122       •   'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'
123
124       •   'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'
125
126       •   'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'
127
128       •   'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'
129
130       •   'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'
131
132       •   'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'
133
134       •   'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'
135
136       •   'key-press-mask' / 'GDK_KEY_PRESS_MASK'
137
138       •   'key-release-mask' / 'GDK_KEY_RELEASE_MASK'
139
140       •   'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'
141
142       •   'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'
143
144       •   'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'
145
146       •   'structure-mask' / 'GDK_STRUCTURE_MASK'
147
148       •   'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'
149
150       •   'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'
151
152       •   'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'
153
154       •   'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'
155
156       •   'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'
157
158       •   'scroll-mask' / 'GDK_SCROLL_MASK'
159
160       •   'all-events-mask' / 'GDK_ALL_EVENTS_MASK'
161
162   enum Gtk2::Gdk::GrabStatus
163       •   'success' / 'GDK_GRAB_SUCCESS'
164
165       •   'already-grabbed' / 'GDK_GRAB_ALREADY_GRABBED'
166
167       •   'invalid-time' / 'GDK_GRAB_INVALID_TIME'
168
169       •   'not-viewable' / 'GDK_GRAB_NOT_VIEWABLE'
170
171       •   'frozen' / 'GDK_GRAB_FROZEN'
172

SEE ALSO

174       Gnome2::Canvas, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object
175
177       Copyright (C) 2003-2004 by the Gtk2-Perl Team.
178
179       This software is licensed under the LGPL; see Gnome2::Canvas for a full
180       notice.
181
182
183
184perl v5.34.0                      2021-07-22           Gnome2::Canvas::Item(3)
Impressum