API Docs for: 7.2
Show:

MQA.Size Class

Module: MQA

Constructs an MQA.Size object. Represents an MQA.Size containing a width and a height. Default is (0,0).

Constructor

MQA.Size

(
  • width
  • height
)

Parameters:

  • width Number

    The width dimension.

  • height Number

    The height dimension.

Properties

height

Number

The height dimension. Defaults to 0.

width

Number

The width dimension. Defaults to 0.

Methods

getHeight

() Number

Returns the height of the size object.

Returns <Number>

The height of the size object.

getWidth

() Number

Returns the width of the size object.

Returns <Number>

The width of the size object.

setHeight

(
  • height
)

Set the height of the size object.

Parameters:

  • height Number

    The height dimension.

setWidth

(
  • width
)

Set the width of the size object.

Parameters:

  • width Number

    The width dimension.

toString

() String

Returns a string representation of the MQA.Size. The format is 'width,height'.

Returns <String>

string