TMargins Class Reference

#include <gdi.h>

Link against: gdi.lib

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

Detailed Description

A set of margins used for cropping a picture.

Margins are specified in twips or pixels.

Member Attribute Documentation

iBottom

TInt iBottom

Bottom margin, (in twips or pixels).

iLeft

TInt iLeft

Left margin, (in twips or pixels).

iRight

TInt iRight

Right margin, (in twips or pixels).

iTop

TInt iTop

Top margin, (in twips or pixels).

Member Function 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
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
aStreamStream from which the object is internalised.

operator!= ( const TMargins & )

IMPORT_C TBooloperator!=(const TMargins &aMargins)const

Tests margins for inequality.

Parameters
aMarginsThe margin to be compared with this margin.
Return Value
ETrue, if the margins are unequal; EFalse, otherwise.

operator== ( const TMargins & )

IMPORT_C TBooloperator==(const TMargins &aMargins)const

Tests margins for equality.

Parameters
aMarginsThe margin to be compared with this margin.
Return Value
ETrue, if the margins are equal; EFalse, otherwise.