public final class GuiRectangle extends java.lang.Object implements IGuiArea
IGuiArea.| Modifier and Type | Field and Description |
|---|---|
double |
height |
double |
width |
double |
x |
double |
y |
static GuiRectangle |
ZERO
A rectangle where all of the fields are set to 0.
|
| Constructor and Description |
|---|
GuiRectangle(double width,
double height) |
GuiRectangle(double x,
double y,
double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
GuiRectangle |
asImmutable() |
GuiRectangle |
expand(double dX,
double dY) |
double |
getHeight() |
double |
getWidth() |
double |
getX() |
double |
getY() |
GuiRectangle |
offset(double dx,
double dy) |
IGuiArea |
offset(IGuiPosition by) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, contains, contains, create, create, create, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getPosition, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resizepublic static final GuiRectangle ZERO
public final double x
public final double y
public final double width
public final double height
public GuiRectangle(double x,
double y,
double width,
double height)
public GuiRectangle(double width,
double height)
public double getX()
getX in interface IGuiPositionpublic double getY()
getY in interface IGuiPositionpublic GuiRectangle asImmutable()
asImmutable in interface IGuiAreapublic java.lang.String toString()
toString in class java.lang.Objectpublic IGuiArea offset(IGuiPosition by)
offset in interface IGuiAreaoffset in interface IGuiPositionpublic GuiRectangle offset(double dx, double dy)
offset in interface IGuiAreaoffset in interface IGuiPositionpublic GuiRectangle expand(double dX, double dY)