Area class represents a rectangular region with a specified position.
More...
Area class represents a rectangular region with a specified position.
◆ Area() [1/2]
com.spvessel.spacevil.Core.Area.Area |
( |
| ) |
|
Default constructor.
All values are zero.
◆ Area() [2/2]
com.spvessel.spacevil.Core.Area.Area |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
Constructs a Area with specified position and size.
- Parameters
-
x | X position. |
y | Y position. |
w | Area width. |
h | Area height. |
◆ getHeight()
int com.spvessel.spacevil.Core.Area.getHeight |
( |
| ) |
|
Getting area height.
- Returns
- Current area height.
◆ getWidth()
int com.spvessel.spacevil.Core.Area.getWidth |
( |
| ) |
|
Getting area width.
- Returns
- Current area width.
◆ getX()
int com.spvessel.spacevil.Core.Area.getX |
( |
| ) |
|
Getting X position.
- Returns
- Current X position value.
◆ getY()
int com.spvessel.spacevil.Core.Area.getY |
( |
| ) |
|
Getting Y position.
- Returns
- Current Y position value.
◆ setAttr()
void com.spvessel.spacevil.Core.Area.setAttr |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
Setting all area attributes.
- Parameters
-
x | X position. |
y | Y position. |
w | Area width. |
h | Area height. |
◆ setHeight()
void com.spvessel.spacevil.Core.Area.setHeight |
( |
int |
value | ) |
|
Setting area height.
- Parameters
-
◆ setWidth()
void com.spvessel.spacevil.Core.Area.setWidth |
( |
int |
value | ) |
|
Setting area width.
- Parameters
-
◆ setX()
void com.spvessel.spacevil.Core.Area.setX |
( |
int |
value | ) |
|
Setting X position.
- Parameters
-
◆ setY()
void com.spvessel.spacevil.Core.Area.setY |
( |
int |
value | ) |
|
Setting Y position.
- Parameters
-
◆ toString()
String com.spvessel.spacevil.Core.Area.toString |
( |
| ) |
|
The documentation for this class was generated from the following file: