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

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

Size

The Size 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 copy = new Size( size ); // width = 100, height = 200
    var empty = new Size(); // width = 0, height = 0
Size Properties
width

width

Represents the width of the size.

height

height

Represents the height of the size.

Size Functions
translate

translate()

The translate function swaps the width and height of the size.

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


Copyright © 2001-2003 TrolltechTrademarks
QSA version 1.0.0