equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CFILTERTEXT_H__ |
|
21 #define __CFILTERTEXT_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "MImageFilter.h" |
|
25 |
|
26 class CFont; |
|
27 |
|
28 class CFilterText |
|
29 : public CBase |
|
30 , public MImageFilter |
|
31 { |
|
32 public: |
|
33 IMPORT_C static TInt Create(); |
|
34 virtual ~CFilterText(); |
|
35 |
|
36 private: |
|
37 static CFilterText* NewL(); |
|
38 CFilterText(); |
|
39 void ConstructL(); |
|
40 |
|
41 public: // MImageFilter |
|
42 virtual TRect Rect(); |
|
43 virtual TReal Scale(); |
|
44 virtual TSize ViewPortSize(); |
|
45 virtual TBlock * GetBlockL ( const TRect & aRect ); |
|
46 virtual void SetParent( MImageFilter* aParent ); |
|
47 virtual void SetChild( MImageFilter* aChild ); |
|
48 virtual TInt CmdL( const TDesC16& aCmd ); |
|
49 virtual const char* Type(); |
|
50 |
|
51 private: // new methods |
|
52 |
|
53 void CreateBitmapL ( const TSize & aSize ); |
|
54 void CreateTextL ( const TDesC16 & aText ); |
|
55 |
|
56 |
|
57 private: // Data |
|
58 |
|
59 TUint32* iData; |
|
60 TRect iRect; |
|
61 TSize iTextSize; |
|
62 TSize iSize; |
|
63 TUint32 iColor; |
|
64 const CFont * iFont; |
|
65 |
|
66 TPoint iPosition; |
|
67 TPoint iCorrectPosition; |
|
68 TInt iZoom; |
|
69 TInt iAngle; |
|
70 TPoint iScale; |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 }; |
|
76 |
|
77 #endif |