public class ScreenBounds
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
ScreenBounds()
Constructs an empty ScreenBounds object.
|
ScreenBounds(long cPtr,
boolean cMemoryOwn) |
ScreenBounds(ScreenPos min,
ScreenPos max)
Constructs a ScreenBounds object from a minimum and maximum position.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(ScreenBounds bounds)
Tests whether this screen bounds object contains a another screen bounds object.
|
boolean |
contains(ScreenPos pos)
Tests whether this screen bounds object contains a screen position.
|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
ScreenPos |
getCenter()
Calculates the center screen position of this screen envelope object.
|
static long |
getCPtr(ScreenBounds obj) |
float |
getHeight()
Returns the height of the bounds object.
|
ScreenPos |
getMax()
Returns the maximum screen position of this screen envelope object.
|
ScreenPos |
getMin()
Returns the minimum screen position.
|
float |
getWidth()
Returns the width of the bounds object.
|
int |
hashCode()
Returns the hash value of this object.
|
boolean |
intersects(ScreenBounds bounds)
Tests whether this screen bounds object intersects with a another screen bounds object.
|
java.lang.String |
toString()
Creates a string representation of this screen bounds object, useful for logging.
|
public ScreenBounds(long cPtr, boolean cMemoryOwn)
public ScreenBounds()
public ScreenBounds(ScreenPos min, ScreenPos max)
min
- The minimum position.max
- The maximum position.public static long getCPtr(ScreenBounds obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ScreenPos getCenter()
public float getWidth()
public float getHeight()
public ScreenPos getMin()
public ScreenPos getMax()
public boolean contains(ScreenPos pos)
pos
- The screen position.public boolean contains(ScreenBounds bounds)
bounds
- The other screen bounds object.public boolean intersects(ScreenBounds bounds)
bounds
- The other screen bounds object.public java.lang.String toString()
toString
in class java.lang.Object