Class GSDimension
Encapulates the width and height of a component (in integer precision).
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
GSDimension(width, height)
Creates a new
GSDimension. |
| Property Attributes | Property Name and Description |
|---|---|
|
The width measurement
|
|
|
The width measurement
|
| Method Attributes | Method Name and Description |
|---|---|
|
toJson()
Returns this dimension object as a JSON String
|
|
|
toString()
Outputs the dimension's properties as a String
|
Class Detail
GSDimension(width, height)
Creates a new
GSDimension. The new GSDimension instance may optionally
be initialized with its width and height.
- Parameters:
- width
- height
Property Detail
{int}
height
The width measurement
{int}
width
The width measurement
Method Detail
{String}
toJson()
Returns this dimension object as a JSON String
- Returns:
- {String} the JSON string
{String}
toString()
Outputs the dimension's properties as a String
- Returns:
- {String} the dimension's properties as a String