diff -r 000000000000 -r 5d03bc08d59c windowing/windowserver/stdgraphic/stdgraphicdrawer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windowing/windowserver/stdgraphic/stdgraphicdrawer.h Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,69 @@ +// 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 +#include +#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 iFrames; + TInt64 iAnimationLength; + CFrameRate iFps; + }; + +#endif //__STDGRAPHICDRAWER_H__