The QSize class defines the size of a two-dimensional object. (details) (complete member list)
#include <qsize.h>
A size is specified by a width and a height.
The width/height type is QCOORD (defined as short
). The minimum
value of QCOORD is -32768 and the maximum value is 32767.
Constructs a size with undefined width and height.
Constructs a size with width w and height h.
Returns the height.
See also: width().
Returns TRUE if the width is less than 0 or the height is less than 0, otherwise FALSE.
Returns TRUE if the width is 0 and the height is 0, otherwise FALSE.
Returns TRUE if the width is equal to or greater than 0 and the height is equal to or greater than 0, otherwise FALSE.
Multiplies both the width and height with c and returns a reference to the size.
Multiplies both the width and height with c and returns a reference to the size.
Notice that the result is truncated.
Divides both the width and height by c and returns a reference to the size.
The division will not be performed if c is 0.
Divides both the width and height by c and returns a reference to the size.
The division will not be performed if c is 0.
Notice that the result is truncated.
Returns a reference to the height.
Using a reference makes it possible to directly manipulate the height:
QSize s( 100, 10 );
s.rheight() += 5; // s becomes (100,15)
See also: rwidth().
Returns a reference to the width.
Using a reference makes it possible to directly manipulate the width:
QSize s( 100, 10 );
s.rwidth() += 20; // s becomes (120,10)
See also: rheight().
Sets the height to h.
See also: setWidth().
Sets the width to w.
See also: setHeight().
Returns the width.
See also: height().
Returns TRUE if s1 and s2 are equal, or FALSE if they are different.
Returns TRUE if s1 and s2 are different, or FALSE if they are equal.
Multiplies s by c and returns the result.
Multiplies s by c and returns the result.
Multiplies s by c and returns the result.
Multiplies s by c and returns the result.
Divides s by c and returns the result.
This function returns s if c is 0.
Divides s by c and returns the result.
This function returns s if c is 0.
Notice that the result is truncated.
Writes the size to the stream.
The output format is two INT16 (first teh width, then the height).
Reads the size from the stream.
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: