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

NAME

6       Gtk2::IconView - wrapper for GtkIconView
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::IconView
15

INTERFACES

17         Glib::Object::_Unregistered::AtkImplementorIface
18         Gtk2::Buildable
19         Gtk2::CellLayout
20

METHODS

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

PROPERTIES

252       'column-spacing' (integer : default 6 : readable / writable / private /
253       static-nick / static-blurb)
254           Space which is inserted between grid columns
255
256       'columns' (integer : default -1 : readable / writable / private /
257       static-nick / static-blurb)
258           Number of columns to display
259
260       'item-orientation' (Gtk2::Orientation : default "vertical" : readable /
261       writable / private / static-nick / static-blurb)
262           How the text and icon of each item are positioned relative to each
263           other
264
265       'item-padding' (integer : default 6 : readable / writable / private /
266       static-nick / static-blurb)
267           Padding around icon view items
268
269       'item-width' (integer : default -1 : readable / writable / private /
270       static-nick / static-blurb)
271           The width used for each item
272
273       'margin' (integer : default 6 : readable / writable / private / static-
274       nick / static-blurb)
275           Space which is inserted at the edges of the icon view
276
277       'markup-column' (integer : default -1 : readable / writable / private /
278       static-nick / static-blurb)
279           Model column used to retrieve the text if using Pango markup
280
281       'model' (Gtk2::TreeModel : default undef : readable / writable /
282       private / static-nick / static-blurb)
283           The model for the icon view
284
285       'orientation' (Gtk2::Orientation : default "vertical" : readable /
286       writable / private / static-nick / static-blurb / deprecated)
287           How the text and icon of each item are positioned relative to each
288           other
289
290       'pixbuf-column' (integer : default -1 : readable / writable / private /
291       static-nick / static-blurb)
292           Model column used to retrieve the icon pixbuf from
293
294       'reorderable' (boolean : default false : readable / writable)
295           View is reorderable
296
297       'row-spacing' (integer : default 6 : readable / writable / private /
298       static-nick / static-blurb)
299           Space which is inserted between grid rows
300
301       'selection-mode' (Gtk2::SelectionMode : default "single" : readable /
302       writable / private / static-nick / static-blurb)
303           The selection mode
304
305       'spacing' (integer : default 0 : readable / writable / private /
306       static-nick / static-blurb)
307           Space which is inserted between cells of an item
308
309       'text-column' (integer : default -1 : readable / writable / private /
310       static-nick / static-blurb)
311           Model column used to retrieve the text from
312
313       'tooltip-column' (integer : default -1 : readable / writable / private
314       / static-nick / static-blurb)
315           The column in the model containing the tooltip texts for the items
316

STYLE PROPERTIES

318       'selection-box-alpha' (Glib::UChar : default 64 : readable / private /
319       static-nick / static-blurb)
320           Opacity of the selection box
321
322       'selection-box-color' (Gtk2::Gdk::Color : default undef : readable /
323       private / static-nick / static-blurb)
324           Color of the selection box
325

SIGNALS

327       boolean = activate-cursor-item (Gtk2::IconView)
328       item-activated (Gtk2::IconView, Gtk2::TreePath)
329       boolean = move-cursor (Gtk2::IconView, Gtk2::MovementStep, integer)
330       select-all (Gtk2::IconView)
331       select-cursor-item (Gtk2::IconView)
332       selection-changed (Gtk2::IconView)
333       set-scroll-adjustments (Gtk2::IconView, Gtk2::Adjustment,
334       Gtk2::Adjustment)
335       toggle-cursor-item (Gtk2::IconView)
336       unselect-all (Gtk2::IconView)
337

ENUMS AND FLAGS

339   flags Gtk2::Gdk::DragAction
340       •   'default' / 'GDK_ACTION_DEFAULT'
341
342       •   'copy' / 'GDK_ACTION_COPY'
343
344       •   'move' / 'GDK_ACTION_MOVE'
345
346       •   'link' / 'GDK_ACTION_LINK'
347
348       •   'private' / 'GDK_ACTION_PRIVATE'
349
350       •   'ask' / 'GDK_ACTION_ASK'
351
352   flags Gtk2::Gdk::ModifierType
353       •   'shift-mask' / 'GDK_SHIFT_MASK'
354
355       •   'lock-mask' / 'GDK_LOCK_MASK'
356
357       •   'control-mask' / 'GDK_CONTROL_MASK'
358
359       •   'mod1-mask' / 'GDK_MOD1_MASK'
360
361       •   'mod2-mask' / 'GDK_MOD2_MASK'
362
363       •   'mod3-mask' / 'GDK_MOD3_MASK'
364
365       •   'mod4-mask' / 'GDK_MOD4_MASK'
366
367       •   'mod5-mask' / 'GDK_MOD5_MASK'
368
369       •   'button1-mask' / 'GDK_BUTTON1_MASK'
370
371       •   'button2-mask' / 'GDK_BUTTON2_MASK'
372
373       •   'button3-mask' / 'GDK_BUTTON3_MASK'
374
375       •   'button4-mask' / 'GDK_BUTTON4_MASK'
376
377       •   'button5-mask' / 'GDK_BUTTON5_MASK'
378
379       •   'super-mask' / 'GDK_SUPER_MASK'
380
381       •   'hyper-mask' / 'GDK_HYPER_MASK'
382
383       •   'meta-mask' / 'GDK_META_MASK'
384
385       •   'release-mask' / 'GDK_RELEASE_MASK'
386
387       •   'modifier-mask' / 'GDK_MODIFIER_MASK'
388
389   enum Gtk2::IconView::DropPosition
390       •   'no-drop' / 'GTK_ICON_VIEW_NO_DROP'
391
392       •   'drop-into' / 'GTK_ICON_VIEW_DROP_INTO'
393
394       •   'drop-left' / 'GTK_ICON_VIEW_DROP_LEFT'
395
396       •   'drop-right' / 'GTK_ICON_VIEW_DROP_RIGHT'
397
398       •   'drop-above' / 'GTK_ICON_VIEW_DROP_ABOVE'
399
400       •   'drop-below' / 'GTK_ICON_VIEW_DROP_BELOW'
401
402   enum Gtk2::MovementStep
403       •   'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'
404
405       •   'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'
406
407       •   'words' / 'GTK_MOVEMENT_WORDS'
408
409       •   'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'
410
411       •   'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'
412
413       •   'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'
414
415       •   'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'
416
417       •   'pages' / 'GTK_MOVEMENT_PAGES'
418
419       •   'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'
420
421       •   'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'
422
423   enum Gtk2::Orientation
424       •   'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
425
426       •   'vertical' / 'GTK_ORIENTATION_VERTICAL'
427
428   enum Gtk2::SelectionMode
429       •   'none' / 'GTK_SELECTION_NONE'
430
431       •   'single' / 'GTK_SELECTION_SINGLE'
432
433       •   'browse' / 'GTK_SELECTION_BROWSE'
434
435       •   'multiple' / 'GTK_SELECTION_MULTIPLE'
436
437       •   'extended' / 'GTK_SELECTION_EXTENDED'
438

SEE ALSO

440       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
441       Gtk2::Container
442
444       Copyright (C) 2003-2011 by the gtk2-perl team.
445
446       This software is licensed under the LGPL.  See Gtk2 for a full notice.
447
448
449
450perl v5.32.1                      2021-01-27                 Gtk2::IconView(3)
Impressum