windowing/windowserver/stdgraphic/stdgraphicdrawer.h
author Shabe Razvi <shaber@symbian.org>
Fri, 30 Apr 2010 17:15:32 +0100
changeset 43 7579f232bae7
parent 0 5d03bc08d59c
child 121 d72fc2aace31
permissions -rw-r--r--
Transplant KhronosRI changeset 22d01ad3515c - Bug 1394 - KhronosRI - ARMv5 def files missing Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed

// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef __STDGRAPHICDRAWER_H__
#define __STDGRAPHICDRAWER_H__

#include "Graphics/WSGRAPHICDRAWER.H"
#include <Graphics/WSGRAPHICDRAWERINTERFACE.H>
#include <icl/imagedata.h>
#include "stdgraphictestdrawer.h"

class CFbsBitmap;
class MWsGraphicDrawerContext;

NONSHARABLE_CLASS(CWsGraphicDrawerBitmap): public CWsGraphicDrawer
	{
public:
	enum 
		{
		EImplUid = 0x10281921
		};
	static CWsGraphicDrawerBitmap* CreateL();
	~CWsGraphicDrawerBitmap();
	void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TGraphicDrawerId& aId,MWsClient& aOwner,const TDesC8& aData);
	void HandleMessage(const TDesC8& aData);
private:
	CWsGraphicDrawerBitmap();
	void DoDraw(MWsGc& aGc,const TRect& aRect,const TDesC8& aData) const;
private:
	MWsGraphicDrawerContext* iContext;
	CFbsBitmap* iBitmap;
	CFbsBitmap* iMask;
	};

NONSHARABLE_CLASS(CWsGraphicDrawerBitmapAnimation): public CWsGraphicDrawer
	{
public:
	enum 
		{
		EImplUid = 0x10281AAE
		};
	static CWsGraphicDrawerBitmapAnimation* CreateL();
	~CWsGraphicDrawerBitmapAnimation();
	void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TGraphicDrawerId& aId,MWsClient& aOwner,const TDesC8& aData);
	void HandleMessage(const TDesC8& aData);
private:
	CWsGraphicDrawerBitmapAnimation();
	void DoDraw(MWsGc& aGc,const TRect& aRect,const TDesC8& aData) const;
private:
	class CFrame;
	MWsGraphicDrawerContext* iContext;
	RPointerArray<CFrame> iFrames;
	TInt64 iAnimationLength;
	CFrameRate iFps;
	};

#endif //__STDGRAPHICDRAWER_H__