Package org.gnome.gtk

Class Viewport

java.lang.Object
All Implemented Interfaces:
Proxy, Accessible, Buildable, ConstraintTarget, Scrollable

@Generated("io.github.jwharm.JavaGI") public class Viewport extends Widget implements Accessible, Buildable, ConstraintTarget, Scrollable
GtkViewport implements scrollability for widgets that lack their own scrolling capabilities.

Use GtkViewport to scroll child widgets such as GtkGrid, GtkBox, and so on.

The GtkViewport will start scrolling content only if allocated less than the child widget’s minimum size in a given orientation.

CSS nodes
GtkViewport has a single CSS node with name viewport.

Accessibility
Until GTK 4.10, GtkViewport used the GTK_ACCESSIBLE_ROLE_GROUP role.

Starting from GTK 4.12, GtkViewport uses the GTK_ACCESSIBLE_ROLE_GENERIC role.