This is the script counterpart to the QSize type used in the C++ SDK. A Size object is a two dimensional representation of a width and height.
Attention:
Size()
Default constructor.
Size( Size size )
Copy Constructor.
Parameter(s):
Size( Number width, Number height )
Parameter(s):
Size : boundedTo( Size size )
Return Value:
size
.Since:
Size : expandedTo( Size size )
Return Value:
size
.Since:
Return Value:
Since:
Return Value:
Since:
Return Value:
Since:
void : scale( Size size, Number mode )
Scales this size to the specified size.
Parameter(s):
size
, preserving aspect ratio.size
, preserving aspect ratio.Since:
void : scale( Number width, Number height, Number mode )
Scales this size to the specified width and height.
Parameter(s):
width
and height
, preserving aspect ratio.width
and height
, preserving aspect ratio.Since:
void : transpose()
Swaps the width and height of this size.
Since:
void : translate()
Deprecated
Exists only to keep old code working. Do not use in new code. Use transpose() instead.