idlehomescreen/xmluirendering/uiengine/inc/xngesture.h
branchRCL_3
changeset 12 9674c1a575e9
parent 0 f72a12da539e
equal deleted inserted replaced
11:ff572dfe6d86 12:9674c1a575e9
   212          * Cheks and returns distance between start and current position
   212          * Cheks and returns distance between start and current position
   213          * 
   213          * 
   214          * @return Distance between two points
   214          * @return Distance between two points
   215          */
   215          */
   216         TPoint Distance() const;
   216         TPoint Distance() const;
       
   217         
       
   218         /**
       
   219          * Checks and returns gesture
       
   220          * 
       
   221          * @param aRelevantAxis See @ref MGestureEvent::Code
       
   222          * @return gesture code by analysing the sequence of points
       
   223          */
       
   224         TXnGestureCode CodeFromPoints( TAxis aRelevantAxis ) const;
       
   225         
       
   226         TXnGestureCode LastDirection( TAxis aRelevantAxis ) const;
   217 
   227 
   218     private:
   228     private:
   219         
   229         
   220         /** Information of an earlier gesture */
   230         /** Information of an earlier gesture */
   221         struct TGestureRecord
   231         struct TGestureRecord
   235             /** completion time fo the gesture */
   245             /** completion time fo the gesture */
   236             TTime iCompletionTime;
   246             TTime iCompletionTime;
   237             /** point of completion */
   247             /** point of completion */
   238             TPoint iPos;
   248             TPoint iPos;
   239             };
   249             };
   240 
       
   241         /**
       
   242          * Checks and returns gesture
       
   243          * 
       
   244          * @param aRelevantAxis See @ref MGestureEvent::Code
       
   245          * @return gesture code by analysing the sequence of points
       
   246          */
       
   247         TXnGestureCode CodeFromPoints( TAxis aRelevantAxis ) const;
       
   248 
   250 
   249         /** 
   251         /** 
   250          * Returns elapsed time
   252          * Returns elapsed time
   251          *
   253          *
   252          * @return elapsed time between the latest and previous points 
   254          * @return elapsed time between the latest and previous points