class MScalingSettings |
MScalingSettings interface manages X-axis and Y-axis scaling factors of CFbsDrawDevice interface.
The interface could be retrieved calling CFbsDrawDevice::GetInterface() with KScalingSettingsInterfaceID as an argument. If the draw device does not have support for scaling, MScalingSettings cannot be retrieved.
MScalingSettings interface lifetime is the same as the lifetime of CFbsDrawDevice interface, which creates it. Do not try to delete MScalingSettings interface pointer!
MScalingSettings interface offers following methods: Get() , Set() , IsScalingOff() .
Public Member Functions | |
---|---|
void | Get ( TInt &, TInt &, TInt &, TInt &) |
TBool | IsScalingOff () |
TInt | Set ( TInt , TInt , TInt , TInt ) |
void | Get | ( | TInt & | aFactorX, |
TInt & | aFactorY, | |||
TInt & | aDivisorX, | |||
TInt & | aDivisorY | |||
) | [pure virtual] |
Retrieves X-axis and Y-axis scaling factors.
TInt & aFactorX | Upon return contains X-axis scaling factor. |
TInt & aFactorY | Upon return contains Y-axis scaling factor. |
TInt & aDivisorX | Upon return contains the decimal fraction of X-axis scaling factor. |
TInt & aDivisorY | Upon return contains the decimal fraction of Y-axis scaling factor. |
TBool | IsScalingOff | ( | ) | [pure virtual] |
Notifies the caller whether the drawing device is scaled or not.
TInt | Set | ( | TInt | aFactorX, |
TInt | aFactorY, | |||
TInt | aDivisorX, | |||
TInt | aDivisorY | |||
) | [pure virtual] |
Sets scaling factor by which the drawing device should scale the drawing images. If you want to un-scale the device, call Set() with factorX = 1, factorY = 1, divisorX = 1, divisorY = 1.
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.