MScalingSettings Class Reference

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() .

CFbsDrawDevice

Member Functions Documentation

Get(TInt &, TInt &, TInt &, TInt &)

void Get ( TInt & aFactorX,
TInt & aFactorY,
TInt & aDivisorX,
TInt & aDivisorY
) [pure virtual]

Retrieves X-axis and Y-axis scaling factors.

Parameters

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.

IsScalingOff()

TBool IsScalingOff ( ) [pure virtual]

Notifies the caller whether the drawing device is scaled or not.

Set(TInt, TInt, TInt, TInt)

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.

Parameters

TInt aFactorX Scaling factor for the X-axis of the screen device.
TInt aFactorY Scaling factor for the y-axis of the screen device.
TInt aDivisorX Not used. Should be set to 1.
TInt aDivisorY Not used. Should be set to 1.