1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
A widget which displays a list of icons in a grid
7
<!-- ##### SECTION Long_Description ##### -->
9
#GtkIconView provides an alternative view on a list model.
10
It displays the model as a grid of icons with labels. Like
11
#GtkTreeView, it allows to select one or multiple items
12
(depending on the selection mode, see gtk_icon_view_set_selection_mode()).
13
In addition to selection with the arrow keys, #GtkIconView supports
14
rubberband selection, which is controlled by dragging the pointer.
17
<!-- ##### SECTION See_Also ##### -->
22
<!-- ##### SECTION Stability_Level ##### -->
25
<!-- ##### SECTION Image ##### -->
28
<!-- ##### STRUCT GtkIconView ##### -->
30
The <structname>GtkIconView</structname> struct contains only
31
private fields and should not be directly accessed.
35
<!-- ##### SIGNAL GtkIconView::activate-cursor-item ##### -->
40
@iconview: the object which received the signal.
43
<!-- ##### SIGNAL GtkIconView::item-activated ##### -->
48
@iconview: the object which received the signal.
51
<!-- ##### SIGNAL GtkIconView::move-cursor ##### -->
56
@iconview: the object which received the signal.
61
<!-- ##### SIGNAL GtkIconView::select-all ##### -->
66
@iconview: the object which received the signal.
68
<!-- ##### SIGNAL GtkIconView::select-cursor-item ##### -->
73
@iconview: the object which received the signal.
75
<!-- ##### SIGNAL GtkIconView::selection-changed ##### -->
80
@iconview: the object which received the signal.
82
<!-- ##### SIGNAL GtkIconView::set-scroll-adjustments ##### -->
87
@iconview: the object which received the signal.
91
<!-- ##### SIGNAL GtkIconView::toggle-cursor-item ##### -->
96
@iconview: the object which received the signal.
98
<!-- ##### SIGNAL GtkIconView::unselect-all ##### -->
103
@iconview: the object which received the signal.
105
<!-- ##### ARG GtkIconView:column-spacing ##### -->
110
<!-- ##### ARG GtkIconView:columns ##### -->
115
<!-- ##### ARG GtkIconView:item-orientation ##### -->
120
<!-- ##### ARG GtkIconView:item-padding ##### -->
125
<!-- ##### ARG GtkIconView:item-width ##### -->
130
<!-- ##### ARG GtkIconView:margin ##### -->
135
<!-- ##### ARG GtkIconView:markup-column ##### -->
140
<!-- ##### ARG GtkIconView:model ##### -->
145
<!-- ##### ARG GtkIconView:orientation ##### -->
150
<!-- ##### ARG GtkIconView:pixbuf-column ##### -->
155
<!-- ##### ARG GtkIconView:reorderable ##### -->
160
<!-- ##### ARG GtkIconView:row-spacing ##### -->
165
<!-- ##### ARG GtkIconView:selection-mode ##### -->
170
<!-- ##### ARG GtkIconView:spacing ##### -->
175
<!-- ##### ARG GtkIconView:text-column ##### -->
180
<!-- ##### ARG GtkIconView:tooltip-column ##### -->
185
<!-- ##### ARG GtkIconView:selection-box-alpha ##### -->
190
<!-- ##### ARG GtkIconView:selection-box-color ##### -->
195
<!-- ##### USER_FUNCTION GtkIconViewForeachFunc ##### -->
197
A function used by gtk_icon_view_selected_foreach() to map all
198
selected rows. It will be called on every selected row in the view.
201
@icon_view: a #GtkIconView
202
@path: The #GtkTreePath of a selected row
206
<!-- ##### FUNCTION gtk_icon_view_new ##### -->
215
<!-- ##### FUNCTION gtk_icon_view_new_with_model ##### -->
224
<!-- ##### FUNCTION gtk_icon_view_set_model ##### -->
233
<!-- ##### FUNCTION gtk_icon_view_get_model ##### -->
242
<!-- ##### FUNCTION gtk_icon_view_set_text_column ##### -->
251
<!-- ##### FUNCTION gtk_icon_view_get_text_column ##### -->
260
<!-- ##### FUNCTION gtk_icon_view_set_markup_column ##### -->
269
<!-- ##### FUNCTION gtk_icon_view_get_markup_column ##### -->
278
<!-- ##### FUNCTION gtk_icon_view_set_pixbuf_column ##### -->
287
<!-- ##### FUNCTION gtk_icon_view_get_pixbuf_column ##### -->
296
<!-- ##### FUNCTION gtk_icon_view_get_path_at_pos ##### -->
307
<!-- ##### FUNCTION gtk_icon_view_get_item_at_pos ##### -->
320
<!-- ##### FUNCTION gtk_icon_view_convert_widget_to_bin_window_coords ##### -->
332
<!-- ##### FUNCTION gtk_icon_view_set_cursor ##### -->
343
<!-- ##### FUNCTION gtk_icon_view_get_cursor ##### -->
354
<!-- ##### FUNCTION gtk_icon_view_selected_foreach ##### -->
364
<!-- ##### FUNCTION gtk_icon_view_set_selection_mode ##### -->
373
<!-- ##### FUNCTION gtk_icon_view_get_selection_mode ##### -->
382
<!-- ##### FUNCTION gtk_icon_view_set_orientation ##### -->
391
<!-- ##### FUNCTION gtk_icon_view_get_orientation ##### -->
400
<!-- ##### FUNCTION gtk_icon_view_set_item_orientation ##### -->
409
<!-- ##### FUNCTION gtk_icon_view_get_item_orientation ##### -->
418
<!-- ##### FUNCTION gtk_icon_view_set_columns ##### -->
427
<!-- ##### FUNCTION gtk_icon_view_get_columns ##### -->
436
<!-- ##### FUNCTION gtk_icon_view_set_item_width ##### -->
445
<!-- ##### FUNCTION gtk_icon_view_get_item_width ##### -->
454
<!-- ##### FUNCTION gtk_icon_view_set_spacing ##### -->
463
<!-- ##### FUNCTION gtk_icon_view_get_spacing ##### -->
472
<!-- ##### FUNCTION gtk_icon_view_set_row_spacing ##### -->
481
<!-- ##### FUNCTION gtk_icon_view_get_row_spacing ##### -->
490
<!-- ##### FUNCTION gtk_icon_view_set_column_spacing ##### -->
499
<!-- ##### FUNCTION gtk_icon_view_get_column_spacing ##### -->
508
<!-- ##### FUNCTION gtk_icon_view_set_margin ##### -->
517
<!-- ##### FUNCTION gtk_icon_view_get_margin ##### -->
526
<!-- ##### FUNCTION gtk_icon_view_set_item_padding ##### -->
535
<!-- ##### FUNCTION gtk_icon_view_get_item_padding ##### -->
544
<!-- ##### FUNCTION gtk_icon_view_select_path ##### -->
553
<!-- ##### FUNCTION gtk_icon_view_unselect_path ##### -->
562
<!-- ##### FUNCTION gtk_icon_view_path_is_selected ##### -->
572
<!-- ##### FUNCTION gtk_icon_view_get_selected_items ##### -->
581
<!-- ##### FUNCTION gtk_icon_view_select_all ##### -->
589
<!-- ##### FUNCTION gtk_icon_view_unselect_all ##### -->
597
<!-- ##### FUNCTION gtk_icon_view_item_activated ##### -->
606
<!-- ##### FUNCTION gtk_icon_view_scroll_to_path ##### -->
618
<!-- ##### FUNCTION gtk_icon_view_get_visible_range ##### -->
629
<!-- ##### FUNCTION gtk_icon_view_set_tooltip_item ##### -->
639
<!-- ##### FUNCTION gtk_icon_view_set_tooltip_cell ##### -->
650
<!-- ##### FUNCTION gtk_icon_view_get_tooltip_context ##### -->
665
<!-- ##### FUNCTION gtk_icon_view_set_tooltip_column ##### -->
674
<!-- ##### FUNCTION gtk_icon_view_get_tooltip_column ##### -->
683
<!-- ##### FUNCTION gtk_icon_view_get_item_row ##### -->
693
<!-- ##### FUNCTION gtk_icon_view_get_item_column ##### -->
703
<!-- ##### ENUM GtkIconViewDropPosition ##### -->
705
An enum for determining where a dropped item goes.
708
@GTK_ICON_VIEW_NO_DROP: no drop possible
709
@GTK_ICON_VIEW_DROP_INTO: dropped item replaces the item
710
@GTK_ICON_VIEW_DROP_LEFT: droppped item is inserted to the left
711
@GTK_ICON_VIEW_DROP_RIGHT: dropped item is inserted to the right
712
@GTK_ICON_VIEW_DROP_ABOVE: dropped item is inserted above
713
@GTK_ICON_VIEW_DROP_BELOW: dropped item is inserted below
715
<!-- ##### FUNCTION gtk_icon_view_enable_model_drag_source ##### -->
727
<!-- ##### FUNCTION gtk_icon_view_enable_model_drag_dest ##### -->
738
<!-- ##### FUNCTION gtk_icon_view_unset_model_drag_source ##### -->
746
<!-- ##### FUNCTION gtk_icon_view_unset_model_drag_dest ##### -->
754
<!-- ##### FUNCTION gtk_icon_view_set_reorderable ##### -->
763
<!-- ##### FUNCTION gtk_icon_view_get_reorderable ##### -->
772
<!-- ##### FUNCTION gtk_icon_view_set_drag_dest_item ##### -->
782
<!-- ##### FUNCTION gtk_icon_view_get_drag_dest_item ##### -->
792
<!-- ##### FUNCTION gtk_icon_view_get_dest_item_at_pos ##### -->
805
<!-- ##### FUNCTION gtk_icon_view_create_drag_icon ##### -->