equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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 the License "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: Gesture helper implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GESTUREEVENT_H_ |
|
19 #define GESTUREEVENT_H_ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "rt_gestureobserver.h" |
|
23 #include "pointarray.h" |
|
24 |
|
25 namespace RT_GestureHelper |
|
26 { |
|
27 NONSHARABLE_CLASS( CGestureEvent ) : public CBase, public MGestureEvent |
|
28 { |
|
29 public: |
|
30 // From MGestureEvent |
|
31 TGestureCode Code( TAxis /*aRelevantAxis*/ ) { return iCode; }; |
|
32 TBool IsHolding() const { return iIsHolding; }; |
|
33 TPoint StartPos() const { return iStartPos; }; |
|
34 TPoint CurrentPos() const { return iCurrPos; }; |
|
35 TRealPoint Speed() const { return iSpeed; }; |
|
36 TRealPoint SpeedPercent( const TRect& /*aEdges*/ ) const { return iSpeedPercent; }; |
|
37 TPoint Distance() const { return iDistance; }; |
|
38 CAlfVisual* Visual() const { return iVisual; }; |
|
39 |
|
40 |
|
41 TGestureCode iCode; |
|
42 TBool iIsHolding; |
|
43 TPoint iStartPos; |
|
44 TPoint iCurrPos; |
|
45 TRealPoint iSpeed; |
|
46 TRealPoint iSpeedPercent; |
|
47 TPoint iDistance; |
|
48 CAlfVisual* iVisual; |
|
49 }; |
|
50 } |
|
51 |
|
52 |
|
53 #endif /* GESTUREEVENT_H_ */ |