lv_test_indev_gesture.h
API reference for lv_test_indev_gesture.h
Summary
Functions
lv_test_gesture_set_pinch_data
Set two touch points data for pinch gesture
void lv_test_gesture_set_pinch_data(lv_point_t point_0, lv_point_t point_1)| Name | Type | Description |
|---|---|---|
point_0 | lv_point_t | First touch point coordinates |
point_1 | lv_point_t | Second touch point coordinates |
lv_test_indev_get_gesture_indev
Get one of the indev created in lv_test_indev_gesture_create
lv_indev_t * lv_test_indev_get_gesture_indev(lv_indev_type_t type)| Name | Type | Description |
|---|---|---|
type | lv_indev_type_t | type of the indev to get |
Returns: lv_indev_t * — the indev
lv_test_indev_gesture_create
Create a touch (pointer) indevs. They can be controlled via function calls during the test
void lv_test_indev_gesture_create(void)lv_test_indev_gesture_delete
Delete the touch (pointer) indevs.
void lv_test_indev_gesture_delete(void)lv_test_gesture_pinch_press
Trigger press state of pinch gesture (both touch points pressed)
void lv_test_gesture_pinch_press(void)lv_test_gesture_pinch_release
Trigger release state of pinch gesture (both touch points released)
void lv_test_gesture_pinch_release(void)lv_test_gesture_pinch
Simulate a complete pinch gesture operation
void lv_test_gesture_pinch(lv_point_t point_begin_0, lv_point_t point_begin_1, lv_point_t point_end_0, lv_point_t point_end_1)| Name | Type | Description |
|---|---|---|
point_begin_0 | lv_point_t | Starting coordinates of first touch point |
point_begin_1 | lv_point_t | Starting coordinates of second touch point |
point_end_0 | lv_point_t | Ending coordinates of first touch point |
point_end_1 | lv_point_t | Ending coordinates of second touch point |
Dependencies
Last updated on