gtk.viewport.Viewport implements scrollability for widgets that lack their own scrolling capabilities.
Use gtk.viewport.Viewport to scroll child widgets such as gtk.grid.Grid, gtk.box.Box, and so on.
The gtk.viewport.Viewport will start scrolling content only if allocated less than the child widget’s minimum size in a given orientation.
gtk.viewport.Viewport has a single CSS node with name viewport.
Until GTK 4.10, gtk.viewport.Viewport used the gtk.types.AccessibleRole.Group role.
Starting from GTK 4.12, gtk.viewport.Viewport uses the gtk.types.AccessibleRole.Generic role.
gtk.viewport.Viewport implements scrollability for widgets that lack their own scrolling capabilities.
Use gtk.viewport.Viewport to scroll child widgets such as gtk.grid.Grid, gtk.box.Box, and so on.
The gtk.viewport.Viewport will start scrolling content only if allocated less than the child widget’s minimum size in a given orientation.
CSS nodes
gtk.viewport.Viewport has a single CSS node with name viewport.
Accessibility
Until GTK 4.10, gtk.viewport.Viewport used the gtk.types.AccessibleRole.Group role.
Starting from GTK 4.12, gtk.viewport.Viewport uses the gtk.types.AccessibleRole.Generic role.