![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <visualtestutils_p.h>
Public Member Functions | |
PointLerper (QQuickWindow *window, const QPoint &startingPosition=QPoint(0, 0), const QPointingDevice *pointingDevice=QPointingDevice::primaryPointingDevice()) | |
void | move (const QPoint &pos, int steps=10, int delayInMilliseconds=1) |
void | move (int x, int y, int steps=10, int delayInMilliseconds=1) |
Definition at line 60 of file visualtestutils_p.h.
QQuickVisualTestUtils::PointLerper::PointLerper | ( | QQuickWindow * | window, |
const QPoint & | startingPosition = QPoint(0, 0), | ||
const QPointingDevice * | pointingDevice = QPointingDevice::primaryPointingDevice() ) |
Convenience class to linearly interpolate between two pointer move points.
Definition at line 88 of file visualtestutils.cpp.
References PointLerper().
Referenced by PointLerper().
void QQuickVisualTestUtils::PointLerper::move | ( | const QPoint & | pos, |
int | steps = 10, | ||
int | delayInMilliseconds = 1 ) |
Moves from the last pos (or {0, 0} if there have been no calls to this function yet) to pos using linear interpolation over 10 (default value) steps with 1 ms (default value) delays between each step.
Definition at line 104 of file visualtestutils.cpp.
void QQuickVisualTestUtils::PointLerper::move | ( | int | x, |
int | y, | ||
int | steps = 10, | ||
int | delayInMilliseconds = 1 ) |
Definition at line 113 of file visualtestutils.cpp.
References move().
Referenced by move().