TSize Class Reference
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.
Constructor & Destructor Documentation
TSize(TUninitialized)
Constructs the size object with its iWidth and iHeight members set to zero.
TSize()
Constructs the size object with its iWidth and iHeight members set to zero.
TSize(TInt, TInt)
Constructs the size object with the specified width and height values.
Parameters
TInt aWidth | The width value. |
TInt aHeight | The height value . |
Member Functions Documentation
AsPoint()
Gets a TPoint object whose co-ordinates are the width and height of this TSize.
SetSize(TInt, TInt)
IMPORT_C void | SetSize | ( | TInt | aWidth, |
| TInt | aHeight |
| ) | |
Sets the width and height.
Parameters
TInt aWidth | The width value. |
TInt aHeight | The height value. |
operator!=(const TSize &)
Compares two TSize for inequality.
For two TSize to be unequal, either their width or height values must be different.
Parameters
const TSize & aSize | The TSize to be compared with this TSize. |
operator+(const TSize &)
TSize addition operator.
This operator adds the specified TSize to this TSize, and returns the resulting value.
Parameters
const TSize & aSize | The TSize to be added to this Tsize. |
operator+(const TPoint &)
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
const TPoint & aPoint | The point to be added to this TSize. |
operator+=(const TSize &)
TSize addition assignment operator.
The operator adds the specified TSize to this TSize, and assigns the result back to this TSize.
Parameters
const TSize & aSize | The TSize to be added. |
operator+=(const TPoint &)
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
const TPoint & aPoint | The point to be added. |
operator-(const TSize &)
TSize subtraction operator.
This operator subtracts the specified TSize from this TSize, and returns the resulting value.
Parameters
const TSize & aSize | The TSize to be subtracted from this Tsize. |
operator-(const TPoint &)
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
const TPoint & aPoint | The point to be subtracted. |
operator-()
IMPORT_C TSize | operator- | ( | ) | const |
Unary minus operator.
The operator returns the negation of this TSize.
operator-=(const TSize &)
TSize subtraction assignment operator.
The operator subtracts the specified TSize from this TSize, and assigns the result back to this TSize.
Parameters
const TSize & aSize | The TSize to be subtracted. |
operator-=(const TPoint &)
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
const TPoint & aPoint | The point to be subtracted. |
operator==(const TSize &)
Compares this TSize with the specified TSize for equality.
For two TSizes to be equal, both their width and height values must be equal.
Parameters
const TSize & aSize | The TSize to be compared with this TSize. |
Member Enumerations Documentation
Member Data Documentation
TInt
iHeight
The height of this TSize object.
TInt
iWidth
The width of this TSize object.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.