Class Scrollbar

java.lang.Object
org.rusherhack.client.api.utils.objects.Scrollbar

public class Scrollbar extends Object
Object to keep track of scroll offsets, animation, and clamp.
  • Constructor Details

    • Scrollbar

      public Scrollbar(org.rusherhack.core.animation.Animation animation)
  • Method Details

    • update

      public void update()
    • clamp

      public void clamp(boolean strict, double min, double max)
    • setScrollOffset

      public void setScrollOffset(double scrollOffset)
    • scroll

      public void scroll(double delta)
    • scroll

      public void scroll(double delta, boolean animated)
    • getScrollOffset

      public double getScrollOffset()
    • getRenderHeight

      public double getRenderHeight(double viewLength, double contentLength)
    • getRenderHeight

      public double getRenderHeight(double viewLength, double contentLength, double trackLength)
    • getRenderOffset

      public double getRenderOffset(double viewLength, double contentLength)
    • getRenderOffset

      public double getRenderOffset(double viewLength, double contentLength, double trackLength)