Package limn.components
Interface ScrollBar.Model
- Enclosing class:
ScrollBar
public static interface ScrollBar.Model
The scroll state the bar reflects and drives.
-
Method Details
-
contentLength
float contentLength()- Returns:
- total content extent along the bar's axis
-
viewportLength
float viewportLength()- Returns:
- visible extent along the bar's axis
-
offset
float offset()- Returns:
- current scroll offset along the bar's axis
-
setOffset
void setOffset(float offset) Scrolls tooffset(the host clamps).
-