Create controller with orientation - vertical or horizontal.
Update parameters when widget update size.
Calculates buttonSize, buttonOffset and contentOffset.
Set content offset in percent, value should be in 0..1 range.
Calculated button offset.
Calculated button size.
Calculated content offset.
If true, then user clicked button and hold it.
Full content size.
Visible area size.
Describe interface for scrollable widgets, this controller computes content offsets and scroll button size and offset depending of the contentSize and and visibleSize. See how to use this controller in rpui.widgets.panel.Panel.