Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: gdi.h
Link against: gdi.lib

Class TMargins

TMargins

Support

Supported from 5.0

Description

A set of margins used for cropping a picture.

Margins are specified in twips or pixels.

Defined in TMargins:
ExternalizeL(), InternalizeL(), iBottom, iLeft, iRight, iTop, operator!=(), operator==()


Comparison


operator==()

TBool operator==(const TMargins& aMargins) const;

Description

Tests margins for equality.

Parameters

const TMargins& aMargins

The margin to be compared with this margin.

Return value

TBool

True, if the margins are equal; false, otherwise.


operator!=()

TBool operator!=(const TMargins& aMargins) const;

Description

Tests margins for inequality.

Parameters

const TMargins& aMargins

The margin to be compared with this margin.

Return value

TBool

True, if the margins are unequal; false, otherwise.

[Top]


Streaming


InternalizeL()

void InternalizeL(RReadStream& aStream);

Description

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& aStream

Stream from which the object is internalised.


ExternalizeL()

void ExternalizeL(RWriteStream& aStream) const;

Description

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& aStream

Stream to which the object is externalised.

[Top]


Public data members


iBottom

TInt iBottom

Description

Bottom margin, (in twips or pixels).


iLeft

TInt iLeft

Description

Left margin, (in twips or pixels).


iRight

TInt iRight

Description

Right margin, (in twips or pixels).


iTop

TInt iTop

Description

Top margin, (in twips or pixels).