IconView


Object Hierarchy:

Gtk.IconView Gtk.IconView Gtk.IconView Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.IconView GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.IconView Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.IconView Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.IconView Gtk.ConstraintTarget->Gtk.Widget Gtk.CellLayout Gtk.CellLayout Gtk.CellLayout->Gtk.IconView Gtk.Scrollable Gtk.Scrollable Gtk.Scrollable->Gtk.IconView

Description:

[ CCode ( type_id = "gtk_icon_view_get_type ()" ) ]
public class IconView : Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Scrollable

`GtkIconView` is a widget which displays data in a grid of icons.

`GtkIconView` provides an alternative view on a `GtkTreeModel`. It displays the model as a grid of icons with labels. Like [ [email protected]], it allows to select one or multiple items (depending on the selection mode, see [ [email protected]_selection_mode]). In addition to selection with the arrow keys, `GtkIconView` 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), `GtkIconView` will only display the first level of the tree and ignore the tree’s branches.

CSS nodes

``` iconview.view ╰── [rubberband] ```

`GtkIconView` has a single CSS node with name iconview and style class .view. For rubberband selection, a subnode with name rubberband is used.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object



2022 vala-language.org