sl@0: // Copyright (c) 1997-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 BITGCEXTRADATA_H sl@0: #define BITGCEXTRADATA_H sl@0: sl@0: /** sl@0: Class used to extend the CFbsBitGc class to avoid BC break. Any data member which needs sl@0: to be added in CFbsBitGc should be added to this class. sl@0: @internalAll sl@0: @released sl@0: */ sl@0: class CFbsBitGcExtraData:public CBase sl@0: { sl@0: public: sl@0: CFbsBitGcExtraData(); sl@0: ~CFbsBitGcExtraData(); sl@0: void Reset(); sl@0: inline TInt* PenArray(){return iPenArray;}; sl@0: inline TRgb ShadowColor(){return iShadowColor;} sl@0: inline void SetPenArray(TInt* aPenArray); sl@0: inline void SetShadowColor(const TRgb& aShadowColor); sl@0: inline void ResetPenArray(); sl@0: private: sl@0: TInt* iPenArray; sl@0: TRgb iShadowColor; sl@0: }; sl@0: sl@0: inline void CFbsBitGcExtraData::SetPenArray(TInt* aPenArray) sl@0: { sl@0: delete[] iPenArray; sl@0: iPenArray = aPenArray; sl@0: } sl@0: sl@0: inline void CFbsBitGcExtraData::SetShadowColor(const TRgb& aShadowColor) sl@0: { sl@0: iShadowColor = aShadowColor; sl@0: } sl@0: sl@0: inline void CFbsBitGcExtraData::ResetPenArray() sl@0: { sl@0: delete[] iPenArray; sl@0: iPenArray = NULL; sl@0: } sl@0: sl@0: #endif // BITGCEXTRADATA_H