Gtk.IconView
const Gtk = imports.gi.Gtk; let icon_view = new Gtk.IconView({ activate_on_single_click: value, cell_area: value, column_spacing: value, columns: value, item_orientation: value, item_padding: value, item_width: value, margin: value, markup_column: value, model: value, pixbuf_column: value, reorderable: value, row_spacing: value, selection_mode: value, spacing: value, text_column: value, tooltip_column: value, });
Gtk.IconView provides an alternative view on a Gtk.TreeModel. It displays the model as a grid of icons with labels. Like Gtk.TreeView, it allows to select one or multiple items (depending on the selection mode, see Gtk.set_selection_mode). In addition to selection with the arrow keys, Gtk.IconView supports rubberband selection, which is controlled by dragging the pointer.
Note that if the tree model is backed by an actual tree store (as opposed to a flat list where the mapping to icons is obvious), Gtk.IconView will only display the first level of the tree and ignore the tree's branches.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
- Gtk.IconView
-
-
-
Methods
- Gtk.IconView.prototype.convert_widget_to_bin_window_coords
- Gtk.IconView.prototype.create_drag_icon
- Gtk.IconView.prototype.enable_model_drag_dest
- Gtk.IconView.prototype.enable_model_drag_source
- Gtk.IconView.prototype.get_activate_on_single_click
- Gtk.IconView.prototype.get_cell_rect
- Gtk.IconView.prototype.get_column_spacing
- Gtk.IconView.prototype.get_columns
- Gtk.IconView.prototype.get_cursor
- Gtk.IconView.prototype.get_dest_item_at_pos
- Gtk.IconView.prototype.get_drag_dest_item
- Gtk.IconView.prototype.get_item_at_pos
- Gtk.IconView.prototype.get_item_column
- Gtk.IconView.prototype.get_item_orientation
- Gtk.IconView.prototype.get_item_padding
- Gtk.IconView.prototype.get_item_row
- Gtk.IconView.prototype.get_item_width
- Gtk.IconView.prototype.get_margin
- Gtk.IconView.prototype.get_markup_column
- Gtk.IconView.prototype.get_model
- Gtk.IconView.prototype.get_path_at_pos
- Gtk.IconView.prototype.get_pixbuf_column
- Gtk.IconView.prototype.get_reorderable
- Gtk.IconView.prototype.get_row_spacing
- Gtk.IconView.prototype.get_selected_items
- Gtk.IconView.prototype.get_selection_mode
- Gtk.IconView.prototype.get_spacing
- Gtk.IconView.prototype.get_text_column
- Gtk.IconView.prototype.get_tooltip_column
- Gtk.IconView.prototype.get_tooltip_context
- Gtk.IconView.prototype.get_visible_range
- Gtk.IconView.prototype.item_activated
- Gtk.IconView.prototype.path_is_selected
- Gtk.IconView.prototype.scroll_to_path
- Gtk.IconView.prototype.select_all
- Gtk.IconView.prototype.select_path
- Gtk.IconView.prototype.selected_foreach
- Gtk.IconView.prototype.set_activate_on_single_click
- Gtk.IconView.prototype.set_column_spacing
- Gtk.IconView.prototype.set_columns
- Gtk.IconView.prototype.set_cursor
- Gtk.IconView.prototype.set_drag_dest_item
- Gtk.IconView.prototype.set_item_orientation
- Gtk.IconView.prototype.set_item_padding
- Gtk.IconView.prototype.set_item_width
- Gtk.IconView.prototype.set_margin
- Gtk.IconView.prototype.set_markup_column
- Gtk.IconView.prototype.set_model
- Gtk.IconView.prototype.set_pixbuf_column
- Gtk.IconView.prototype.set_reorderable
- Gtk.IconView.prototype.set_row_spacing
- Gtk.IconView.prototype.set_selection_mode
- Gtk.IconView.prototype.set_spacing
- Gtk.IconView.prototype.set_text_column
- Gtk.IconView.prototype.set_tooltip_cell
- Gtk.IconView.prototype.set_tooltip_column
- Gtk.IconView.prototype.set_tooltip_item
- Gtk.IconView.prototype.unselect_all
- Gtk.IconView.prototype.unselect_path
- Gtk.IconView.prototype.unset_model_drag_dest
- Gtk.IconView.prototype.unset_model_drag_source