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, wait
contains, contains, contains, create, create, create, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getPosition, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resize
public 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 IGuiPosition
public double getY()
getY
in interface IGuiPosition
public GuiRectangle asImmutable()
asImmutable
in interface IGuiArea
public java.lang.String toString()
toString
in class java.lang.Object
public IGuiArea offset(IGuiPosition by)
offset
in interface IGuiArea
offset
in interface IGuiPosition
public GuiRectangle offset(double dx, double dy)
offset
in interface IGuiArea
offset
in interface IGuiPosition
public GuiRectangle expand(double dX, double dY)