|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // AknAnimGc.H |
|
21 // |
|
22 // Copyright (c) 1997-1999 Symbian Ltd. All rights reserved. |
|
23 // |
|
24 |
|
25 // Animation View Redirection GC |
|
26 |
|
27 |
|
28 #if !defined(__AKNANIMGC_H__) |
|
29 #define __AKNANIMGC_H__ |
|
30 |
|
31 #include <w32std.h> |
|
32 |
|
33 |
|
34 |
|
35 NONSHARABLE_CLASS(CAknAnimatedGc) : public CWindowGc |
|
36 { |
|
37 public: |
|
38 static CAknAnimatedGc* NewL(CWindowGc& aOldGc, CFbsBitGc& aReGc); |
|
39 void SetRootWindow(const RWindowTreeNode& aRootWin); |
|
40 ~CAknAnimatedGc(); |
|
41 void SetScreenDevice(const CWsScreenDevice* aScreen); |
|
42 protected: |
|
43 CAknAnimatedGc(CWsScreenDevice& aScreen, CFbsBitGc& aReGc, CWindowGc& aOldGc); |
|
44 // From CWindowGc |
|
45 IMPORT_C virtual void Activate(RDrawableWindow &aWindow); |
|
46 IMPORT_C virtual void Deactivate(); |
|
47 |
|
48 IMPORT_C virtual CGraphicsDevice* Device() const; |
|
49 IMPORT_C virtual void SetOrigin(const TPoint &aPos=TPoint(0,0)); |
|
50 IMPORT_C virtual void SetDrawMode(TDrawMode aDrawingMode); |
|
51 IMPORT_C virtual void SetClippingRect(const TRect& aRect); |
|
52 IMPORT_C virtual void CancelClippingRect(); |
|
53 IMPORT_C virtual void Reset(); |
|
54 |
|
55 IMPORT_C virtual void UseFont(const CFont *aFont); |
|
56 IMPORT_C virtual void DiscardFont(); |
|
57 IMPORT_C virtual void SetUnderlineStyle(TFontUnderline aUnderlineStyle); |
|
58 IMPORT_C virtual void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle); |
|
59 IMPORT_C virtual void SetWordJustification(TInt aExcessWidth,TInt aNumGaps); |
|
60 IMPORT_C virtual void SetCharJustification(TInt aExcessWidth,TInt aNumChars); |
|
61 |
|
62 IMPORT_C virtual void SetPenColor(const TRgb &aColor); |
|
63 IMPORT_C virtual void SetPenStyle(TPenStyle aPenStyle); |
|
64 IMPORT_C virtual void SetPenSize(const TSize& aSize); |
|
65 |
|
66 IMPORT_C virtual void SetBrushColor(const TRgb &aColor); |
|
67 IMPORT_C virtual void SetBrushStyle(TBrushStyle aBrushStyle); |
|
68 IMPORT_C virtual void SetBrushOrigin(const TPoint &aOrigin); |
|
69 IMPORT_C virtual void UseBrushPattern(const CFbsBitmap *aBitmap); |
|
70 IMPORT_C virtual void DiscardBrushPattern(); |
|
71 |
|
72 IMPORT_C virtual void MoveTo(const TPoint &aPoint); |
|
73 IMPORT_C virtual void MoveBy(const TPoint &aVector); |
|
74 IMPORT_C virtual void Plot(const TPoint &aPoint); |
|
75 |
|
76 IMPORT_C virtual void DrawArc(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd); |
|
77 IMPORT_C virtual void DrawLine(const TPoint &aPoint1,const TPoint &aPoint2); |
|
78 IMPORT_C virtual void DrawLineTo(const TPoint &aPoint); |
|
79 IMPORT_C virtual void DrawLineBy(const TPoint &aVector); |
|
80 IMPORT_C virtual void DrawPolyLine(const CArrayFix<TPoint> *aPointList); |
|
81 IMPORT_C virtual void DrawPolyLine(const TPoint* aPointList,TInt aNumPoints); |
|
82 |
|
83 IMPORT_C virtual void DrawPie(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd); |
|
84 IMPORT_C virtual void DrawEllipse(const TRect &aRect); |
|
85 IMPORT_C virtual void DrawRect(const TRect &aRect); |
|
86 IMPORT_C virtual void DrawRoundRect(const TRect &aRect,const TSize &aEllipse); |
|
87 IMPORT_C virtual TInt DrawPolygon(const CArrayFix<TPoint> *aPointList,TFillRule aFillRule=EAlternate); |
|
88 IMPORT_C virtual TInt DrawPolygon(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule=EAlternate); |
|
89 |
|
90 IMPORT_C virtual void DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aSource); |
|
91 IMPORT_C virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aSource); |
|
92 IMPORT_C virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aSource, const TRect &aSourceRect); |
|
93 |
|
94 IMPORT_C virtual void DrawText(const TDesC &aString,const TPoint &aPosition); |
|
95 IMPORT_C virtual void DrawText(const TDesC &aString,const TRect &aBox,TInt aBaselineOffset,TTextAlign aHoriz=ELeft,TInt aLeftMrg=0); |
|
96 |
|
97 IMPORT_C virtual void Clear(); |
|
98 IMPORT_C virtual void Clear(const TRect &aRect); |
|
99 IMPORT_C virtual void CopyRect(const TPoint &aOffset,const TRect &aRect); |
|
100 IMPORT_C virtual void BitBlt(const TPoint &aPos, const CFbsBitmap *aDevice); |
|
101 IMPORT_C virtual void BitBlt(const TPoint &aPos, const CFbsBitmap *aDevice, const TRect &aRect); |
|
102 IMPORT_C virtual void BitBltMasked(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask); |
|
103 IMPORT_C virtual void BitBlt(const TPoint &aPos, const CWsBitmap *aDevice); |
|
104 IMPORT_C virtual void BitBlt(const TPoint &aPos, const CWsBitmap *aDevice, const TRect &aRect); |
|
105 IMPORT_C virtual void BitBltMasked(const TPoint& aPoint,const CWsBitmap *aBitmap,const TRect& aSourceRect,const CWsBitmap *aMaskBitmap,TBool aInvertMask); |
|
106 IMPORT_C virtual void MapColors(const TRect& aRect,const TRgb* aColors,TInt aNumPairs=2,TBool aMapForwards=ETrue); |
|
107 |
|
108 IMPORT_C virtual void DrawTextVertical(const TDesC& aText,const TPoint& aPosition,TBool aUp); |
|
109 IMPORT_C virtual void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0); |
|
110 IMPORT_C virtual void SetDitherOrigin(const TPoint& aPoint); |
|
111 IMPORT_C virtual TInt SetClippingRegion(const TRegion &aClippingRegion); |
|
112 IMPORT_C virtual void CancelClippingRegion(); |
|
113 IMPORT_C void SetFaded(TBool aFaded); |
|
114 IMPORT_C void SetFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap); |
|
115 |
|
116 private: |
|
117 CFbsBitGc& iReGc; |
|
118 const RWindowTreeNode* iRootWin; |
|
119 TPoint iOrigin; |
|
120 CWindowGc& iOldGc; |
|
121 const CWsScreenDevice* iScreen; |
|
122 }; |
|
123 |
|
124 |
|
125 #endif |