public class GuiPanel extends GuiElement
| Constructor and Description |
|---|
GuiPanel()
Creates a new panel in the bottom left corner of the screen.
|
GuiPanel(float x,
float y,
boolean relativeposition,
float width,
float height,
boolean relativesize)
Creates a new panel object at the given screen position with the given size.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClickable() |
void |
setClickable(boolean set) |
addChild, destroy, equals, getAlpha, getBorderColor, getBorderThickness, getChildren, getColor, getHeight, getHoverColor, getID, getParent, getParentID, getPivot, getPositionX, getPositionY, getWidth, hashCode, isAlwaysInBackground, isAlwaysOnTop, isRelativeBorderThickness, isRelativePosition, isRelativeSize, isVisible, onClick, refresh, removeAllChildren, removeChild, removeFromParent, setAlpha, setAlwaysInBackground, setAlwaysOnTop, setBorderColor, setBorderColor, setBorderThickness, setColor, setColor, setPivot, setPosition, setSize, setVisiblepublic GuiPanel()
public GuiPanel(float x,
float y,
boolean relativeposition,
float width,
float height,
boolean relativesize)
x - the x screen position (horizontally).y - the y screen position (vertically).relativeposition - set to false to use absolute coordinates (i.e. pixel
coordinates), or true to use relative coordinates (range between 0 and 1).width - the width of this element.height - the height of this element.relativesize - set to false to use absolute size values (i.e. pixel
coordinates), or true to use relative size values (range between 0 and 1).public void setClickable(boolean set)
public boolean isClickable()
isClickable in class GuiElement