Creates a new #GtkViewport with the given adjustments, or with default adjustments if none are given.
Gets the bin window of the #GtkViewport.
Returns the horizontal adjustment of the viewport.
Gets the shadow type of the #GtkViewport. See gtk.viewport.Viewport.setShadowType.
Returns the vertical adjustment of the viewport.
Gets the view window of the #GtkViewport.
Returns this, for use in with statements.
Sets the horizontal adjustment of the viewport.
Sets the shadow type of the viewport.
Sets the vertical adjustment of the viewport.
Get builder for gtk.viewport.Viewport
Get hadjustment property.
Set hadjustment property.
Get hscrollPolicy property.
Set hscrollPolicy property.
Get vadjustment property.
Set vadjustment property.
Get vscrollPolicy property.
Set vscrollPolicy property.
Returns the size of a non-scrolling border around the outside of the scrollable. An example for this would be treeview headers. GTK+ can use this information to display overlayed graphics, like the overshoot indication, at the right position.
Retrieves the #GtkAdjustment used for horizontal scrolling.
Gets the horizontal #GtkScrollablePolicy.
Retrieves the #GtkAdjustment used for vertical scrolling.
Gets the vertical #GtkScrollablePolicy.
Sets the horizontal adjustment of the #GtkScrollable.
Sets the #GtkScrollablePolicy to determine whether horizontal scrolling should start below the minimum width or below the natural width.
Sets the vertical adjustment of the #GtkScrollable.
Sets the #GtkScrollablePolicy to determine whether vertical scrolling should start below the minimum height or below the natural height.
Returns this, for use in with statements.
Get builder for gtk.bin.Bin
Gets the child of the #GtkBin, or null if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.
Get hadjustment property.
Set hadjustment property.
Get hscrollPolicy property.
Set hscrollPolicy property.
Get vadjustment property.
Set vadjustment property.
Get vscrollPolicy property.
Set vscrollPolicy property.
Returns the size of a non-scrolling border around the outside of the scrollable. An example for this would be treeview headers. GTK+ can use this information to display overlayed graphics, like the overshoot indication, at the right position.
Retrieves the #GtkAdjustment used for horizontal scrolling.
Gets the horizontal #GtkScrollablePolicy.
Retrieves the #GtkAdjustment used for vertical scrolling.
Gets the vertical #GtkScrollablePolicy.
Sets the horizontal adjustment of the #GtkScrollable.
Sets the #GtkScrollablePolicy to determine whether horizontal scrolling should start below the minimum width or below the natural width.
Sets the vertical adjustment of the #GtkScrollable.
Sets the #GtkScrollablePolicy to determine whether vertical scrolling should start below the minimum height or below the natural height.
The #GtkViewport 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 #GtkGrid, #GtkBox, and so on.
If a widget has native scrolling abilities, such as #GtkTextView, #GtkTreeView or #GtkIconView, it can be added to a #GtkScrolledWindow with gtk.container.Container.add. If a widget does not, you must first add the widget to a #GtkViewport, then add the viewport to the scrolled window. gtk.container.Container.add does this automatically if a child that does not implement #GtkScrollable is added to a #GtkScrolledWindow, so you can ignore the presence of the viewport.
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.