public class ScrollbarElement<G extends GuiBC8<?>> extends GuiElementSimple<G> implements IInteractionElement
gui, name
Constructor and Description |
---|
ScrollbarElement(G gui,
IGuiPosition parent,
int height,
GuiIcon background,
GuiIcon scroller) |
Modifier and Type | Method and Description |
---|---|
void |
drawBackground(float partialTicks) |
int |
getPosition() |
void |
onMouseClicked(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
void |
onMouseDragged(int button,
long ticksSinceClick)
This is called EVEN IF the mouse is not inside your width and height!
|
void |
onMouseReleased(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
void |
setLength(int len) |
void |
setPosition(double pos) |
getDebugInfo, getHeight, getWidth, getX, getY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHelpElements, addToolTips, drawForeground, getDebugInfo, getThisAndChildrenAt, tick
asImmutable, contains, contains, contains, create, create, create, expand, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getHeight, getPosition, getWidth, offset, offset, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resize
getX, getY
public ScrollbarElement(G gui, IGuiPosition parent, int height, GuiIcon background, GuiIcon scroller)
public void drawBackground(float partialTicks)
drawBackground
in interface IGuiElement
public void onMouseClicked(int button)
onMouseClicked
in interface IInteractionElement
public void onMouseDragged(int button, long ticksSinceClick)
onMouseDragged
in interface IInteractionElement
public void onMouseReleased(int button)
onMouseReleased
in interface IInteractionElement
public int getPosition()
public void setPosition(double pos)
public void setLength(int len)