sl@0: // Copyright (c) 1995-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 __CFADER_H__ sl@0: #define __CFADER_H__ sl@0: sl@0: #include "Graphics/WSPLUGIN.H" sl@0: sl@0: struct TFadingParams sl@0: { sl@0: TUint8 blackMap; sl@0: TUint8 whiteMap; sl@0: }; sl@0: sl@0: class MWsGraphicDrawerEnvironment; sl@0: sl@0: class CFader : public CWsPlugin, public MWsFader sl@0: { sl@0: public: sl@0: enum { EImplUid = 0x2001B70D }; sl@0: sl@0: public: sl@0: static CFader* CreateL(); sl@0: ~CFader(); sl@0: void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData); sl@0: const TDesC& PluginName() const; sl@0: sl@0: public: // from MWsObjectProvider sl@0: TAny* ResolveObjectInterface(TUint aTypeId); sl@0: sl@0: public: // from MWsFader sl@0: virtual void SetFadingParameters(const TDesC8& aData); sl@0: virtual void FadeArea(CFbsBitGc* aBitGc,const TRegion * aRegion); sl@0: sl@0: private: sl@0: CFader(); sl@0: sl@0: private: sl@0: TUint8 iBlackMap; sl@0: TUint8 iWhiteMap; sl@0: }; sl@0: sl@0: #endif //__CFADER_H__