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

NAME

6       Gtk2::IconView
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.11
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_width
102   $icon_view->set_item_width ($item_width)
103           ·   $item_width (integer)
104
105   integer = $icon_view->get_margin
106   $icon_view->set_margin ($margin)
107           ·   $margin (integer)
108
109   integer = $icon_view->get_markup_column
110   $icon_view->set_markup_column ($column)
111           ·   $column (integer)
112
113   treemodel = $icon_view->get_model
114   $icon_view->set_model ($model)
115           ·   $model (Gtk2::TreeModel)
116
117   orientation = $icon_view->get_orientation
118   $icon_view->set_orientation ($orientation)
119           ·   $orientation (Gtk2::Orientation)
120
121   treepath = $icon_view->get_path_at_pos ($x, $y)
122           ·   $x (integer)
123
124           ·   $y (integer)
125
126   boolean = $icon_view->path_is_selected ($path)
127           ·   $path (Gtk2::TreePath)
128
129   integer = $icon_view->get_pixbuf_column
130   $icon_view->set_pixbuf_column ($column)
131           ·   $column (integer)
132
133   boolean = $icon_view->get_reorderable
134           Since: gtk+ 2.8
135
136   $icon_view->set_reorderable ($reorderable)
137           ·   $reorderable (boolean)
138
139           Since: gtk+ 2.8
140
141   integer = $icon_view->get_row_spacing
142   $icon_view->set_row_spacing ($row_spacing)
143           ·   $row_spacing (integer)
144
145   $icon_view->scroll_to_path ($path, $use_align=FALSE, $row_align=0.0,
146       $col_align=0.0)
147           ·   $path (Gtk2::TreePath)
148
149           ·   $use_align (boolean)
150
151           ·   $row_align (double)
152
153           ·   $col_align (double)
154
155           Since: gtk+ 2.8
156
157   $icon_view->select_all
158   $icon_view->select_path ($path)
159           ·   $path (Gtk2::TreePath)
160
161   $icon_view->selected_foreach ($func, $data=undef)
162           ·   $func (scalar)
163
164           ·   $data (scalar)
165
166   list = $icon_view->get_selected_items
167   selectionmode = $icon_view->get_selection_mode
168   $icon_view->set_selection_mode ($mode)
169           ·   $mode (Gtk2::SelectionMode)
170
171   integer = $icon_view->get_spacing
172   $icon_view->set_spacing ($spacing)
173           ·   $spacing (integer)
174
175   integer = $icon_view->get_text_column
176   $icon_view->set_text_column ($column)
177           ·   $column (integer)
178
179   $icon_view->set_tooltip_cell ($tooltip, $path, $cell)
180           ·   $tooltip (Gtk2::Tooltip)
181
182           ·   $path (Gtk2::TreePath)
183
184           ·   $cell (Gtk2::CellRenderer)
185
186           Since: gtk+ 2.11
187
188   integer = $icon_view->get_tooltip_column
189           Since: gtk+ 2.11
190
191   $icon_view->set_tooltip_column ($column)
192           ·   $column (integer)
193
194           Since: gtk+ 2.11
195
196   list = $icon_view->get_tooltip_context ($x, $y, $keyboard_tip)
197           ·   $x (integer)
198
199           ·   $y (integer)
200
201           ·   $keyboard_tip (boolean)
202
203           Since: gtk+ 2.11
204
205   $icon_view->set_tooltip_item ($tooltip, $path)
206           ·   $tooltip (Gtk2::Tooltip)
207
208           ·   $path (Gtk2::TreePath)
209
210           Since: gtk+ 2.11
211
212   $icon_view->unselect_all
213   $icon_view->unselect_path ($path)
214           ·   $path (Gtk2::TreePath)
215
216   $icon_view->unset_model_drag_dest
217           Since: gtk+ 2.8
218
219   $icon_view->unset_model_drag_source
220           Since: gtk+ 2.8
221
222   list = $icon_view->get_visible_range
223           Since: gtk+ 2.8
224

PROPERTIES

226       'column-spacing' (integer : readable / writable / private)
227           Space which is inserted between grid columns
228
229       'columns' (integer : readable / writable / private)
230           Number of columns to display
231
232       'item-padding' (integer : readable / writable / private)
233           Padding around icon view items
234
235       'item-width' (integer : readable / writable / private)
236           The width used for each item
237
238       'margin' (integer : readable / writable / private)
239           Space which is inserted at the edges of the icon view
240
241       'markup-column' (integer : readable / writable / private)
242           Model column used to retrieve the text if using Pango markup
243
244       'model' (Gtk2::TreeModel : readable / writable / private)
245           The model for the icon view
246
247       'orientation' (Gtk2::Orientation : readable / writable / private)
248           How the text and icon of each item are positioned relative to each
249           other
250
251       'pixbuf-column' (integer : readable / writable / private)
252           Model column used to retrieve the icon pixbuf from
253
254       'reorderable' (boolean : readable / writable)
255           View is reorderable
256
257       'row-spacing' (integer : readable / writable / private)
258           Space which is inserted between grid rows
259
260       'selection-mode' (Gtk2::SelectionMode : readable / writable / private)
261           The selection mode
262
263       'spacing' (integer : readable / writable / private)
264           Space which is inserted between cells of an item
265
266       'text-column' (integer : readable / writable / private)
267           Model column used to retrieve the text from
268
269       'tooltip-column' (integer : readable / writable / private)
270           The column in the model containing the tooltip texts for the items
271

SIGNALS

273       set-scroll-adjustments (Gtk2::IconView, Gtk2::Adjustment,
274       Gtk2::Adjustment)
275       item-activated (Gtk2::IconView, Gtk2::TreePath)
276       selection-changed (Gtk2::IconView)
277       select-all (Gtk2::IconView)
278       unselect-all (Gtk2::IconView)
279       select-cursor-item (Gtk2::IconView)
280       toggle-cursor-item (Gtk2::IconView)
281       boolean = activate-cursor-item (Gtk2::IconView)
282       boolean = move-cursor (Gtk2::IconView, Gtk2::MovementStep, integer)
283

ENUMS AND FLAGS

285   flags Gtk2::Gdk::DragAction
286       ·   'default' / 'GDK_ACTION_DEFAULT'
287
288       ·   'copy' / 'GDK_ACTION_COPY'
289
290       ·   'move' / 'GDK_ACTION_MOVE'
291
292       ·   'link' / 'GDK_ACTION_LINK'
293
294       ·   'private' / 'GDK_ACTION_PRIVATE'
295
296       ·   'ask' / 'GDK_ACTION_ASK'
297
298   flags Gtk2::Gdk::ModifierType
299       ·   'shift-mask' / 'GDK_SHIFT_MASK'
300
301       ·   'lock-mask' / 'GDK_LOCK_MASK'
302
303       ·   'control-mask' / 'GDK_CONTROL_MASK'
304
305       ·   'mod1-mask' / 'GDK_MOD1_MASK'
306
307       ·   'mod2-mask' / 'GDK_MOD2_MASK'
308
309       ·   'mod3-mask' / 'GDK_MOD3_MASK'
310
311       ·   'mod4-mask' / 'GDK_MOD4_MASK'
312
313       ·   'mod5-mask' / 'GDK_MOD5_MASK'
314
315       ·   'button1-mask' / 'GDK_BUTTON1_MASK'
316
317       ·   'button2-mask' / 'GDK_BUTTON2_MASK'
318
319       ·   'button3-mask' / 'GDK_BUTTON3_MASK'
320
321       ·   'button4-mask' / 'GDK_BUTTON4_MASK'
322
323       ·   'button5-mask' / 'GDK_BUTTON5_MASK'
324
325       ·   'super-mask' / 'GDK_SUPER_MASK'
326
327       ·   'hyper-mask' / 'GDK_HYPER_MASK'
328
329       ·   'meta-mask' / 'GDK_META_MASK'
330
331       ·   'release-mask' / 'GDK_RELEASE_MASK'
332
333       ·   'modifier-mask' / 'GDK_MODIFIER_MASK'
334
335   enum Gtk2::IconView::DropPosition
336       ·   'no-drop' / 'GTK_ICON_VIEW_NO_DROP'
337
338       ·   'drop-into' / 'GTK_ICON_VIEW_DROP_INTO'
339
340       ·   'drop-left' / 'GTK_ICON_VIEW_DROP_LEFT'
341
342       ·   'drop-right' / 'GTK_ICON_VIEW_DROP_RIGHT'
343
344       ·   'drop-above' / 'GTK_ICON_VIEW_DROP_ABOVE'
345
346       ·   'drop-below' / 'GTK_ICON_VIEW_DROP_BELOW'
347
348   enum Gtk2::MovementStep
349       ·   'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'
350
351       ·   'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'
352
353       ·   'words' / 'GTK_MOVEMENT_WORDS'
354
355       ·   'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'
356
357       ·   'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'
358
359       ·   'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'
360
361       ·   'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'
362
363       ·   'pages' / 'GTK_MOVEMENT_PAGES'
364
365       ·   'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'
366
367       ·   'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'
368
369   enum Gtk2::Orientation
370       ·   'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
371
372       ·   'vertical' / 'GTK_ORIENTATION_VERTICAL'
373
374   enum Gtk2::SelectionMode
375       ·   'none' / 'GTK_SELECTION_NONE'
376
377       ·   'single' / 'GTK_SELECTION_SINGLE'
378
379       ·   'browse' / 'GTK_SELECTION_BROWSE'
380
381       ·   'multiple' / 'GTK_SELECTION_MULTIPLE'
382
383       ·   'extended' / 'GTK_SELECTION_EXTENDED'
384

SEE ALSO

386       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
387       Gtk2::Container
388
390       Copyright (C) 2003-2008 by the gtk2-perl team.
391
392       This software is licensed under the LGPL.  See Gtk2 for a full notice.
393
394
395
396perl v5.12.0                      2010-05-02                 Gtk2::IconView(3)
Impressum