# lv_vg_lite_stroke.h (/api/private/draw/vg_lite/lv_vg_lite_stroke_h)



<ApiSummary functions="5" />

Functions [#functions]

<ApiTabs items="[&#x22;Getters (2)&#x22;,&#x22;Other (3)&#x22;]">
  <ApiTab value="Getters (2)">
    <ApiMember kind="function" name="lv_vg_lite_stroke_get" file="private/draw/vg_lite/lv_vg_lite_stroke.h" line="59" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/draw/vg_lite/lv_vg_lite_stroke.h#L59">
      lv_vg_lite_stroke_get [#lv_vg_lite_stroke_get]

      Get the stroke cache entry

      ```c title=" " lineNumbers=1
      lv_cache_entry_t * lv_vg_lite_stroke_get(struct _lv_draw_vg_lite_unit_t *unit, struct _lv_vg_lite_path_t *path, const lv_vector_stroke_dsc_t *dsc)
      ```

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

      | Name   | Type                                                                                  | Description                      |
      | ------ | ------------------------------------------------------------------------------------- | -------------------------------- |
      | `unit` | <ApiLink name="_lv_draw_vg_lite_unit_t" display="struct _lv_draw_vg_lite_unit_t *" /> | pointer to the unit              |
      | `path` | `struct _lv_vg_lite_path_t *`                                                         | pointer to the path              |
      | `dsc`  | <ApiLink name="lv_vector_stroke_dsc_t" display="const lv_vector_stroke_dsc_t *" />    | pointer to the stroke descriptor |

      **Returns:** <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> — pointer to the stroke cache entry
    </ApiMember>

    <ApiMember kind="function" name="lv_vg_lite_stroke_get_path" file="private/draw/vg_lite/lv_vg_lite_stroke.h" line="68" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/draw/vg_lite/lv_vg_lite_stroke.h#L68">
      lv_vg_lite_stroke_get_path [#lv_vg_lite_stroke_get_path]

      Get the path of a stroke

      ```c title=" " lineNumbers=1
      struct _lv_vg_lite_path_t * lv_vg_lite_stroke_get_path(lv_cache_entry_t *cache_entry)
      ```

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

      | Name          | Type                                                             | Description                       |
      | ------------- | ---------------------------------------------------------------- | --------------------------------- |
      | `cache_entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> | pointer to the stroke cache entry |

      **Returns:** `struct _lv_vg_lite_path_t *` — pointer to the path
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (3)">
    <ApiMember kind="function" name="lv_vg_lite_stroke_init" file="private/draw/vg_lite/lv_vg_lite_stroke.h" line="44" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/draw/vg_lite/lv_vg_lite_stroke.h#L44">
      lv_vg_lite_stroke_init [#lv_vg_lite_stroke_init]

      Initialize the stroke module

      ```c title=" " lineNumbers=1
      void lv_vg_lite_stroke_init(struct _lv_draw_vg_lite_unit_t *unit, uint32_t cache_cnt)
      ```

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

      | Name        | Type                                                                                  | Description                                             |
      | ----------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------- |
      | `unit`      | <ApiLink name="_lv_draw_vg_lite_unit_t" display="struct _lv_draw_vg_lite_unit_t *" /> | pointer to the unit                                     |
      | `cache_cnt` | `uint32_t`                                                                            | maximum amount of entries in the cache at the same time |
    </ApiMember>

    <ApiMember kind="function" name="lv_vg_lite_stroke_deinit" file="private/draw/vg_lite/lv_vg_lite_stroke.h" line="50" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/draw/vg_lite/lv_vg_lite_stroke.h#L50">
      lv_vg_lite_stroke_deinit [#lv_vg_lite_stroke_deinit]

      Deinitialize the stroke module

      ```c title=" " lineNumbers=1
      void lv_vg_lite_stroke_deinit(struct _lv_draw_vg_lite_unit_t *unit)
      ```

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

      | Name   | Type                                                                                  | Description         |
      | ------ | ------------------------------------------------------------------------------------- | ------------------- |
      | `unit` | <ApiLink name="_lv_draw_vg_lite_unit_t" display="struct _lv_draw_vg_lite_unit_t *" /> | pointer to the unit |
    </ApiMember>

    <ApiMember kind="function" name="lv_vg_lite_stroke_drop" file="private/draw/vg_lite/lv_vg_lite_stroke.h" line="75" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/draw/vg_lite/lv_vg_lite_stroke.h#L75">
      lv_vg_lite_stroke_drop [#lv_vg_lite_stroke_drop]

      Drop the stroke cache entry

      ```c title=" " lineNumbers=1
      void lv_vg_lite_stroke_drop(struct _lv_draw_vg_lite_unit_t *unit, lv_cache_entry_t *cache_entry)
      ```

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

      | Name          | Type                                                                                  | Description                       |
      | ------------- | ------------------------------------------------------------------------------------- | --------------------------------- |
      | `unit`        | <ApiLink name="_lv_draw_vg_lite_unit_t" display="struct _lv_draw_vg_lite_unit_t *" /> | pointer to the unit               |
      | `cache_entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" />                      | pointer to the stroke cache entry |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_vg_lite_utils.h&#x22;, &#x22;lv_cache_entry.h&#x22;]" includedBy="[&#x22;lvgl_private.h&#x22;]" transitiveIncludes="[&#x22;lv_cache.h&#x22;, &#x22;lv_cache_class.h&#x22;, &#x22;lv_cache_lru_ll.h&#x22;, &#x22;lv_cache_lru_rb.h&#x22;, &#x22;lv_cache_sc_da.h&#x22;, &#x22;lv_image_cache.h&#x22;, &#x22;lv_iter_private.h&#x22;, &#x22;lv_os_private.h&#x22;]" />
