os/graphics/graphicsdeviceinterface/bitgdi/inc/bitgcextradata.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1997-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 BITGCEXTRADATA_H
    17 #define BITGCEXTRADATA_H
    18 
    19 /**
    20 Class used to extend the CFbsBitGc class to avoid BC break. Any data member which needs 
    21 to be added in CFbsBitGc should be added to this class.
    22 @internalAll
    23 @released
    24 */
    25 class CFbsBitGcExtraData:public CBase
    26 	{
    27 public:
    28 	CFbsBitGcExtraData();
    29 	~CFbsBitGcExtraData();
    30 	void Reset();
    31 	inline TInt* PenArray(){return iPenArray;};
    32 	inline TRgb ShadowColor(){return iShadowColor;}
    33 	inline void SetPenArray(TInt* aPenArray);
    34 	inline void SetShadowColor(const TRgb& aShadowColor);
    35 	inline void ResetPenArray();
    36 private:
    37 	TInt* iPenArray;
    38 	TRgb iShadowColor;
    39 	};
    40 
    41 inline void CFbsBitGcExtraData::SetPenArray(TInt* aPenArray)
    42 	{
    43 	delete[] iPenArray;
    44 	iPenArray = aPenArray;
    45 	}
    46 
    47 inline void CFbsBitGcExtraData::SetShadowColor(const TRgb& aShadowColor)
    48 	{
    49 	iShadowColor = aShadowColor;
    50 	}
    51 
    52 inline void CFbsBitGcExtraData::ResetPenArray()
    53 	{
    54 	delete[] iPenArray;
    55 	iPenArray = NULL;
    56 	}
    57 
    58 #endif // BITGCEXTRADATA_H