projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[dali_2.3.24] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-toolkit
/
dali-toolkit-test-utils
/
test-gesture-generator.h
diff --git
a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gesture-generator.h
b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gesture-generator.h
index
18051cf
..
cb3b1a6
100644
(file)
--- a/
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gesture-generator.h
+++ b/
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gesture-generator.h
@@
-2,7
+2,7
@@
#define DALI_TEST_GESTURE_GENERATOR_H
/*
#define DALI_TEST_GESTURE_GENERATOR_H
/*
- * Copyright (c) 20
19
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
21
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-34,94
+34,99
@@
uint32_t TestGetFrameInterval();
/**
* Produces the initial touch of a long press
*/
/**
* Produces the initial touch of a long press
*/
-void TestStartLongPress(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time = 450
);
+void TestStartLongPress(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time = 450
);
/**
* Triggers the timer to begin a long press gesture
*/
/**
* Triggers the timer to begin a long press gesture
*/
-void TestTriggerLongPress(
TestApplication& application
);
+void TestTriggerLongPress(
TestApplication& application
);
/**
* Produces the initial press and triggers the timer to begin a long press gesture
*/
/**
* Produces the initial press and triggers the timer to begin a long press gesture
*/
-void TestGenerateLongPress(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time = 450
);
+void TestGenerateLongPress(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time = 450
);
/**
* End a long press by lifting the touch
*/
/**
* End a long press by lifting the touch
*/
-void TestEndLongPress(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time = 450
);
+void TestEndLongPress(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time = 450
);
/**
* Produces a vertical pinch gesture between (20,20) and (20,90)
*/
/**
* Produces a vertical pinch gesture between (20,20) and (20,90)
*/
-void TestGeneratePinch(
TestApplication& application
);
+void TestGeneratePinch(
TestApplication& application
);
/**
* Produces the gesture started event of a pinch, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
/**
* Produces the gesture started event of a pinch, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
-void TestStartPinch(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
+void TestStartPinch(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
/**
* Produces a gesture continuing event of a pinch, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
/**
* Produces a gesture continuing event of a pinch, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
-void TestContinuePinch(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
+void TestContinuePinch(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
/**
* Produces a gesture finished event of a pinch, using 2 touches, 50ms apart
*/
/**
* Produces a gesture finished event of a pinch, using 2 touches, 50ms apart
*/
-void TestEndPinch(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
+void TestEndPinch(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
/**
* Produces a pan gesture from (20,20) to (20,40)
*/
/**
* Produces a pan gesture from (20,20) to (20,40)
*/
-void TestGenerateMiniPan(
TestApplication& application
);
+void TestGenerateMiniPan(
TestApplication& application
);
/**
* Produces the start event of a pan gesture, assuming minimum distance moved between start and end is greater than 15
* in either direction or 11 in both (x&y). Time will be incremented using the standard frame interval per touch movement
*/
/**
* Produces the start event of a pan gesture, assuming minimum distance moved between start and end is greater than 15
* in either direction or 11 in both (x&y). Time will be incremented using the standard frame interval per touch movement
*/
-void TestStartPan(
TestApplication& application, Vector2 start, Vector2 end, uint32_t& time
);
+void TestStartPan(
TestApplication& application, Vector2 start, Vector2 end, uint32_t& time
);
/**
* Continues a pan event by creating a single touch at pos.
* N.B This does not increment the time
*/
/**
* Continues a pan event by creating a single touch at pos.
* N.B This does not increment the time
*/
-void TestMovePan(
TestApplication& application, Vector2 pos, uint32_t time = 400);
+void TestMovePan(TestApplication& application, Vector2 pos, uint32_t time = 400);
/**
* End a pan gesture at position pos
*/
/**
* End a pan gesture at position pos
*/
-void TestEndPan( TestApplication& application, Vector2 pos, uint32_t time = 500);
+void TestEndPan(TestApplication& application, Vector2 pos, uint32_t time = 500);
+
+/**
+ * Triggers the timer to begin a tap gesture
+ */
+void TestTriggerTap(TestApplication& application);
/**
* Produces a single point tap gesture with a 20ms interval
*/
/**
* Produces a single point tap gesture with a 20ms interval
*/
-void TestGenerateTap(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time_down = 100
);
+void TestGenerateTap(
TestApplication& application, float x = 20.0f, float y = 20.0f, uint32_t time_down = 100
);
/**
* Produce a tap gesture with two touch points and a 20ms interval
*/
/**
* Produce a tap gesture with two touch points and a 20ms interval
*/
-void TestGenerateTwoPointTap(
TestApplication& application, float x1, float y1, float x2, float y2, uint32_t time_down
);
+void TestGenerateTwoPointTap(
TestApplication& application, float x1, float y1, float x2, float y2, uint32_t time_down
);
/**
* Produces a rotation gesture.
*/
/**
* Produces a rotation gesture.
*/
-void TestGenerateRotation(
TestApplication& application
);
+void TestGenerateRotation(
TestApplication& application
);
/**
* Produces the gesture started event of a rotation, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
/**
* Produces the gesture started event of a rotation, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
-void TestStartRotation(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
+void TestStartRotation(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
/**
* Produces a gesture continuing event of a rotation, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
/**
* Produces a gesture continuing event of a rotation, using 4 touches, 50ms apart, starting with 1, ending at 2
*/
-void TestContinueRotation(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
+void TestContinueRotation(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
/**
* Produces a gesture finished event of a rotation, using 2 touches, 50ms apart
*/
/**
* Produces a gesture finished event of a rotation, using 2 touches, 50ms apart
*/
-void TestEndRotation(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
+void TestEndRotation(
TestApplication& application, Vector2 a1, Vector2 b1, Vector2 a2, Vector2 b2, uint32_t time
);
} // namespace Dali
} // namespace Dali