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

Public Member Functions
voidGet(TInt &, TInt &, TInt &, TInt &)
TBool IsScalingOff()
TInt Set(TInt, TInt, TInt, TInt)

Member Functions Documentation

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

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

Retrieves X-axis and Y-axis scaling factors.

Parameters

TInt & aFactorXUpon return contains X-axis scaling factor.
TInt & aFactorYUpon return contains Y-axis scaling factor.
TInt & aDivisorXUpon return contains the decimal fraction of X-axis scaling factor.
TInt & aDivisorYUpon 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(TIntaFactorX,
TIntaFactorY,
TIntaDivisorX,
TIntaDivisorY
)[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 aFactorXScaling factor for the X-axis of the screen device.
TInt aFactorYScaling factor for the y-axis of the screen device.
TInt aDivisorXNot used. Should be set to 1.
TInt aDivisorYNot used. Should be set to 1.