Interface ScrollBar.Model

Enclosing class:
ScrollBar

public static interface ScrollBar.Model
The scroll state the bar reflects and drives.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    float
     
    void
    setOffset(float offset)
    Scrolls to offset (the host clamps).
    float
     
  • 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 to offset (the host clamps).