MDisplayMappingBase Class Reference

class MDisplayMappingBase

Provides facilities to map coordinates between various coordinate spaces.

Public Member Functions
TInt MapCoordinates ( TCoordinateSpace , const TRect &, TCoordinateSpace , TRect &)
Public Member Enumerations
enum anonymous { KUidDisplayMappingBase  = 0x1028656D, ETypeId  = KUidDisplayMappingBase }

Member Functions Documentation

MapCoordinates(TCoordinateSpace, const TRect &, TCoordinateSpace, TRect &)

TInt MapCoordinates ( TCoordinateSpace aSourceSpace,
const TRect & aSource,
TCoordinateSpace aTargetSpace,
TRect & aTarget
) const [pure virtual]

Maps the source rectangle from a source coordinate space to a target coordinate space. Since there may be scaling involved, the target rectangle may be larger or smaller than the source one, or even become empty.

Two rectangles that abut each other before mapping, when mapped using the same source and target space UIDs, shall also abut each other after mapping.

Parameters

TCoordinateSpace aSourceSpace source space
const TRect & aSource source rectangle
TCoordinateSpace aTargetSpace target space
TRect & aTarget target rectangle to be filled in

Member Enumerations Documentation

Enum anonymous

Enumerators

KUidDisplayMappingBase = 0x1028656D
ETypeId = KUidDisplayMappingBase