#include <e32cmn.h>
class TSize |
Public Attributes | |
---|---|
TInt | iHeight |
TInt | iWidth |
Public Member Enumerations | |
---|---|
enum | TUninitialized { EUninitialized } |
Public Member Functions | |
---|---|
TSize(TUninitialized) | |
TSize() | |
TSize(TInt, TInt) | |
IMPORT_C TPoint | AsPoint() |
IMPORT_C void | SetSize(TInt, TInt) |
IMPORT_C TBool | operator!=(const TSize &) |
IMPORT_C TSize | operator+(const TSize &) |
IMPORT_C TSize | operator+(const TPoint &) |
IMPORT_C TSize & | operator+=(const TSize &) |
IMPORT_C TSize & | operator+=(const TPoint &) |
IMPORT_C TSize | operator-(const TSize &) |
IMPORT_C TSize | operator-(const TPoint &) |
IMPORT_C TSize | operator-() |
IMPORT_C TSize & | operator-=(const TSize &) |
IMPORT_C TSize & | operator-=(const TPoint &) |
IMPORT_C TBool | operator==(const TSize &) |
Stores a two-dimensional size as a width and a height value.
Its data members are public and can be manipulated directly, or by means of the functions provided.
Enumerator | Value | Description |
---|---|---|
EUninitialized |
TSize | ( | TUninitialized | ) | [inline] |
Constructs the size object with its iWidth and iHeight members set to zero.
TSize | ( | ) | [inline] |
Constructs the size object with its iWidth and iHeight members set to zero.
TPoint addition operator.
This operator adds the specified point to this TSize, and returns the resulting value.
The operation proceeds by:
1. adding the x co-ordinate value to the width
2. adding the y co-ordinate value to the height
Parameters | |
---|---|
aPoint | The point to be added to this TSize. |
TPoint addition assignment operator.
The operator adds the specified point to this TSize, and assigns the result back to this TSize.
The operation proceeds by:
1. adding the point's x co-ordinate value to the width
2. adding the point's y co-ordinate value to the height.
Parameters | |
---|---|
aPoint | The point to be added. |
TPoint subtraction operator.
This operator subtracts the specified point from this TSize, and returns the resulting value.
The operation proceeds by:
1. subtracting the x co-ordinate value from the width
2. subtracting the y co-ordinate value from the height
Parameters | |
---|---|
aPoint | The point to be subtracted. |
TPoint subtraction assignment operator.
The operator subtracts the specified point from this TSize, and assigns the result back to this TSize.
The operation proceeds by:
1. subtracting the point's x co-ordinate value from the width
2. subtracting the point's y co-ordinate value from the height.
Parameters | |
---|---|
aPoint | The point to be subtracted. |