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 CFILTERROTATE_H |
|
21 #define CFILTERROTATE_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "MImageFilter.h" |
|
25 |
|
26 class CFilterRotate |
|
27 : public CBase |
|
28 , public MImageFilter |
|
29 { |
|
30 public: |
|
31 IMPORT_C static TInt Create(); |
|
32 virtual ~CFilterRotate(); |
|
33 |
|
34 private: |
|
35 static CFilterRotate* NewL(); |
|
36 CFilterRotate(); |
|
37 void ConstructL(); |
|
38 |
|
39 public: // MImageFilter |
|
40 virtual TRect Rect(); |
|
41 virtual TReal Scale(); |
|
42 virtual TSize ViewPortSize(); |
|
43 virtual TBlock * GetBlockL ( const TRect & aRect ); |
|
44 virtual void SetParent( MImageFilter* aParent ); |
|
45 virtual void SetChild( MImageFilter* aChild ); |
|
46 virtual TInt CmdL( const TDesC16& aCmd ); |
|
47 virtual const char* Type(); |
|
48 |
|
49 private: // Data |
|
50 |
|
51 enum TRotation |
|
52 { |
|
53 ERotationMin = 0, // invalid |
|
54 ERotation0, |
|
55 ERotation90, |
|
56 ERotation180, |
|
57 ERotation270, |
|
58 ERotationMax // invalid |
|
59 } iRotation; |
|
60 |
|
61 TSize iVpSize; |
|
62 }; |
|
63 |
|
64 #endif // CFILTERROTATE_H |