sl@0: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __BITDRAWORIGIN_H__ sl@0: #define __BITDRAWORIGIN_H__ sl@0: sl@0: /** sl@0: MDrawDeviceOrigin interface manages the origin point of CFbsDrawDevice interface. sl@0: sl@0: The interface could be retrieved calling CFbsDrawDevice::GetInterface() with sl@0: KDrawDeviceOriginInterfaceID as an argument. sl@0: If the drawing device does not have support for moving origin, MDrawDeviceOrigin cannot be retrieved. sl@0: sl@0: MDrawDeviceOrigin interface lifetime is the same as the lifetime of CFbsDrawDevice sl@0: interface, which creates it. sl@0: Do not try to delete MDrawDeviceOrigin interface pointer! sl@0: sl@0: MDrawDeviceOrigin interface offers following methods: sl@0: Get(), Set(). sl@0: sl@0: @see CFbsDrawDevice sl@0: @internalTechnology sl@0: */ sl@0: class MDrawDeviceOrigin sl@0: { sl@0: public: sl@0: /** sl@0: Sets the origin of the drawing device. By default drawing device origin is (0,0). sl@0: If you want to set the default origin, call Set() with (0,0) point coordinates. sl@0: @param aOrigin Specifies physical coordinates of the new origin sl@0: of the drawing device. The drawing device maps the logical point (0,0) to sl@0: the "aOrigin" physical point . sl@0: @return KErrNone success. sl@0: @internalTechnology sl@0: */ sl@0: virtual TInt Set(const TPoint& aOrigin) = 0; sl@0: /** sl@0: Retrieves origin point. sl@0: @param aOrigin Upon return contains origin point. sl@0: @internalTechnology sl@0: */ sl@0: virtual void Get(TPoint& aOrigin) = 0; sl@0: }; sl@0: sl@0: #endif//__BITDRAWORIGIN_H__