lv_test_indev_gesture.h

Functions

void lv_test_indev_gesture_create(void)

Create a touch (pointer) indevs. They can be controlled via function calls during the test

lv_indev_t *lv_test_indev_get_gesture_indev(lv_indev_type_t type)

Get one of the indev created in lv_test_indev_gesture_create

Parameters:

type – type of the indev to get

Returns:

the indev

void lv_test_gesture_set_pinch_data(lv_point_t point_0, lv_point_t point_1)

Set two touch points data for pinch gesture

Parameters:
  • point_0 – First touch point coordinates

  • point_1 – Second touch point coordinates

void lv_test_gesture_pinch_press(void)

Trigger press state of pinch gesture (both touch points pressed)

void lv_test_gesture_pinch_release(void)

Trigger release state of pinch gesture (both touch points released)

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)

Simulate a complete pinch gesture operation

Parameters:
  • point_begin_0 – Starting coordinates of first touch point

  • point_begin_1 – Starting coordinates of second touch point

  • point_end_0 – Ending coordinates of first touch point

  • point_end_1 – Ending coordinates of second touch point