Basics
Guides
API Reference
Basics
Guides
API Reference
[267:14] static extends: object
Generated metadata helpers for Scrollable interface surfaces.
properties ()
Returns property metadata for
Scrollable.
A list.[29:7] extends: object
An interface for widgets with native scrolling ability. To implement this interface you should override the [property@Gtk.Scrollable:hadjustment] and [property@Gtk.Scrollable:vadjustment] properties. ## Creating a scrollable widget All scrollable widgets should do the following. - When a parent widget sets the scrollable child widget’s adjustments, the widget should connect to the [signal@Gtk.Adjustment::value-changed] signal. The child widget should then populate the adjustments’ properties as soon as possible, which usually means queueing an allocation right away and populating the properties in the [vfunc@Gtk.Widget.size_allocate] implementation. - Because its preferred size is the size for a fully expanded widget, the scrollable widget must be able to cope with underallocations. This means that it must accept any value passed to its [vfunc@Gtk.Widget.size_allocate] implementation. - When the parent allocates space to the scrollable child widget, the widget must ensure the adjustments’ property values are correct and up to date, for example using [method@Gtk.Adjustment.configure]. - When any of the adjustments emits the [signal@Gtk.Adjustment::value-changed] signal, the scrollable widget should scroll its contents.
Scrollable (Handle = null)
Creates a new
Scrollableby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setHadjustment (object Value)
Horizontal
GtkAdjustmentof the scrollable widget. This adjustment is shared between the scrollable widget and its parent.
Value is the new property value.None.setHscrollpolicy (string Value)
Determines when horizontal scrolling should start.
Value is the new property value.None.setVadjustment (object Value)
Vertical
GtkAdjustmentof the scrollable widget. This adjustment is shared between the scrollable widget and its parent.
Value is the new property value.None.setVscrollpolicy (string Value)
Determines when vertical scrolling should start.
Value is the new property value.None.get_hadjustment ()
Retrieves the
GtkAdjustmentused for horizontal scrolling.
get_hscroll_policy ()
Gets the horizontal
GtkScrollablePolicy.
get_vadjustment ()
Retrieves the
GtkAdjustmentused for vertical scrolling.
get_vscroll_policy ()
Gets the vertical
GtkScrollablePolicy.
set_hadjustment (object hadjustment)
Sets the horizontal adjustment of the
GtkScrollable.
hadjustment is a GtkAdjustment.None.set_hscroll_policy (string policy)
Sets the
GtkScrollablePolicy. The policy determines whether horizontal scrolling should start below the minimum width or below the natural width.
policy is the horizontal GtkScrollablePolicy.None.set_vadjustment (object vadjustment)
Sets the vertical adjustment of the
GtkScrollable.
vadjustment is a GtkAdjustment.None.set_vscroll_policy (string policy)
Sets the
GtkScrollablePolicy. The policy determines whether vertical scrolling should start below the minimum height or below the natural height.
policy is the vertical GtkScrollablePolicy.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.