windowing/windowserver/nonnga/stdplugin/fader.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CFADER_H__
       
    17 #define __CFADER_H__
       
    18 
       
    19 #include "Graphics/WSPLUGIN.H"
       
    20 
       
    21 struct TFadingParams
       
    22     {
       
    23     TUint8 blackMap;
       
    24     TUint8 whiteMap;
       
    25     };
       
    26 
       
    27 class MWsGraphicDrawerEnvironment;
       
    28 
       
    29 class CFader : public CWsPlugin, public MWsFader
       
    30   {
       
    31 public:
       
    32 	enum { EImplUid = 0x2001B70D };
       
    33 
       
    34 public:
       
    35 	static CFader* CreateL();
       
    36 	~CFader();
       
    37 	void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData);
       
    38 	const TDesC& PluginName() const;
       
    39 
       
    40 public: // from MWsObjectProvider
       
    41 	TAny* ResolveObjectInterface(TUint aTypeId);
       
    42 	
       
    43 public: // from MWsFader
       
    44   virtual void SetFadingParameters(const TDesC8& aData);
       
    45 	virtual void FadeArea(CFbsBitGc* aBitGc,const TRegion * aRegion);
       
    46 	
       
    47 private:
       
    48 	CFader();
       
    49 
       
    50 private:
       
    51   TUint8 iBlackMap;
       
    52   TUint8 iWhiteMap;
       
    53   };
       
    54 
       
    55 #endif //__CFADER_H__