Class GUIBounds
java.lang.Object
com.blackrook.gui.GUIBounds
Object that describes a rectangular area (single-precision coordinates).
- Author:
- Matthew Tropiano
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public float xStarting X-coordinate. -
y
public float yStarting Y-coordinate. -
width
public float widthRectangle width. -
height
public float heightRectangle height.
-
-
Constructor Details
-
GUIBounds
public GUIBounds()Creates a rectangle at (0,0) with width and height of 0. -
GUIBounds
Creates a copy of a rectangle.- Parameters:
r- the source rectangle to copy.
-
GUIBounds
public GUIBounds(float x, float y, float width, float height) Creates a new rectangle.- Parameters:
x- Starting X-coordinate.y- Starting Y-coordinate.width- Rectangle width.height- Rectangle height.
-
-
Method Details
-
set
Sets the values in this rectangle using another rectangle.- Parameters:
r- the other rectangle.
-
set
public void set(float x, float y, float width, float height) Sets the values in this rectangle.- Parameters:
x- Starting X-coordinate.y- Starting Y-coordinate.width- Rectangle width.height- Rectangle height.
-
toString
-