diff -r 000000000000 -r 5d03bc08d59c windowing/windowserver/nga/SERVER/graphicscontextstate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windowing/windowserver/nga/SERVER/graphicscontextstate.h Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,54 @@ +// Copyright (c) 2008-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: +// TInternalGcStatus and associated classes definitions +// Helper class which reads/writes to the given buffer graphics context attributes +// +// + +#ifndef __GRAPHICSCONTEXTSTATE_H__ +#define __GRAPHICSCONTEXTSTATE_H__ + +#include +#include +#include + +class CWsClientWindow; + +class TInternalGcStatus + { +public: + void ResetInternalStatus(CWsClientWindow* aWin); + static void InternalizeGcAttributesL(MWsGraphicsContext* aGc, RReadStream& aReadStream); + void ExternalizeGcAttributesL(RWriteStream& aWriteStream); +public: + CGraphicsContext::TDrawMode iDrawMode; + CGraphicsContext::TBrushStyle iBrushStyle; + CGraphicsContext::TPenStyle iPenStyle; + TRgb iPenColor; + TRgb iBrushColor; + TSize iPenSize; + TInt iBrushPatternHandle; + TInt iWordExcessWidth; + TInt iWordNumChars; + TInt iCharExcessWidth; + TInt iCharNumChars; + TRgb iShadowColor; + TPoint iOrigin; + TPoint iBrushOrigin; + TFontUnderline iUnderline; + TFontStrikethrough iStrikethrough; + TInt iFontHandle; + }; + +#endif