webengine/webkitutils/rt_gesturehelper/src/gesturerecogniser.cpp
branchGCC_SURGE
changeset 76 999a74da228b
parent 0 dd21522fd290
equal deleted inserted replaced
75:cd0e9694f2ef 76:999a74da228b
   180     }
   180     }
   181     
   181     
   182 /** @return last direction of dragging */
   182 /** @return last direction of dragging */
   183 inline TGestureCode LastDirection( const TPointArray& aPoints ) 
   183 inline TGestureCode LastDirection( const TPointArray& aPoints ) 
   184     {
   184     {
   185     TInt latestPointIndex = LatestCertainPointIndex( aPoints, TPointArray::operator[] );
   185     TInt latestPointIndex = LatestCertainPointIndex( aPoints, &TPointArray::operator[] );
   186     if ( KErrNotFound != latestPointIndex )
   186     if ( KErrNotFound != latestPointIndex )
   187         {
   187         {
   188         return Direction( aPoints[latestPointIndex], LastPoint( aPoints ) );
   188         return Direction( aPoints[latestPointIndex], LastPoint( aPoints ) );
   189         }
   189         }
   190     // no points were outside the rect, and hence the direction is unknown
   190     // no points were outside the rect, and hence the direction is unknown
   194 /**
   194 /**
   195  * @return ETrue if points for a tap event
   195  * @return ETrue if points for a tap event
   196  */
   196  */
   197 inline TBool IsTap( const TPointArray& aPoints )
   197 inline TBool IsTap( const TPointArray& aPoints )
   198     {
   198     {
   199     return KErrNotFound == LatestCertainPointIndex( aPoints, TPointArray::Raw );
   199     return KErrNotFound == LatestCertainPointIndex( aPoints, &TPointArray::Raw );
   200     }  
   200     }  
   201     
   201     
   202 // ----------------------------------------------------------------------------
   202 // ----------------------------------------------------------------------------
   203 // Return gesture code of a gesture formed by a sequence of points
   203 // Return gesture code of a gesture formed by a sequence of points
   204 // ----------------------------------------------------------------------------
   204 // ----------------------------------------------------------------------------