mulwidgets/gesturehelper/src/utils.h
changeset 0 e83bab7cf002
equal deleted inserted replaced
-1:000000000000 0:e83bab7cf002
       
     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 "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 recognition utilities
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _GESTURE_UTILS_H_
       
    19 #define _GESTURE_UTILS_H_
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <gestureobserver.h>
       
    23 
       
    24 namespace GestureHelper
       
    25     {
       
    26       
       
    27     /**
       
    28      * @return the a rectange in which dragging will be ignored. Tolerance rect 
       
    29      *         represents a rectange within which any movement will not be considered
       
    30      *         intentional, but as accidental stylus movement.
       
    31      */
       
    32     TRect ToleranceRect( const TPoint& aCenterPoint ); 
       
    33     
       
    34     /**
       
    35      * @return the a rectange in which dragging will be ignored. Tolerance rect 
       
    36      *         represents a rectange within which any movement will not be considered
       
    37      *         as drag, This depends on the Axis.
       
    38      * For Example, any movement within a vertical strip at the point of touch down is
       
    39      *		if the interested Axis is Horizontal axis.
       
    40      */
       
    41     TRect ToleranceRect( const TPoint& aCenterPoint, MGestureEvent::TAxis aRelevantAxis );
       
    42 
       
    43     } // namespace GestureHelper
       
    44 
       
    45 #endif // _GESTURE_UTILS_H_