1Gnome2::Canvas::Item(3)User Contributed Perl DocumentatioGnnome2::Canvas::Item(3)
2
3
4
6 Gnome2::Canvas::Item
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gnome2::Canvas::Item
13
15 item = Gnome2::Canvas::Item->new ($parent, $object_class, ...)
16
17 * $parent (Gnome2::Canvas::Group)
18 * $object_class (string)
19 * ... (list) property name => value pairs
20
21 Factory constructor for Gnome2::Canvas::Item subclasses.
22
23 $item->affine_absolute ($affine)
24
25 * $affine (arrayref) affine transformation matrix
26
27 Replaces $item's transformation matrix.
28
29 $item->affine_relative ($affine)
30
31 * $affine (arrayref) affine transformation matrix
32
33 Combines $affine with $item's current transformation.
34
35 (x1, y1, x2, y2) = $item->get_bounds
36
37 $canvas = $item->canvas
38
39 Fetch the Gnome2::Canvas to which $item is attached.
40
41 grabstatus = $item->grab ($event_mask, $cursor, $etime=GDK_CUR‐
42 RENT_TIME)
43
44 * $event_mask (Gtk2::Gdk::EventMask)
45 * $cursor (Gtk2::Gdk::Cursor)
46 * $etime (unsigned)
47
48 $item->grab_focus
49
50 $item->hide
51
52 $affine = $item->i2c_affine
53
54 Fetch the affine transform that converts from item-relative coordi‐
55 nates to canvas pixel coordinates.
56
57 Note: This method was completely broken for all $Gnome2::Can‐
58 vas::VERSION < 1.002.
59
60 (x, y) = $item->i2w ($x, $y)
61
62 * $x (double)
63 * $y (double)
64
65 $affine = $item->i2w_affine
66
67 Fetch the affine transform that converts from item's coordinate
68 system to world coordinates.
69
70 Note: This method was completely broken for all $Gnome2::Can‐
71 vas::VERSION < 1.002.
72
73 $item->lower ($positions)
74
75 * $positions (integer)
76
77 $item->lower_to_bottom
78
79 $item->move ($dx, $dy)
80
81 * $dx (double)
82 * $dy (double)
83
84 $canvasgroup = $item->parent
85
86 Fetch $item's parent group item.
87
88 $item->raise ($positions)
89
90 * $positions (integer)
91
92 $item->raise_to_top
93
94 $item->reparent ($new_group)
95
96 * $new_group (Gnome2::Canvas::Group)
97
98 $item->request_update
99
100 $item->reset_bounds
101
102 Reset the bounding box of $item to an empty rectangle.
103
104 $item->show
105
106 $item->ungrab ($etime=GDK_CURRENT_TIME)
107
108 * $etime (unsigned)
109
110 $item->update_bbox ($x1, $y1, $x2, $y2)
111
112 * $x1 (integer)
113 * $y1 (integer)
114 * $x2 (integer)
115 * $y2 (integer)
116
117 Set $item's bounding box to a new rectangle, and request a full
118 repaint.
119
120 (x, y) = $item->w2i ($x, $y)
121
122 * $x (double)
123 * $y (double)
124
126 'parent' (Gnome2::Canvas::Item : readable / writable)
127
129 boolean = event (Gnome2::Canvas::Item, Gtk2::Gdk::Event)
130
132 flags Gtk2::Gdk::EventMask
133
134 * 'exposure-mask' / 'GDK_EXPOSURE_MASK'
135 * 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'
136 * 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'
137 * 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'
138 * 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'
139 * 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'
140 * 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'
141 * 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'
142 * 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'
143 * 'key-press-mask' / 'GDK_KEY_PRESS_MASK'
144 * 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'
145 * 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'
146 * 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'
147 * 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'
148 * 'structure-mask' / 'GDK_STRUCTURE_MASK'
149 * 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'
150 * 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'
151 * 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'
152 * 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'
153 * 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'
154 * 'scroll-mask' / 'GDK_SCROLL_MASK'
155 * 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'
156
157 enum Gtk2::Gdk::GrabStatus
158
159 * 'success' / 'GDK_GRAB_SUCCESS'
160 * 'already-grabbed' / 'GDK_GRAB_ALREADY_GRABBED'
161 * 'invalid-time' / 'GDK_GRAB_INVALID_TIME'
162 * 'not-viewable' / 'GDK_GRAB_NOT_VIEWABLE'
163 * 'frozen' / 'GDK_GRAB_FROZEN'
164
166 Gnome2::Canvas, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object
167
169 Copyright (C) 2003-2004 by the Gtk2-Perl Team.
170
171 This software is licensed under the LGPL; see Gnome2::Canvas for a full
172 notice.
173
174
175
176perl v5.8.8 2006-10-04 Gnome2::Canvas::Item(3)