| 
    Kodi Documentation 18.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
Interface defining methods to perform gesture recognition. More...
#include <IGenericTouchGestureDetector.h>
  
Public Member Functions | |
| IGenericTouchGestureDetector (ITouchActionHandler *handler, float dpi) | |
| ~IGenericTouchGestureDetector () override=default | |
| bool | IsDone () | 
| Check whether the gesture recognition is finished or not.  More... | |
| virtual bool | OnTouchDown (unsigned int index, const Pointer &pointer)=0 | 
| A new touch pointer has been recognised.  More... | |
| virtual bool | OnTouchUp (unsigned int index, const Pointer &pointer) | 
| An active touch pointer has vanished.  More... | |
| virtual bool | OnTouchMove (unsigned int index, const Pointer &pointer) | 
| An active touch pointer has moved.  More... | |
| virtual bool | OnTouchUpdate (unsigned int index, const Pointer &pointer) | 
| An active touch pointer's values have been updated but no event has occured.  More... | |
  Public Member Functions inherited from ITouchInputHandling | |
| ITouchInputHandling () | |
| ~ITouchInputHandling () override=default | |
| void | RegisterHandler (ITouchActionHandler *touchHandler) | 
| Register a touch input handler.  More... | |
| void | UnregisterHandler () | 
| Unregister the previously registered touch handler.  More... | |
Static Public Attributes | |
| static constexpr int | MAX_POINTERS = 2 | 
Protected Attributes | |
| bool | m_done | 
| Whether the gesture recognition is finished or not.  More... | |
| float | m_dpi | 
| DPI value of the touch screen.  More... | |
| std::array< Pointer, MAX_POINTERS > | m_pointers | 
| Local list of all known touch pointers.  More... | |
Additional Inherited Members | |
  Protected Member Functions inherited from ITouchInputHandling | |
| void | OnTouchAbort () override | 
| A touch action has been aborted.  More... | |
| bool | OnSingleTouchStart (float x, float y) override | 
| A single touch has started.  More... | |
| bool | OnSingleTouchHold (float x, float y) override | 
| A single touch has been held down for a certain amount of time.  More... | |
| bool | OnSingleTouchMove (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override | 
| A single touch has moved.  More... | |
| bool | OnSingleTouchEnd (float x, float y) override | 
| A single touch has been lifted.  More... | |
| bool | OnMultiTouchDown (float x, float y, int32_t pointer) override | 
| An additional touch has been performed.  More... | |
| bool | OnMultiTouchHold (float x, float y, int32_t pointers=2) override | 
| Multiple simultaneous touches have been held down for a certain amount of time.  More... | |
| bool | OnMultiTouchMove (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY, int32_t pointer) override | 
| A touch has moved.  More... | |
| bool | OnMultiTouchUp (float x, float y, int32_t pointer) override | 
| A touch has been lifted (but there are still active touches)  More... | |
| bool | OnTouchGestureStart (float x, float y) override | 
| A pan gesture with a single touch has been started.  More... | |
| bool | OnTouchGesturePan (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override | 
| A pan gesture with a single touch is in progress.  More... | |
| bool | OnTouchGestureEnd (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override | 
| A pan gesture with a single touch has ended.  More... | |
| void | OnTap (float x, float y, int32_t pointers=1) override | 
| A tap with a one or more touches has been performed.  More... | |
| void | OnLongPress (float x, float y, int32_t pointers=1) override | 
| One or more touches have been held down for a certain amount of time.  More... | |
| void | OnSwipe (TouchMoveDirection direction, float xDown, float yDown, float xUp, float yUp, float velocityX, float velocityY, int32_t pointers=1) override | 
| One or more touches has been moved quickly in a single direction in a short time.  More... | |
| void | OnZoomPinch (float centerX, float centerY, float zoomFactor) override | 
| Two simultaneous touches have been held down and moved to perform a zooming/pinching gesture.  More... | |
| void | OnRotate (float centerX, float centerY, float angle) override | 
| Two simultaneous touches have been held down and moved to perform a rotating gesture.  More... | |
  Protected Member Functions inherited from ITouchActionHandler | |
| virtual | ~ITouchActionHandler ()=default | 
Interface defining methods to perform gesture recognition.
      
  | 
  inline | 
      
  | 
  overridedefault | 
      
  | 
  inline | 
Check whether the gesture recognition is finished or not.
      
  | 
  pure virtual | 
A new touch pointer has been recognised.
| index | Index of the given touch pointer | 
| pointer | Touch pointer that has changed | 
Implemented in CGenericTouchPinchDetector, CGenericTouchRotateDetector, and CGenericTouchSwipeDetector.
      
  | 
  inlinevirtual | 
An active touch pointer has moved.
| index | Index of the given touch pointer | 
| pointer | Touch pointer that has changed | 
Reimplemented in CGenericTouchPinchDetector, CGenericTouchRotateDetector, and CGenericTouchSwipeDetector.
      
  | 
  inlinevirtual | 
An active touch pointer has vanished.
If the first touch pointer is lifted and there are more active touch pointers, the remaining pointers change their index.
| index | Index of the given touch pointer | 
| pointer | Touch pointer that has changed | 
Reimplemented in CGenericTouchPinchDetector, CGenericTouchRotateDetector, and CGenericTouchSwipeDetector.
      
  | 
  inlinevirtual | 
An active touch pointer's values have been updated but no event has occured.
| index | Index of the given touch pointer | 
| pointer | Touch pointer that has changed | 
Reimplemented in CGenericTouchRotateDetector, and CGenericTouchSwipeDetector.
      
  | 
  protected | 
Whether the gesture recognition is finished or not.
      
  | 
  protected | 
DPI value of the touch screen.
      
  | 
  protected | 
Local list of all known touch pointers.
      
  | 
  staticconstexpr |