|
||
class 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.
Defined in TSize
:
AsPoint()const
Gets a TPoint object whose co-ordinates are the width and height of this TSize.EUninitialized
SetSize(TInt,TInt)
Sets the width and height.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.TSize(TUninitialized)
Constructs the size object with its iWidth and iHeight members set to zero.TUninitialized
iHeight
The height of this TSize object.iWidth
The width of this TSize object.operator!=(const TSize &)const
Compares two TSize for inequality.operator+(const TPoint &)const
TPoint addition operator.operator+(const TSize &)const
TSize addition operator.operator+=(const TPoint &)
TPoint addition assignment operator.operator+=(const TSize &)
TSize addition assignment operator.operator-()const
Unary minus operator.operator-(const TPoint &)const
TPoint subtraction operator.operator-(const TSize &)const
TSize subtraction operator.operator-=(const TPoint &)
TPoint subtraction assignment operator.operator-=(const TSize &)
TSize subtraction assignment operator.operator==(const TSize &)const
Compares this TSize with the specified TSize for equality.inline TSize(TUninitialized);
Constructs the size object with its iWidth and iHeight members set to zero.
|
inline TSize();
Constructs the size object with its iWidth and iHeight members set to zero.
inline 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.
For two TSizes to be equal, both their width and height values must be equal.
|
|
IMPORT_C TBool 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.
|
|
IMPORT_C TSize& operator-=(const TSize &aSize);
TSize subtraction assignment operator.
The operator subtracts the specified TSize from this TSize, and assigns the result back to this TSize.
|
|
IMPORT_C TSize& operator-=(const TPoint &aPoint);
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.
|
|
IMPORT_C TSize& operator+=(const TSize &aSize);
TSize addition assignment operator.
The operator adds the specified TSize to this TSize, and assigns the result back to this TSize.
|
|
IMPORT_C TSize& operator+=(const TPoint &aPoint);
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.
|
|
IMPORT_C TSize operator-(const TSize &aSize) const;
TSize subtraction operator.
This operator subtracts the specified TSize from this TSize, and returns the resulting value.
|
|
IMPORT_C TSize operator-(const TPoint &aPoint) const;
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
|
|
IMPORT_C TSize operator+(const TSize &aSize) const;
TSize addition operator.
This operator adds the specified TSize to this TSize, and returns the resulting value.
|
|
IMPORT_C TSize operator+(const TPoint &aPoint) const;
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
|
|
IMPORT_C TSize operator-() const;
Unary minus operator.
The operator returns the negation of this TSize.
|
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.
|
TInt iHeight;
The height of this TSize object.