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 } |
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.
TCoordinateSpace aSourceSpace | source space |
const TRect & aSource | source rectangle |
TCoordinateSpace aTargetSpace | target space |
TRect & aTarget | target rectangle to be filled in |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.