TSize Class Reference

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.

Public Member Functions
TSize(TUninitialized)
TSize()
TSize(TInt, TInt)
IMPORT_C TPointAsPoint()
IMPORT_C voidSetSize(TInt, TInt)
IMPORT_C TBooloperator!=(const TSize &)
IMPORT_C TSizeoperator+(const TSize &)
IMPORT_C TSizeoperator+(const TPoint &)
IMPORT_C TSize &operator+=(const TSize &)
IMPORT_C TSize &operator+=(const TPoint &)
IMPORT_C TSizeoperator-(const TSize &)
IMPORT_C TSizeoperator-(const TPoint &)
IMPORT_C TSizeoperator-()
IMPORT_C TSize &operator-=(const TSize &)
IMPORT_C TSize &operator-=(const TPoint &)
IMPORT_C TBooloperator==(const TSize &)
Public Member Enumerations
enumTUninitialized { EUninitialized }
Public Attributes
TInt iHeight
TInt iWidth

Constructor & Destructor Documentation

TSize(TUninitialized)

TSize(TUninitialized)[inline]

Constructs the size object with its iWidth and iHeight members set to zero.

Parameters

TUninitialized

TSize()

TSize()[inline]

Constructs the size object with its iWidth and iHeight members set to zero.

TSize(TInt, TInt)

TSize(TIntaWidth,
TIntaHeight
)[inline]

Constructs the size object with the specified width and height values.

Parameters

TInt aWidthThe width value.
TInt aHeightThe height value .

Member Functions Documentation

AsPoint()

IMPORT_C TPointAsPoint()const

SetSize(TInt, TInt)

IMPORT_C voidSetSize(TIntaWidth,
TIntaHeight
)

Parameters

TInt aWidth
TInt aHeight

operator!=(const TSize &)

IMPORT_C TBooloperator!=(const TSize &aSize)const

Parameters

const TSize & aSize

operator+(const TSize &)

IMPORT_C TSizeoperator+(const TSize &aSize)const

Parameters

const TSize & aSize

operator+(const TPoint &)

IMPORT_C TSizeoperator+(const TPoint &aPoint)const

Parameters

const TPoint & aPoint

operator+=(const TSize &)

IMPORT_C TSize &operator+=(const TSize &aSize)

Parameters

const TSize & aSize

operator+=(const TPoint &)

IMPORT_C TSize &operator+=(const TPoint &aPoint)

Parameters

const TPoint & aPoint

operator-(const TSize &)

IMPORT_C TSizeoperator-(const TSize &aSize)const

Parameters

const TSize & aSize

operator-(const TPoint &)

IMPORT_C TSizeoperator-(const TPoint &aPoint)const

Parameters

const TPoint & aPoint

operator-()

IMPORT_C TSizeoperator-()const

operator-=(const TSize &)

IMPORT_C TSize &operator-=(const TSize &aSize)

Parameters

const TSize & aSize

operator-=(const TPoint &)

IMPORT_C TSize &operator-=(const TPoint &aPoint)

Parameters

const TPoint & aPoint

operator==(const TSize &)

IMPORT_C TBooloperator==(const TSize &aSize)const

Parameters

const TSize & aSize

Member Enumerations Documentation

Enum TUninitialized

Enumerators

EUninitialized

Member Data Documentation

TInt iHeight

TInt iHeight

The height of this TSize object.

TInt iWidth

TInt iWidth

The width of this TSize object.