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::CellLayout
19

METHODS

21       widget = Gtk2::IconView->new
22
23       widget = Gtk2::IconView->new_with_model ($model)
24
25           * $model (Gtk2::TreeModel)
26
27       integer = $icon_view->get_column_spacing
28
29       $icon_view->set_column_spacing ($column_spacing)
30
31           * $column_spacing (integer)
32
33       integer = $icon_view->get_columns
34
35       $icon_view->set_columns ($columns)
36
37           * $columns (integer)
38
39       pixmap = $icon_view->create_drag_icon ($path)
40
41           * $path (Gtk2::TreePath)
42
43       list = $icon_view->get_cursor
44
45       $icon_view->set_cursor ($path, $cell, $start_editing)
46
47           * $path (Gtk2::TreePath)
48           * $cell (Gtk2::CellRenderer or undef)
49           * $start_editing (boolean)
50
51       list = $icon_view->get_dest_item_at_pos ($drag_x, $drag_y)
52
53           * $drag_x (integer)
54           * $drag_y (integer)
55
56       (path, pos) = $icon_view->get_drag_dest_item
57
58       $icon_view->set_drag_dest_item ($path, $pos)
59
60           * $path (Gtk2::TreePath)
61           * $pos (Gtk2::IconView::DropPosition)
62
63       $icon_view->enable_model_drag_dest ($actions, ...)
64
65           * $actions (Gtk2::Gdk::DragAction)
66           * ... (list) of Gtk2::TargetEntry's
67
68       $icon_view->enable_model_drag_source ($start_button_mask, $actions,
69       ...)
70
71           * $start_button_mask (Gtk2::Gdk::ModifierType)
72           * $actions (Gtk2::Gdk::DragAction)
73           * ... (list) of Gtk2::TargetEntry's
74
75       $icon_view->item_activated ($path)
76
77           * $path (Gtk2::TreePath)
78
79       list = $icon_view->get_item_at_pos ($x, $y)
80
81           * $x (integer)
82           * $y (integer)
83
84       integer = $icon_view->get_item_width
85
86       $icon_view->set_item_width ($item_width)
87
88           * $item_width (integer)
89
90       integer = $icon_view->get_margin
91
92       $icon_view->set_margin ($margin)
93
94           * $margin (integer)
95
96       integer = $icon_view->get_markup_column
97
98       $icon_view->set_markup_column ($column)
99
100           * $column (integer)
101
102       treemodel = $icon_view->get_model
103
104       $icon_view->set_model ($model)
105
106           * $model (Gtk2::TreeModel)
107
108       orientation = $icon_view->get_orientation
109
110       $icon_view->set_orientation ($orientation)
111
112           * $orientation (Gtk2::Orientation)
113
114       treepath = $icon_view->get_path_at_pos ($x, $y)
115
116           * $x (integer)
117           * $y (integer)
118
119       boolean = $icon_view->path_is_selected ($path)
120
121           * $path (Gtk2::TreePath)
122
123       integer = $icon_view->get_pixbuf_column
124
125       $icon_view->set_pixbuf_column ($column)
126
127           * $column (integer)
128
129       boolean = $icon_view->get_reorderable
130
131       $icon_view->set_reorderable ($reorderable)
132
133           * $reorderable (boolean)
134
135       integer = $icon_view->get_row_spacing
136
137       $icon_view->set_row_spacing ($row_spacing)
138
139           * $row_spacing (integer)
140
141       $icon_view->scroll_to_path ($path, $use_align, $row_align, $col_align)
142
143           * $path (Gtk2::TreePath)
144           * $use_align (boolean)
145           * $row_align (double)
146           * $col_align (double)
147
148       $icon_view->select_all
149
150       $icon_view->select_path ($path)
151
152           * $path (Gtk2::TreePath)
153
154       $icon_view->selected_foreach ($func, $data=undef)
155
156           * $func (scalar)
157           * $data (scalar)
158
159       list = $icon_view->get_selected_items
160
161       selectionmode = $icon_view->get_selection_mode
162
163       $icon_view->set_selection_mode ($mode)
164
165           * $mode (Gtk2::SelectionMode)
166
167       integer = $icon_view->get_spacing
168
169       $icon_view->set_spacing ($spacing)
170
171           * $spacing (integer)
172
173       integer = $icon_view->get_text_column
174
175       $icon_view->set_text_column ($column)
176
177           * $column (integer)
178
179       $icon_view->unselect_all
180
181       $icon_view->unselect_path ($path)
182
183           * $path (Gtk2::TreePath)
184
185       $icon_view->unset_model_drag_dest
186
187       $icon_view->unset_model_drag_source
188
189       list = $icon_view->get_visible_range
190

PROPERTIES

192       'column-spacing' (integer : readable / writable / private)
193           Space which is inserted between grid columns
194
195       'columns' (integer : readable / writable / private)
196           Number of columns to display
197
198       'item-width' (integer : readable / writable / private)
199           The width used for each item
200
201       'margin' (integer : readable / writable / private)
202           Space which is inserted at the edges of the icon view
203
204       'markup-column' (integer : readable / writable / private)
205           Model column used to retrieve the text if using Pango markup
206
207       'model' (Gtk2::TreeModel : readable / writable / private)
208           The model for the icon view
209
210       'orientation' (Gtk2::Orientation : readable / writable / private)
211           How the text and icon of each item are positioned relative to each
212           other
213
214       'pixbuf-column' (integer : readable / writable / private)
215           Model column used to retrieve the icon pixbuf from
216
217       'reorderable' (boolean : readable / writable)
218           View is reorderable
219
220       'row-spacing' (integer : readable / writable / private)
221           Space which is inserted between grid rows
222
223       'selection-mode' (Gtk2::SelectionMode : readable / writable / private)
224           The selection mode
225
226       'spacing' (integer : readable / writable / private)
227           Space which is inserted between cells of an item
228
229       'text-column' (integer : readable / writable / private)
230           Model column used to retrieve the text from
231

SIGNALS

233       selection-changed (Gtk2::IconView)
234       set-scroll-adjustments (Gtk2::IconView, Gtk2::Adjustment, Gtk2::Adjust‐
235       ment)
236       item-activated (Gtk2::IconView, Gtk2::TreePath)
237       select-all (Gtk2::IconView)
238       unselect-all (Gtk2::IconView)
239       select-cursor-item (Gtk2::IconView)
240       toggle-cursor-item (Gtk2::IconView)
241       boolean = activate-cursor-item (Gtk2::IconView)
242       boolean = move-cursor (Gtk2::IconView, Gtk2::MovementStep, integer)
243

ENUMS AND FLAGS

245       flags Gtk2::Gdk::DragAction
246
247       * 'default' / 'GDK_ACTION_DEFAULT'
248       * 'copy' / 'GDK_ACTION_COPY'
249       * 'move' / 'GDK_ACTION_MOVE'
250       * 'link' / 'GDK_ACTION_LINK'
251       * 'private' / 'GDK_ACTION_PRIVATE'
252       * 'ask' / 'GDK_ACTION_ASK'
253
254       flags Gtk2::Gdk::ModifierType
255
256       * 'shift-mask' / 'GDK_SHIFT_MASK'
257       * 'lock-mask' / 'GDK_LOCK_MASK'
258       * 'control-mask' / 'GDK_CONTROL_MASK'
259       * 'mod1-mask' / 'GDK_MOD1_MASK'
260       * 'mod2-mask' / 'GDK_MOD2_MASK'
261       * 'mod3-mask' / 'GDK_MOD3_MASK'
262       * 'mod4-mask' / 'GDK_MOD4_MASK'
263       * 'mod5-mask' / 'GDK_MOD5_MASK'
264       * 'button1-mask' / 'GDK_BUTTON1_MASK'
265       * 'button2-mask' / 'GDK_BUTTON2_MASK'
266       * 'button3-mask' / 'GDK_BUTTON3_MASK'
267       * 'button4-mask' / 'GDK_BUTTON4_MASK'
268       * 'button5-mask' / 'GDK_BUTTON5_MASK'
269       * 'super-mask' / 'GDK_SUPER_MASK'
270       * 'hyper-mask' / 'GDK_HYPER_MASK'
271       * 'meta-mask' / 'GDK_META_MASK'
272       * 'release-mask' / 'GDK_RELEASE_MASK'
273       * 'modifier-mask' / 'GDK_MODIFIER_MASK'
274
275       enum Gtk2::IconView::DropPosition
276
277       * 'no-drop' / 'GTK_ICON_VIEW_NO_DROP'
278       * 'drop-into' / 'GTK_ICON_VIEW_DROP_INTO'
279       * 'drop-left' / 'GTK_ICON_VIEW_DROP_LEFT'
280       * 'drop-right' / 'GTK_ICON_VIEW_DROP_RIGHT'
281       * 'drop-above' / 'GTK_ICON_VIEW_DROP_ABOVE'
282       * 'drop-below' / 'GTK_ICON_VIEW_DROP_BELOW'
283
284       enum Gtk2::MovementStep
285
286       * 'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'
287       * 'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'
288       * 'words' / 'GTK_MOVEMENT_WORDS'
289       * 'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'
290       * 'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'
291       * 'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'
292       * 'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'
293       * 'pages' / 'GTK_MOVEMENT_PAGES'
294       * 'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'
295       * 'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'
296
297       enum Gtk2::Orientation
298
299       * 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
300       * 'vertical' / 'GTK_ORIENTATION_VERTICAL'
301
302       enum Gtk2::SelectionMode
303
304       * 'none' / 'GTK_SELECTION_NONE'
305       * 'single' / 'GTK_SELECTION_SINGLE'
306       * 'browse' / 'GTK_SELECTION_BROWSE'
307       * 'multiple' / 'GTK_SELECTION_MULTIPLE'
308       * 'extended' / 'GTK_SELECTION_EXTENDED'
309

SEE ALSO

311       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
312       Gtk2::Container
313
315       Copyright (C) 2003-2007 by the gtk2-perl team.
316
317       This software is licensed under the LGPL.  See Gtk2 for a full notice.
318
319
320
321perl v5.8.8                       2007-03-18                 Gtk2::IconView(3)
Impressum