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: Utility funtions |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef _GESTURE_UTILS_H_ |
|
19 #define _GESTURE_UTILS_H_ |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 namespace stmUiEventEngine |
|
24 { |
|
25 |
|
26 /** |
|
27 * @return the rectange in which dragging will be ignored. Tolerance rect |
|
28 * represents a rectange within which any movement will not be considered |
|
29 * intentional, but as accidental stylus movement. |
|
30 */ |
|
31 TRect ToleranceRect( const TPoint& aCenterPoint ); |
|
32 |
|
33 long Twips2Pixels(long twips); |
|
34 long Mm2Pixels(long mm); |
|
35 long Inches2Pixels(double inches); |
|
36 |
|
37 } // namespace stmProto04 |
|
38 |
|
39 #endif // _GESTURE_UTILS_H_ |