MDrawDeviceOrigin Class Reference

class MDrawDeviceOrigin

MDrawDeviceOrigin interface manages the origin point of CFbsDrawDevice interface.

The interface could be retrieved calling CFbsDrawDevice::GetInterface() with KDrawDeviceOriginInterfaceID as an argument. If the drawing device does not have support for moving origin, MDrawDeviceOrigin cannot be retrieved.

MDrawDeviceOrigin interface lifetime is the same as the lifetime of CFbsDrawDevice interface, which creates it. Do not try to delete MDrawDeviceOrigin interface pointer!

MDrawDeviceOrigin interface offers following methods: Get() , Set() .

CFbsDrawDevice

Public Member Functions
void Get ( TPoint &)
TInt Set (const TPoint &)

Member Functions Documentation

Get(TPoint &)

void Get ( TPoint & aOrigin ) [pure virtual]

Retrieves origin point.

Parameters

TPoint & aOrigin Upon return contains origin point.

Set(const TPoint &)

TInt Set ( const TPoint & aOrigin ) [pure virtual]

Sets the origin of the drawing device. By default drawing device origin is (0,0). If you want to set the default origin, call Set() with (0,0) point coordinates.

Parameters

const TPoint & aOrigin Specifies physical coordinates of the new origin of the drawing device. The drawing device maps the logical point (0,0) to the "aOrigin" physical point .