|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Stores a two-dimensional size as a width and a height value. More...
#include <e32cmn.h>
Public Types | |
| enum | TUninitialized { EUninitialized } |
Public Member Functions | |
| 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 aWidth, TInt aHeight) | |
| Constructs the size object with the specified width and height values. | |
| IMPORT_C TBool | operator== (const TSize &aSize) const |
| Compares this TSize with the specified TSize for equality. | |
| IMPORT_C TBool | operator!= (const TSize &aSize) const |
| Compares two TSize for inequality. | |
| IMPORT_C TSize & | operator-= (const TSize &aSize) |
| TSize subtraction assignment operator. | |
| IMPORT_C TSize & | operator-= (const TPoint &aPoint) |
| TPoint subtraction assignment operator. | |
| IMPORT_C TSize & | operator+= (const TSize &aSize) |
| TSize addition assignment operator. | |
| IMPORT_C TSize & | operator+= (const TPoint &aPoint) |
| TPoint addition assignment operator. | |
| IMPORT_C TSize | operator- (const TSize &aSize) const |
| TSize subtraction operator. | |
| IMPORT_C TSize | operator- (const TPoint &aPoint) const |
| TPoint subtraction operator. | |
| IMPORT_C TSize | operator+ (const TSize &aSize) const |
| TSize addition operator. | |
| IMPORT_C TSize | operator+ (const TPoint &aPoint) const |
| TPoint addition operator. | |
| IMPORT_C TSize | operator- () const |
| Unary minus operator. | |
| IMPORT_C void | SetSize (TInt aWidth, TInt aHeight) |
| Sets the width and height. | |
| IMPORT_C TPoint | AsPoint () const |
| Gets a TPoint object whose co-ordinates are the width and height of this TSize. | |
Public Attributes | |
| TInt | iWidth |
| The width of this TSize object. | |
| TInt | iHeight |
| The height of this TSize object. | |
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.
|
inline |
|
inline |
Constructs the size object with its iWidth and iHeight members set to zero.
(generated from Symbian Developer Library)
|
inline |
Constructs the size object with the specified width and height values.
| aWidth | The width value. |
| aHeight | The height value . |
(generated from Symbian Developer Library)
| IMPORT_C TPoint TSize::AsPoint | ( | ) | const |
Gets a TPoint object whose co-ordinates are the width and height of this TSize.
(generated from Symbian Developer Library)
| IMPORT_C TBool TSize::operator!= | ( | const TSize & | aSize | ) | const |
Compares two TSize for inequality.
For two TSize to be unequal, either their width or height values must be different.
(generated from Symbian Developer Library)
TPoint addition operator.
This operator adds the specified point to this TSize, and returns the resulting value.
The operation proceeds by:
| aPoint | The point to be added to this TSize. |
(generated from Symbian Developer Library)
TSize addition operator.
This operator adds the specified TSize to this TSize, and returns the resulting value.
| aSize | The TSize to be added to this Tsize. |
(generated from Symbian Developer Library)
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:
| aPoint | The point to be added. |
(generated from Symbian Developer Library)
| IMPORT_C TSize TSize::operator- | ( | ) | const |
Unary minus operator.
The operator returns the negation of this TSize.
(generated from Symbian Developer Library)
TPoint subtraction operator.
This operator subtracts the specified point from this TSize, and returns the resulting value.
The operation proceeds by:
| aPoint | The point to be subtracted. |
(generated from Symbian Developer Library)
TSize subtraction operator.
This operator subtracts the specified TSize from this TSize, and returns the resulting value.
| aSize | The TSize to be subtracted from this Tsize. |
(generated from Symbian Developer Library)
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:
| aPoint | The point to be subtracted. |
(generated from Symbian Developer Library)
| IMPORT_C TBool TSize::operator== | ( | const TSize & | aSize | ) | const |
Compares this TSize with the specified TSize for equality.
For two TSizes to be equal, both their width and height values must be equal.
(generated from Symbian Developer Library)
| IMPORT_C void TSize::SetSize | ( | TInt | aWidth, |
| TInt | aHeight | ||
| ) |
Sets the width and height.
| aWidth | The width value. |
| aHeight | The height value. |
(generated from Symbian Developer Library)