public class ScrollbarElement extends GuiElementSimple implements IInteractionElement
gui, name| Constructor and Description |
|---|
ScrollbarElement(BuildCraftGui 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, getYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonKeyPressaddHelpElements, addToolTips, drawForeground, getDebugInfo, getThisAndChildrenAt, tickasImmutable, 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, resizegetX, getYpublic ScrollbarElement(BuildCraftGui gui, IGuiPosition parent, int height, GuiIcon background, GuiIcon scroller)
public void drawBackground(float partialTicks)
drawBackground in interface IGuiElementpublic void onMouseClicked(int button)
onMouseClicked in interface IInteractionElementpublic void onMouseDragged(int button,
long ticksSinceClick)
onMouseDragged in interface IInteractionElementpublic void onMouseReleased(int button)
onMouseReleased in interface IInteractionElementpublic int getPosition()
public void setPosition(double pos)
public void setLength(int len)