|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications |

[Prev: Rect] [Home] [Next: RegExp]

#### Size

The `Size` class represents a two dimensional size. The size is represented using width and height.

The Size class provides three construtors:

        var size = new Size( 100, 200 ); // width = 100, height = 200
        var duplicate = new Size( size ); // width = 100, height = 200
        var empty = new Size(); // width = 0, height = 0

##### Size Properties

- width : Number; The width of the size.

- height : Number; The height of the size.

##### Size Functions

- translate(); The translate function swaps the width and height of the size.

[Prev: Rect] [Home] [Next: RegExp]