Location:
e32std.h
Link against: euser.lib
TSize
Supported from 5.0
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(), SetSize(), TSize(), iHeight, iWidth, operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator==()
TSize(TInt aWidth,TInt aHeight);
Constructs the size object with the specified width and height values.
|
void SetSize(TInt aWidth,TInt aHeight);
Sets the width and height.
|
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.
|
|
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:
subtracting the point's x co-ordinate value from the width
subtracting the point's y co-ordinate value from the height.
|
|
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.
|
|
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:
adding the point's x co-ordinate value to the width
adding the point's y co-ordinate value to the height.
|
|
TInt operator==(const TSize& aSize) const;
Compares two TSize for equality.
For two TSizes to be equal, both their width and
height values must be equal.
|
|
TInt 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.
|
|
TSize operator-(const TSize& aSize) const;
TSize subtraction operator.
This operator subtracts the specified TSize from
this TSize, and returns the resulting value.
|
|
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:
subtracting the x co-ordinate value from the width
subtracting the y co-ordinate value from the height
|
|
TSize operator+(const TSize& aSize) const;
TSize addition operator.
This operator adds the specified TSize to this
TSize, and returns the resulting value.
|
|
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:
adding the x co-ordinate value to the width
adding the y co-ordinate value to the height
|
|
TSize operator-() const;
Unary minus operator.
The operator returns the negation of this
TSize.
|
TPoint AsPoint() const;
Gets a TPoint object whose co-ordinates are the
width and height of this TSize.
|
TInt iWidth
The height of this TSize object.