Widgets»Scroll View

Scroll View

ScrollView is a container with two primary functions:

  • Clips its children to a specified size
  • Displays horizontal and/or vertical scrollbars when the content overflows the specified size; they allow to move the virtual window which allows access to the children of the ScrollView.

Source docs

[hexpand hfill vexpand vfill] new ScrollView {
    size = 300 300;
    style.normal = {
        border = 1 rgb(.118, .118, .118);
    }

    ... lots of child widgets

}