Class GSDimension

Encapulates the width and height of a component (in integer precision).

Class Summary
Constructor Attributes Constructor Name and Description
 
GSDimension(width, height)
Creates a new GSDimension.
Property Summary
Property Attributes Property Name and Description
 
The width measurement
 
The width measurement
Method Summary
Method Attributes Method Name and Description
 
Returns this dimension object as a JSON String
 
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

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Mar 07 2012 11:47:28 GMT+1300 (NZDT)