Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Convenience interface implementing ITouchActionHandler with an implementation that forwards any ITouchActionHandler-related calls to a previously registered ITouchActionHandler. More...
#include <ITouchInputHandling.h>
Public Member Functions | |
ITouchInputHandling () | |
~ITouchInputHandling () override=default | |
void | RegisterHandler (ITouchActionHandler *touchHandler) |
Register a touch input handler. | |
void | UnregisterHandler () |
Unregister the previously registered touch handler. | |
Protected Member Functions | |
void | OnTouchAbort () override |
A touch action has been aborted. | |
bool | OnSingleTouchStart (float x, float y) override |
A single touch has started. | |
bool | OnSingleTouchHold (float x, float y) override |
A single touch has been held down for a certain amount of time. | |
bool | OnSingleTouchMove (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override |
A single touch has moved. | |
bool | OnSingleTouchEnd (float x, float y) override |
A single touch has been lifted. | |
bool | OnMultiTouchDown (float x, float y, int32_t pointer) override |
An additional touch has been performed. | |
bool | OnMultiTouchHold (float x, float y, int32_t pointers=2) override |
Multiple simultaneous touches have been held down for a certain amount of time. | |
bool | OnMultiTouchMove (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY, int32_t pointer) override |
A touch has moved. | |
bool | OnMultiTouchUp (float x, float y, int32_t pointer) override |
A touch has been lifted (but there are still active touches) | |
bool | OnTouchGestureStart (float x, float y) override |
A pan gesture with a single touch has been started. | |
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. | |
bool | OnTouchGestureEnd (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override |
A pan gesture with a single touch has ended. | |
void | OnTap (float x, float y, int32_t pointers=1) override |
A tap with a one or more touches has been performed. | |
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. | |
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. | |
void | OnZoomPinch (float centerX, float centerY, float zoomFactor) override |
Two simultaneous touches have been held down and moved to perform a zooming/pinching gesture. | |
void | OnRotate (float centerX, float centerY, float angle) override |
Two simultaneous touches have been held down and moved to perform a rotating gesture. | |
Protected Member Functions inherited from ITouchActionHandler | |
virtual | ~ITouchActionHandler ()=default |
Convenience interface implementing ITouchActionHandler with an implementation that forwards any ITouchActionHandler-related calls to a previously registered ITouchActionHandler.
|
inline |
|
overridedefault |
|
overrideprotectedvirtual |
One or more touches have been held down for a certain amount of time.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointers | The number of pointers involved (default 1) |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
An additional touch has been performed.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointer | The pointer that has performed the touch |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
Multiple simultaneous touches have been held down for a certain amount of time.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointers | The number of pointers involved (default 2) |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A touch has moved.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
pointer | The pointer that has performed the touch |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A touch has been lifted (but there are still active touches)
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointer | The pointer that has performed the touch |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
Two simultaneous touches have been held down and moved to perform a rotating gesture.
centerX | The x coordinate (with sub-pixel) of the center of the two touches |
centerY | The y coordinate (with sub-pixel) of the center of the two touches |
angle | The clockwise angle in degrees of the rotation |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A single touch has been lifted.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A single touch has been held down for a certain amount of time.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A single touch has moved.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A single touch has started.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
One or more touches has been moved quickly in a single direction in a short time.
direction | The direction (left, right, up, down) of the swipe gesture |
xDown | The x coordinate (with sub-pixel) of the first touch |
yDown | The y coordinate (with sub-pixel) of the first touch |
xUp | The x coordinate (with sub-pixel) of the last touch |
yUp | The y coordinate (with sub-pixel) of the last touch |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
pointers | The number of pointers involved (default 1) |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A tap with a one or more touches has been performed.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointers | The number of pointers involved (default 1) |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A touch action has been aborted.
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A pan gesture with a single touch has ended.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A pan gesture with a single touch is in progress.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
A pan gesture with a single touch has been started.
x | The x coordinate (with sub-pixel) of the initial touch |
y | The y coordinate (with sub-pixel) of the initial touch |
Reimplemented from ITouchActionHandler.
|
overrideprotectedvirtual |
Two simultaneous touches have been held down and moved to perform a zooming/pinching gesture.
centerX | The x coordinate (with sub-pixel) of the center of the two touches |
centerY | The y coordinate (with sub-pixel) of the center of the two touches |
zoomFactor | The zoom (> 1.0) or pinch (< 1.0) factor of the two touches |
Reimplemented from ITouchActionHandler.
void ITouchInputHandling::RegisterHandler | ( | ITouchActionHandler * | touchHandler | ) |
Register a touch input handler.
There can only be one touch input handler.
touchHandler | An instance of a touch handler implementing the ITouchActionHandler interface |
void ITouchInputHandling::UnregisterHandler | ( | ) |
Unregister the previously registered touch handler.