public class ScreenBounds
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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
在类中 java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
obj
- The reference object.public int hashCode()
hashCode
在类中 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
在类中 java.lang.Object