Viewport


Object Hierarchy:

Object hierarchy for Viewport

Description:

[ CCode ( type_id = "gtk_viewport_get_type ()" ) ]
public class Viewport : Widget, Accessible, Buildable, ConstraintTarget, Scrollable

The Viewport widget acts as an adaptor class, implementing scrollability for child widgets that lack their own scrolling capabilities.

Use GtkViewport to scroll child widgets such as Grid, Box, 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.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget