OpenLayers.Size

Instances of this class represent a width/height pair

Summary
OpenLayers.SizeInstances of this class represent a width/height pair
Properties
w{Number} width
h{Number} height
Constructor
OpenLayers.SizeCreate an instance of OpenLayers.Size
Functions
cloneCreate a clone of this size object
equalsDetermine where this size is equal to another

Properties

w

{Number} width

h

{Number} height

Constructor

OpenLayers.Size

Create an instance of OpenLayers.Size

Parameters

w{Number} width
h{Number} height

Functions

clone

clone:function()

Create a clone of this size object

Returns

{OpenLayers.Size} A new OpenLayers.Size object with the same w and h values

equals

equals:function(sz)

Determine where this size is equal to another

Parameters

sz{OpenLayers.Size}

Returns

{Boolean} The passed in size has the same h and w properties as this one.  Note that if sz passed in is null, returns false.

clone:function()
Create a clone of this size object
equals:function(sz)
Determine where this size is equal to another
Create an instance of OpenLayers.Size
Close