osncore::CSize Class Reference

class osncore::CSize

Defines a two dimensional size data type.

Since
S60 5.0 Draft CSize
Public Member Functions
CSize ()
CSize ( int32 , int32 )
CSize (const CSize &)
CPoint AsPoint ()
bool32 operator!= (const CSize &)
CSize & operator+= (const CSize &)
CSize & operator-= (const CSize &)
bool32 operator== (const CSize &)
Public Attributes
int32 mX
int32 mY

Constructor & Destructor Documentation

CSize()

CSize ( ) [inline]

Default constructor, initializing the mX and mY members to zero.

CSize(int32, int32)

CSize ( int32 aX,
int32 aY
) [inline]

Parameterized constructor.

Parameters

int32 aX The first dimension of the size ( usually the width ).
int32 aY The second dimension of the size ( usually the height ).

CSize(const CSize &)

CSize ( const CSize & aSize ) [inline]

Copy constructor.

Parameters

const CSize & aSize The size object to be copied.

Member Functions Documentation

AsPoint()

CPoint AsPoint ( ) [inline]

Gets a CPoint whose coordinates are the width and height of this CSize .

operator!=(const CSize &)

bool32 operator!= ( const CSize & aSize ) const [inline]

Compares this CSize with the specified CSize for inequality.

For two CSize to be unequal, either their width or height values must be different.

Parameters

const CSize & aSize The CSize to be compared with this CSize.

operator+=(const CSize &)

CSize & operator+= ( const CSize & aSize ) [inline]

CSize addition assignment operator.

The operator adds the specified CSize to this CSize , and assigns the result back to this CSize .

Parameters

const CSize & aSize The CSize to be added.

operator-=(const CSize &)

CSize & operator-= ( const CSize & aSize ) [inline]

CSize subtraction assignment operator.

The operator substracts the specified CSize from this CSize , and assigns the result back to this CSize .

Parameters

const CSize & aSize The CSize to be substracted.

operator==(const CSize &)

bool32 operator== ( const CSize & aSize ) const [inline]

Compares this CSize with the specified CSize for equality.

For two CSizes to be equal, both their width and height values must be equal.

Parameters

const CSize & aSize The CSize to be compared with this CSize.

Member Data Documentation

int32 mX

int32 mX

int32 mY

int32 mY