# lv_test_indev_gesture.h (/api/debugging/test/lv_test_indev_gesture_h)



<ApiSummary functions="7" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (1)&#x22;,&#x22;Getters (1)&#x22;,&#x22;Other (5)&#x22;]">
  <ApiTab value="Setters (1)">
    <ApiMember kind="function" name="lv_test_gesture_set_pinch_data" file="debugging/test/lv_test_indev_gesture.h" line="57" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/debugging/test/lv_test_indev_gesture.h#L57">
      lv_test_gesture_set_pinch_data [#lv_test_gesture_set_pinch_data]

      Set two touch points data for pinch gesture

      ```c title=" " lineNumbers=1
      void lv_test_gesture_set_pinch_data(lv_point_t point_0, lv_point_t point_1)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name      | Type                          | Description                    |
      | --------- | ----------------------------- | ------------------------------ |
      | `point_0` | <ApiLink name="lv_point_t" /> | First touch point coordinates  |
      | `point_1` | <ApiLink name="lv_point_t" /> | Second touch point coordinates |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Getters (1)">
    <ApiMember kind="function" name="lv_test_indev_get_gesture_indev" file="debugging/test/lv_test_indev_gesture.h" line="50" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/debugging/test/lv_test_indev_gesture.h#L50">
      lv_test_indev_get_gesture_indev [#lv_test_indev_get_gesture_indev]

      Get one of the indev created in `lv_test_indev_gesture_create`

      ```c title=" " lineNumbers=1
      lv_indev_t * lv_test_indev_get_gesture_indev(lv_indev_type_t type)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                               | Description              |
      | ------ | ---------------------------------- | ------------------------ |
      | `type` | <ApiLink name="lv_indev_type_t" /> | type of the indev to get |

      **Returns:** <ApiLink name="lv_indev_t" display="lv_indev_t *" /> — the indev
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (5)">
    <ApiMember kind="function" name="lv_test_indev_gesture_create" file="debugging/test/lv_test_indev_gesture.h" line="38" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/debugging/test/lv_test_indev_gesture.h#L38">
      lv_test_indev_gesture_create [#lv_test_indev_gesture_create]

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

      ```c title=" " lineNumbers=1
      void lv_test_indev_gesture_create(void)
      ```
    </ApiMember>

    <ApiMember kind="function" name="lv_test_indev_gesture_delete" file="debugging/test/lv_test_indev_gesture.h" line="43" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/debugging/test/lv_test_indev_gesture.h#L43">
      lv_test_indev_gesture_delete [#lv_test_indev_gesture_delete]

      Delete the touch (pointer) indevs.

      ```c title=" " lineNumbers=1
      void lv_test_indev_gesture_delete(void)
      ```
    </ApiMember>

    <ApiMember kind="function" name="lv_test_gesture_pinch_press" file="debugging/test/lv_test_indev_gesture.h" line="62" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/debugging/test/lv_test_indev_gesture.h#L62">
      lv_test_gesture_pinch_press [#lv_test_gesture_pinch_press]

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

      ```c title=" " lineNumbers=1
      void lv_test_gesture_pinch_press(void)
      ```
    </ApiMember>

    <ApiMember kind="function" name="lv_test_gesture_pinch_release" file="debugging/test/lv_test_indev_gesture.h" line="67" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/debugging/test/lv_test_indev_gesture.h#L67">
      lv_test_gesture_pinch_release [#lv_test_gesture_pinch_release]

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

      ```c title=" " lineNumbers=1
      void lv_test_gesture_pinch_release(void)
      ```
    </ApiMember>

    <ApiMember kind="function" name="lv_test_gesture_pinch" file="debugging/test/lv_test_indev_gesture.h" line="76" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/debugging/test/lv_test_indev_gesture.h#L76">
      lv_test_gesture_pinch [#lv_test_gesture_pinch]

      Simulate a complete pinch gesture operation

      ```c title=" " lineNumbers=1
      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)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name            | Type                          | Description                                |
      | --------------- | ----------------------------- | ------------------------------------------ |
      | `point_begin_0` | <ApiLink name="lv_point_t" /> | Starting coordinates of first touch point  |
      | `point_begin_1` | <ApiLink name="lv_point_t" /> | Starting coordinates of second touch point |
      | `point_end_0`   | <ApiLink name="lv_point_t" /> | Ending coordinates of first touch point    |
      | `point_end_1`   | <ApiLink name="lv_point_t" /> | Ending coordinates of second touch point   |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_types.h&#x22;, &#x22;lv_indev.h&#x22;]" includedBy="[&#x22;lv_test.h&#x22;]" transitiveIncludes="[&#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;]" />
