Gamalto

Fork me on GitHub

Object Size Overview

Gamalto. Size

new Gamalto.Size(width, height)

Creates a simple size object from the specified dimensions.

Parameters
Name Type Description
width number

Horizontal component of the size object.

height number

Vertical component of the size object.

Implements
Extends
Example
// Getting an object instance
var size = new Gamalto.Size(320, 240);

Members

height :number

readonly

Vertical component of the size object.

Implements

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

width :number

readonly

Horizontal component of the size object.

Implements

Methods

clone() object

inherited abstract

Clones the object. It will be shallow copy unless otherwise specfied.

Inherited From
Returns
  • New instance of the object. Defaults to null.

isEmpty() boolean

Tests whether the object has width and height of 0.

Returns
  • boolean

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)