GridView
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_grid_view_get_type ()" ) ]
public class GridView : ListBase, Accessible, Buildable, ConstraintTarget, Orientable, Scrollable
public class GridView : ListBase, Accessible, Buildable, ConstraintTarget, Orientable, Scrollable
GtkGridView is a widget to present a view into a large dynamic grid of items.
GtkGridView uses its factory to generate one child widget for each visible item and shows them in a grid. The orientation of the grid view determines if the grid reflows vertically or horizontally.
GtkGridView allows the user to select items according to the selection characteristics of the model. For models that allow multiple selected items, it is possible to turn on _rubberband selection_, using enable_rubberband.
To learn more about the list widget framework, see the [overview](ListWidget
).
CSS nodes
gridview
├── child
│
├── child
│
┊
╰── [rubberband]
gle CSS node with name gridview. Each child uses a single CSS node with name child. For rubberband selection, a subnode with name rubberband is
used.
Accessibility
GtkGridView uses the GRID role, and the items use the GRID_CELL role.
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
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Orientable
All known members inherited from interface Gtk.Scrollable