public final class Dimension extends Object implements Serializable, ReadableDimension, WritableDimension
| Constructor and Description |
|---|
Dimension()
Constructor for Dimension.
|
Dimension(int w,
int h)
Constructor for Dimension.
|
Dimension(ReadableDimension d)
Constructor for Dimension.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks whether two dimension objects have equal values.
|
int |
getHeight()
Gets the height.
|
void |
getSize(WritableDimension dest)
Copy this ReadableDimension into a destination Dimension
|
int |
getWidth()
Gets the width.
|
int |
hashCode()
Returns the hash code for this
Dimension. |
void |
setHeight(int height)
Sets the height.
|
void |
setSize(int w,
int h) |
void |
setSize(ReadableDimension d) |
void |
setWidth(int width)
Sets the width.
|
String |
toString()
Returns a string representation of the values of this
Dimension object's height and
width fields. |
public Dimension()
public Dimension(int w,
int h)
public Dimension(ReadableDimension d)
public void setSize(int w,
int h)
setSize in interface WritableDimensionpublic void setSize(ReadableDimension d)
setSize in interface WritableDimensionpublic void getSize(WritableDimension dest)
ReadableDimensiongetSize in interface ReadableDimensiondest - The destinationpublic boolean equals(Object obj)
public int hashCode()
Dimension.public String toString()
Dimension object's height and
width fields. This method is intended to be used only
for debugging purposes, and the content and format of the returned
string may vary between implementations. The returned string may be
empty but may not be null.public int getHeight()
getHeight in interface ReadableDimensionpublic void setHeight(int height)
setHeight in interface WritableDimensionheight - The height to setpublic int getWidth()
getWidth in interface ReadableDimensionpublic void setWidth(int width)
setWidth in interface WritableDimensionwidth - The width to setCopyright © 2002-2009 lwjgl.org. All Rights Reserved.