TMargins Class Reference

class TMargins

A set of margins used for cropping a picture.

Margins are specified in twips or pixels.

Public Member Functions
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TBooloperator!=(const TMargins &)
IMPORT_C TBooloperator==(const TMargins &)
Public Attributes
TInt iBottom
TInt iLeft
TInt iRight
TInt iTop

Member Functions Documentation

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalises a set of margins to a write stream.

The presence of this function means that the standard templated stream operator<<() is available to externalise objects of this class.

Parameters

RWriteStream & aStreamStream to which the object is externalised.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalises a set of margins from a read stream.

The presence of this function means that the standard templated stream operator>>() is available to internalise objects of this class.

Parameters

RReadStream & aStreamStream from which the object is internalised.

operator!=(const TMargins &)

IMPORT_C TBooloperator!=(const TMargins &aMargins)const

Tests margins for inequality.

Parameters

const TMargins & aMarginsThe margin to be compared with this margin.

operator==(const TMargins &)

IMPORT_C TBooloperator==(const TMargins &aMargins)const

Tests margins for equality.

Parameters

const TMargins & aMarginsThe margin to be compared with this margin.

Member Data Documentation

TInt iBottom

TInt iBottom

Bottom margin, (in twips or pixels).

TInt iLeft

TInt iLeft

Left margin, (in twips or pixels).

TInt iRight

TInt iRight

Right margin, (in twips or pixels).

TInt iTop

TInt iTop

Top margin, (in twips or pixels).