Class Scrollbar
java.lang.Object
org.rusherhack.client.api.utils.objects.Scrollbar
Object to keep track of scroll offsets, animation, and clamp.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clamp
(boolean strict, double min, double max) double
getRenderHeight
(double viewLength, double contentLength) double
getRenderHeight
(double viewLength, double contentLength, double trackLength) double
getRenderOffset
(double viewLength, double contentLength) double
getRenderOffset
(double viewLength, double contentLength, double trackLength) double
void
scroll
(double delta) void
scroll
(double delta, boolean animated) void
setScrollOffset
(double scrollOffset) void
update()
-
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)
-