Skip to main content

GUIRect

class GUIRect

A 2D Rectangle that controls the position and size("X" and "Y").


public class GUIRect

— Constructors (2) —

ConstructorDescription
GUIRect()Creates a new GUIRect.
GUIRect(int x, int y, int width, int height)Creates a new GUIRect with its X position defined to be "x" argument, Y position to be "y" argument, width to be "width" argument, and height to be "height" argument.

— Methods (8) —

NameDescription
int getX()Returns the current X position of the GUIRect.
GUIRect setX(int x)Sets the GUIRect's current X position.
int getY()Returns the current Y position of the GUIRect.
GUIRect setY(int y)Sets the GUIRect's current Y position.
int getWidth()Returns the current width of the GUIRect.
GUIRect setWidth(int width)Sets the current width of the GUIRect.
int getHeight()Returns the current height of the GUIRect.
GUIRect setHeight(int height)Sets the current height of the GUIRect.