windowing/windowserver/nga/SERVER/graphicscontextstate.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2008-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 // TInternalGcStatus and associated classes definitions
       
    15 // Helper class which reads/writes to the given buffer graphics context attributes 
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __GRAPHICSCONTEXTSTATE_H__
       
    20 #define __GRAPHICSCONTEXTSTATE_H__
       
    21 
       
    22 #include <gdi.h>
       
    23 #include <s32strm.h>
       
    24 #include <graphics/wsgraphicscontext.h>
       
    25 
       
    26 class CWsClientWindow;
       
    27 
       
    28 class TInternalGcStatus
       
    29 	{
       
    30 public:	
       
    31 	void ResetInternalStatus(CWsClientWindow* aWin);
       
    32 	static void InternalizeGcAttributesL(MWsGraphicsContext* aGc, RReadStream& aReadStream);
       
    33 	void ExternalizeGcAttributesL(RWriteStream& aWriteStream);
       
    34 public:	
       
    35 	CGraphicsContext::TDrawMode iDrawMode;
       
    36 	CGraphicsContext::TBrushStyle iBrushStyle;
       
    37 	CGraphicsContext::TPenStyle iPenStyle;
       
    38 	TRgb iPenColor;
       
    39 	TRgb iBrushColor;
       
    40 	TSize iPenSize;
       
    41 	TInt iBrushPatternHandle;
       
    42 	TInt iWordExcessWidth;
       
    43 	TInt iWordNumChars;
       
    44 	TInt iCharExcessWidth;
       
    45 	TInt iCharNumChars;
       
    46 	TRgb iShadowColor;
       
    47 	TPoint iOrigin;
       
    48 	TPoint iBrushOrigin;
       
    49 	TFontUnderline iUnderline;
       
    50 	TFontStrikethrough iStrikethrough;
       
    51 	TInt iFontHandle;
       
    52 	};
       
    53 
       
    54 #endif