public class DrawableElement extends GuiElement
cropElement, cropHeight, cropWidth, cropX, cropY, height, parent, visible, width, xOffset, xPos, yOffset, yPos| Constructor and Description |
|---|
DrawableElement(Drawable drawable) |
DrawableElement(int xPos,
int yPos,
Drawable drawable) |
DrawableElement(int xPos,
int yPos,
int width,
int height,
Drawable drawable) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawElement(int mouseX,
int mouseY)
Draws the element itself at the current position.
|
addEventHandler, addTooltip, addTooltip, addTooltip, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, getCropElement, getCropHeight, getCropWidth, getCropX, getCropY, getHeight, getParent, getTooltip, getTooltip, getWidth, getWindow, getX, getY, hasTooltip, hide, isCropped, isEnabled, isMouseOver, isMouseOver, isVisible, onCreation, onDeletion, onUpdateClient, receiveEvent, setAlign, setBounds, setCroppedZone, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, toString, updateClientdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEventHandler, addEventHandler, addSelfEventHandler, canFocus, canMouseOver, postEvent, postEventpublic DrawableElement(Drawable drawable)
public DrawableElement(int xPos,
int yPos,
Drawable drawable)
public DrawableElement(int xPos,
int yPos,
int width,
int height,
Drawable drawable)
public void drawElement(int mouseX,
int mouseY)
IGuiElementdrawElement in interface IGuiElementdrawElement in class GuiElementmouseX - The x position of the mouse relative to the parent of the element.mouseY - The y position of the mouse relative to the parent of the element.