1Gtk2::Gdk::Cursor(3)  User Contributed Perl Documentation Gtk2::Gdk::Cursor(3)
2
3
4

NAME

6       Gtk2::Gdk::Cursor - wrapper for GdkCursor
7

DESCRIPTION

9       For reference, cursors are a per-display resource and can only be used
10       with the display they were created on.
11
12       As of Gtk 2.22 a cursor doesn't keep a reference to its
13       "Gtk2::Gdk::Display" and if the display object is destroyed before the
14       cursor then a later destroy of the cursor may get a segv.  Perl-Gtk2
15       doesn't try to do anything about this.  Care may be needed if keeping a
16       cursor separate from a widget or window.  (Closing the display is fine,
17       but not destroying it.)
18

HIERARCHY

20         Glib::Boxed
21         +----Gtk2::Gdk::Cursor
22

METHODS

24   cursor = Gtk2::Gdk::Cursor->new ($cursor_type)
25       ·   $cursor_type (Gtk2::Gdk::CursorType)
26
27   cursor = Gtk2::Gdk::Cursor->new_for_display ($display, $cursor_type)
28       ·   $display (Gtk2::Gdk::Display)
29
30       ·   $cursor_type (Gtk2::Gdk::CursorType)
31
32       Since: gtk+ 2.2
33
34   cursor = Gtk2::Gdk::Cursor->new_from_name ($display, $name)
35       ·   $display (Gtk2::Gdk::Display)
36
37       ·   $name (string)
38
39       Since: gtk+ 2.8
40
41   cursor = Gtk2::Gdk::Cursor->new_from_pixbuf ($display, $pixbuf, $x, $y)
42       ·   $display (Gtk2::Gdk::Display)
43
44       ·   $pixbuf (Gtk2::Gdk::Pixbuf)
45
46       ·   $x (integer)
47
48       ·   $y (integer)
49
50       Since: gtk+ 2.4
51
52   cursor = Gtk2::Gdk::Cursor->new_from_pixmap ($source, $mask, $fg, $bg, $x,
53       $y)
54       ·   $source (Gtk2::Gdk::Pixmap)
55
56       ·   $mask (Gtk2::Gdk::Pixmap)
57
58       ·   $fg (Gtk2::Gdk::Color)
59
60       ·   $bg (Gtk2::Gdk::Color)
61
62       ·   $x (integer)
63
64       ·   $y (integer)
65
66   cursortype = $cursor->get_cursor_type
67       Since: gtk+ 2.22
68
69   display = $cursor->get_display
70       Since: gtk+ 2.2
71
72   pixbuf = $cursor->get_image
73       Since: gtk+ 2.8
74
75   cursortype = $cursor->type

ENUMS AND FLAGS

77   enum Gtk2::Gdk::CursorType
78       ·   'x-cursor' / 'GDK_X_CURSOR'
79
80       ·   'arrow' / 'GDK_ARROW'
81
82       ·   'based-arrow-down' / 'GDK_BASED_ARROW_DOWN'
83
84       ·   'based-arrow-up' / 'GDK_BASED_ARROW_UP'
85
86       ·   'boat' / 'GDK_BOAT'
87
88       ·   'bogosity' / 'GDK_BOGOSITY'
89
90       ·   'bottom-left-corner' / 'GDK_BOTTOM_LEFT_CORNER'
91
92       ·   'bottom-right-corner' / 'GDK_BOTTOM_RIGHT_CORNER'
93
94       ·   'bottom-side' / 'GDK_BOTTOM_SIDE'
95
96       ·   'bottom-tee' / 'GDK_BOTTOM_TEE'
97
98       ·   'box-spiral' / 'GDK_BOX_SPIRAL'
99
100       ·   'center-ptr' / 'GDK_CENTER_PTR'
101
102       ·   'circle' / 'GDK_CIRCLE'
103
104       ·   'clock' / 'GDK_CLOCK'
105
106       ·   'coffee-mug' / 'GDK_COFFEE_MUG'
107
108       ·   'cross' / 'GDK_CROSS'
109
110       ·   'cross-reverse' / 'GDK_CROSS_REVERSE'
111
112       ·   'crosshair' / 'GDK_CROSSHAIR'
113
114       ·   'diamond-cross' / 'GDK_DIAMOND_CROSS'
115
116       ·   'dot' / 'GDK_DOT'
117
118       ·   'dotbox' / 'GDK_DOTBOX'
119
120       ·   'double-arrow' / 'GDK_DOUBLE_ARROW'
121
122       ·   'draft-large' / 'GDK_DRAFT_LARGE'
123
124       ·   'draft-small' / 'GDK_DRAFT_SMALL'
125
126       ·   'draped-box' / 'GDK_DRAPED_BOX'
127
128       ·   'exchange' / 'GDK_EXCHANGE'
129
130       ·   'fleur' / 'GDK_FLEUR'
131
132       ·   'gobbler' / 'GDK_GOBBLER'
133
134       ·   'gumby' / 'GDK_GUMBY'
135
136       ·   'hand1' / 'GDK_HAND1'
137
138       ·   'hand2' / 'GDK_HAND2'
139
140       ·   'heart' / 'GDK_HEART'
141
142       ·   'icon' / 'GDK_ICON'
143
144       ·   'iron-cross' / 'GDK_IRON_CROSS'
145
146       ·   'left-ptr' / 'GDK_LEFT_PTR'
147
148       ·   'left-side' / 'GDK_LEFT_SIDE'
149
150       ·   'left-tee' / 'GDK_LEFT_TEE'
151
152       ·   'leftbutton' / 'GDK_LEFTBUTTON'
153
154       ·   'll-angle' / 'GDK_LL_ANGLE'
155
156       ·   'lr-angle' / 'GDK_LR_ANGLE'
157
158       ·   'man' / 'GDK_MAN'
159
160       ·   'middlebutton' / 'GDK_MIDDLEBUTTON'
161
162       ·   'mouse' / 'GDK_MOUSE'
163
164       ·   'pencil' / 'GDK_PENCIL'
165
166       ·   'pirate' / 'GDK_PIRATE'
167
168       ·   'plus' / 'GDK_PLUS'
169
170       ·   'question-arrow' / 'GDK_QUESTION_ARROW'
171
172       ·   'right-ptr' / 'GDK_RIGHT_PTR'
173
174       ·   'right-side' / 'GDK_RIGHT_SIDE'
175
176       ·   'right-tee' / 'GDK_RIGHT_TEE'
177
178       ·   'rightbutton' / 'GDK_RIGHTBUTTON'
179
180       ·   'rtl-logo' / 'GDK_RTL_LOGO'
181
182       ·   'sailboat' / 'GDK_SAILBOAT'
183
184       ·   'sb-down-arrow' / 'GDK_SB_DOWN_ARROW'
185
186       ·   'sb-h-double-arrow' / 'GDK_SB_H_DOUBLE_ARROW'
187
188       ·   'sb-left-arrow' / 'GDK_SB_LEFT_ARROW'
189
190       ·   'sb-right-arrow' / 'GDK_SB_RIGHT_ARROW'
191
192       ·   'sb-up-arrow' / 'GDK_SB_UP_ARROW'
193
194       ·   'sb-v-double-arrow' / 'GDK_SB_V_DOUBLE_ARROW'
195
196       ·   'shuttle' / 'GDK_SHUTTLE'
197
198       ·   'sizing' / 'GDK_SIZING'
199
200       ·   'spider' / 'GDK_SPIDER'
201
202       ·   'spraycan' / 'GDK_SPRAYCAN'
203
204       ·   'star' / 'GDK_STAR'
205
206       ·   'target' / 'GDK_TARGET'
207
208       ·   'tcross' / 'GDK_TCROSS'
209
210       ·   'top-left-arrow' / 'GDK_TOP_LEFT_ARROW'
211
212       ·   'top-left-corner' / 'GDK_TOP_LEFT_CORNER'
213
214       ·   'top-right-corner' / 'GDK_TOP_RIGHT_CORNER'
215
216       ·   'top-side' / 'GDK_TOP_SIDE'
217
218       ·   'top-tee' / 'GDK_TOP_TEE'
219
220       ·   'trek' / 'GDK_TREK'
221
222       ·   'ul-angle' / 'GDK_UL_ANGLE'
223
224       ·   'umbrella' / 'GDK_UMBRELLA'
225
226       ·   'ur-angle' / 'GDK_UR_ANGLE'
227
228       ·   'watch' / 'GDK_WATCH'
229
230       ·   'xterm' / 'GDK_XTERM'
231
232       ·   'last-cursor' / 'GDK_LAST_CURSOR'
233
234       ·   'blank-cursor' / 'GDK_BLANK_CURSOR'
235
236       ·   'cursor-is-pixmap' / 'GDK_CURSOR_IS_PIXMAP'
237

SEE ALSO

239       Gtk2, Glib::Boxed
240
242       Copyright (C) 2003-2011 by the gtk2-perl team.
243
244       This software is licensed under the LGPL.  See Gtk2 for a full notice.
245
246
247
248perl v5.30.1                      2020-01-30              Gtk2::Gdk::Cursor(3)
Impressum