1Gtk2::IconView(3) User Contributed Perl Documentation Gtk2::IconView(3)
2
3
4
6 Gtk2::IconView - wrapper for GtkIconView
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::IconView
15
17 Glib::Object::_Unregistered::AtkImplementorIface
18 Gtk2::Buildable
19 Gtk2::CellLayout
20
22 widget = Gtk2::IconView->new
23 widget = Gtk2::IconView->new_with_model ($model)
24 · $model (Gtk2::TreeModel)
25
26 integer = $icon_view->get_column_spacing
27 $icon_view->set_column_spacing ($column_spacing)
28 · $column_spacing (integer)
29
30 integer = $icon_view->get_columns
31 $icon_view->set_columns ($columns)
32 · $columns (integer)
33
34 (bx, by) = $icon_view->convert_widget_to_bin_window_coords ($wx, $wy)
35 · $wx (integer)
36
37 · $wy (integer)
38
39 Since: gtk+ 2.12
40
41 pixmap = $icon_view->create_drag_icon ($path)
42 · $path (Gtk2::TreePath)
43
44 Since: gtk+ 2.8
45
46 list = $icon_view->get_cursor
47 Since: gtk+ 2.8
48
49 $icon_view->set_cursor ($path, $cell, $start_editing)
50 · $path (Gtk2::TreePath)
51
52 · $cell (Gtk2::CellRenderer or undef)
53
54 · $start_editing (boolean)
55
56 Since: gtk+ 2.8
57
58 $icon_view->get_dest_item_at_pos ($drag_x, $drag_y)
59 · $drag_x (integer)
60
61 · $drag_y (integer)
62
63 Since: gtk+ 2.8
64
65 list = $icon_view->get_drag_dest_item
66 Since: gtk+ 2.8
67
68 $icon_view->set_drag_dest_item ($path, $pos)
69 · $path (Gtk2::TreePath)
70
71 · $pos (Gtk2::IconView::DropPosition)
72
73 Since: gtk+ 2.8
74
75 $icon_view->enable_model_drag_dest ($actions, ...)
76 · $actions (Gtk2::Gdk::DragAction)
77
78 · ... (list) of Gtk2::TargetEntry's
79
80 Since: gtk+ 2.8
81
82 $icon_view->enable_model_drag_source ($start_button_mask, $actions, ...)
83 · $start_button_mask (Gtk2::Gdk::ModifierType)
84
85 · $actions (Gtk2::Gdk::DragAction)
86
87 · ... (list) of Gtk2::TargetEntry's
88
89 Since: gtk+ 2.8
90
91 $icon_view->item_activated ($path)
92 · $path (Gtk2::TreePath)
93
94 $icon_view->get_item_at_pos ($x, $y)
95 · $x (integer)
96
97 · $y (integer)
98
99 Since: gtk+ 2.8
100
101 integer = $icon_view->get_item_column ($path)
102 · $path (Gtk2::TreePath)
103
104 Since: gtk+ 2.22
105
106 orientation = $icon_view->get_item_orientation
107 Since: gtk+ 2.22
108
109 $icon_view->set_item_orientation ($orientation)
110 · $orientation (Gtk2::Orientation)
111
112 Since: gtk+ 2.22
113
114 integer = $icon_view->get_item_padding
115 Since: gtk+ 2.18
116
117 $icon_view->set_item_padding ($item_padding)
118 · $item_padding (integer)
119
120 Since: gtk+ 2.18
121
122 integer = $icon_view->get_item_row ($path)
123 · $path (Gtk2::TreePath)
124
125 Since: gtk+ 2.22
126
127 integer = $icon_view->get_item_width
128 $icon_view->set_item_width ($item_width)
129 · $item_width (integer)
130
131 integer = $icon_view->get_margin
132 $icon_view->set_margin ($margin)
133 · $margin (integer)
134
135 integer = $icon_view->get_markup_column
136 $icon_view->set_markup_column ($column)
137 · $column (integer)
138
139 treemodel = $icon_view->get_model
140 $icon_view->set_model ($model)
141 · $model (Gtk2::TreeModel)
142
143 orientation = $icon_view->get_orientation
144 $icon_view->set_orientation ($orientation)
145 · $orientation (Gtk2::Orientation)
146
147 treepath = $icon_view->get_path_at_pos ($x, $y)
148 · $x (integer)
149
150 · $y (integer)
151
152 boolean = $icon_view->path_is_selected ($path)
153 · $path (Gtk2::TreePath)
154
155 integer = $icon_view->get_pixbuf_column
156 $icon_view->set_pixbuf_column ($column)
157 · $column (integer)
158
159 boolean = $icon_view->get_reorderable
160 Since: gtk+ 2.8
161
162 $icon_view->set_reorderable ($reorderable)
163 · $reorderable (boolean)
164
165 Since: gtk+ 2.8
166
167 integer = $icon_view->get_row_spacing
168 $icon_view->set_row_spacing ($row_spacing)
169 · $row_spacing (integer)
170
171 $icon_view->scroll_to_path ($path, $use_align=FALSE, $row_align=0.0,
172 $col_align=0.0)
173 · $path (Gtk2::TreePath)
174
175 · $use_align (boolean)
176
177 · $row_align (double)
178
179 · $col_align (double)
180
181 Since: gtk+ 2.8
182
183 $icon_view->select_all
184 $icon_view->select_path ($path)
185 · $path (Gtk2::TreePath)
186
187 $icon_view->selected_foreach ($func, $data=undef)
188 · $func (scalar)
189
190 · $data (scalar)
191
192 list = $icon_view->get_selected_items
193 selectionmode = $icon_view->get_selection_mode
194 $icon_view->set_selection_mode ($mode)
195 · $mode (Gtk2::SelectionMode)
196
197 integer = $icon_view->get_spacing
198 $icon_view->set_spacing ($spacing)
199 · $spacing (integer)
200
201 integer = $icon_view->get_text_column
202 $icon_view->set_text_column ($column)
203 · $column (integer)
204
205 $icon_view->set_tooltip_cell ($tooltip, $path, $cell)
206 · $tooltip (Gtk2::Tooltip)
207
208 · $path (Gtk2::TreePath)
209
210 · $cell (Gtk2::CellRenderer)
211
212 Since: gtk+ 2.12
213
214 integer = $icon_view->get_tooltip_column
215 Since: gtk+ 2.12
216
217 $icon_view->set_tooltip_column ($column)
218 · $column (integer)
219
220 Since: gtk+ 2.12
221
222 list = $icon_view->get_tooltip_context ($x, $y, $keyboard_tip)
223 · $x (integer)
224
225 · $y (integer)
226
227 · $keyboard_tip (boolean)
228
229 Since: gtk+ 2.12
230
231 $icon_view->set_tooltip_item ($tooltip, $path)
232 · $tooltip (Gtk2::Tooltip)
233
234 · $path (Gtk2::TreePath)
235
236 Since: gtk+ 2.12
237
238 $icon_view->unselect_all
239 $icon_view->unselect_path ($path)
240 · $path (Gtk2::TreePath)
241
242 $icon_view->unset_model_drag_dest
243 Since: gtk+ 2.8
244
245 $icon_view->unset_model_drag_source
246 Since: gtk+ 2.8
247
248 list = $icon_view->get_visible_range
249 Since: gtk+ 2.8
250
252 'column-spacing' (integer : default 6 : readable / writable / private)
253 Space which is inserted between grid columns
254
255 'columns' (integer : default -1 : readable / writable / private)
256 Number of columns to display
257
258 'item-orientation' (Gtk2::Orientation : default "vertical" : readable /
259 writable / private)
260 How the text and icon of each item are positioned relative to each
261 other
262
263 'item-padding' (integer : default 6 : readable / writable / private)
264 Padding around icon view items
265
266 'item-width' (integer : default -1 : readable / writable / private)
267 The width used for each item
268
269 'margin' (integer : default 6 : readable / writable / private)
270 Space which is inserted at the edges of the icon view
271
272 'markup-column' (integer : default -1 : readable / writable / private)
273 Model column used to retrieve the text if using Pango markup
274
275 'model' (Gtk2::TreeModel : default undef : readable / writable /
276 private)
277 The model for the icon view
278
279 'orientation' (Gtk2::Orientation : default "vertical" : readable /
280 writable / private)
281 How the text and icon of each item are positioned relative to each
282 other
283
284 'pixbuf-column' (integer : default -1 : readable / writable / private)
285 Model column used to retrieve the icon pixbuf from
286
287 'reorderable' (boolean : default false : readable / writable)
288 View is reorderable
289
290 'row-spacing' (integer : default 6 : readable / writable / private)
291 Space which is inserted between grid rows
292
293 'selection-mode' (Gtk2::SelectionMode : default "single" : readable /
294 writable / private)
295 The selection mode
296
297 'spacing' (integer : default 0 : readable / writable / private)
298 Space which is inserted between cells of an item
299
300 'text-column' (integer : default -1 : readable / writable / private)
301 Model column used to retrieve the text from
302
303 'tooltip-column' (integer : default -1 : readable / writable / private)
304 The column in the model containing the tooltip texts for the items
305
307 'selection-box-alpha' (Glib::UChar : default 64 : readable / private)
308 Opacity of the selection box
309
310 'selection-box-color' (Gtk2::Gdk::Color : default undef : readable /
311 private)
312 Color of the selection box
313
315 boolean = activate-cursor-item (Gtk2::IconView)
316 item-activated (Gtk2::IconView, Gtk2::TreePath)
317 boolean = move-cursor (Gtk2::IconView, Gtk2::MovementStep, integer)
318 select-all (Gtk2::IconView)
319 select-cursor-item (Gtk2::IconView)
320 selection-changed (Gtk2::IconView)
321 set-scroll-adjustments (Gtk2::IconView, Gtk2::Adjustment,
322 Gtk2::Adjustment)
323 toggle-cursor-item (Gtk2::IconView)
324 unselect-all (Gtk2::IconView)
325
327 flags Gtk2::Gdk::DragAction
328 · 'default' / 'GDK_ACTION_DEFAULT'
329
330 · 'copy' / 'GDK_ACTION_COPY'
331
332 · 'move' / 'GDK_ACTION_MOVE'
333
334 · 'link' / 'GDK_ACTION_LINK'
335
336 · 'private' / 'GDK_ACTION_PRIVATE'
337
338 · 'ask' / 'GDK_ACTION_ASK'
339
340 flags Gtk2::Gdk::ModifierType
341 · 'shift-mask' / 'GDK_SHIFT_MASK'
342
343 · 'lock-mask' / 'GDK_LOCK_MASK'
344
345 · 'control-mask' / 'GDK_CONTROL_MASK'
346
347 · 'mod1-mask' / 'GDK_MOD1_MASK'
348
349 · 'mod2-mask' / 'GDK_MOD2_MASK'
350
351 · 'mod3-mask' / 'GDK_MOD3_MASK'
352
353 · 'mod4-mask' / 'GDK_MOD4_MASK'
354
355 · 'mod5-mask' / 'GDK_MOD5_MASK'
356
357 · 'button1-mask' / 'GDK_BUTTON1_MASK'
358
359 · 'button2-mask' / 'GDK_BUTTON2_MASK'
360
361 · 'button3-mask' / 'GDK_BUTTON3_MASK'
362
363 · 'button4-mask' / 'GDK_BUTTON4_MASK'
364
365 · 'button5-mask' / 'GDK_BUTTON5_MASK'
366
367 · 'super-mask' / 'GDK_SUPER_MASK'
368
369 · 'hyper-mask' / 'GDK_HYPER_MASK'
370
371 · 'meta-mask' / 'GDK_META_MASK'
372
373 · 'release-mask' / 'GDK_RELEASE_MASK'
374
375 · 'modifier-mask' / 'GDK_MODIFIER_MASK'
376
377 enum Gtk2::IconView::DropPosition
378 · 'no-drop' / 'GTK_ICON_VIEW_NO_DROP'
379
380 · 'drop-into' / 'GTK_ICON_VIEW_DROP_INTO'
381
382 · 'drop-left' / 'GTK_ICON_VIEW_DROP_LEFT'
383
384 · 'drop-right' / 'GTK_ICON_VIEW_DROP_RIGHT'
385
386 · 'drop-above' / 'GTK_ICON_VIEW_DROP_ABOVE'
387
388 · 'drop-below' / 'GTK_ICON_VIEW_DROP_BELOW'
389
390 enum Gtk2::MovementStep
391 · 'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'
392
393 · 'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'
394
395 · 'words' / 'GTK_MOVEMENT_WORDS'
396
397 · 'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'
398
399 · 'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'
400
401 · 'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'
402
403 · 'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'
404
405 · 'pages' / 'GTK_MOVEMENT_PAGES'
406
407 · 'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'
408
409 · 'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'
410
411 enum Gtk2::Orientation
412 · 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
413
414 · 'vertical' / 'GTK_ORIENTATION_VERTICAL'
415
416 enum Gtk2::SelectionMode
417 · 'none' / 'GTK_SELECTION_NONE'
418
419 · 'single' / 'GTK_SELECTION_SINGLE'
420
421 · 'browse' / 'GTK_SELECTION_BROWSE'
422
423 · 'multiple' / 'GTK_SELECTION_MULTIPLE'
424
425 · 'extended' / 'GTK_SELECTION_EXTENDED'
426
428 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
429 Gtk2::Container
430
432 Copyright (C) 2003-2011 by the gtk2-perl team.
433
434 This software is licensed under the LGPL. See Gtk2 for a full notice.
435
436
437
438perl v5.28.0 2018-07-18 Gtk2::IconView(3)