# lv_vg_lite_stroke.h (/api/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="draw/vg_lite/lv_vg_lite_stroke.h" line="56" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/vg_lite/lv_vg_lite_stroke.h#L56">
      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="draw/vg_lite/lv_vg_lite_stroke.h" line="65" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/vg_lite/lv_vg_lite_stroke.h#L65">
      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="draw/vg_lite/lv_vg_lite_stroke.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/vg_lite/lv_vg_lite_stroke.h#L41">
      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` | <ApiLink name="uint32_t" />                                                           |                     |
    </ApiMember>

    <ApiMember kind="function" name="lv_vg_lite_stroke_deinit" file="draw/vg_lite/lv_vg_lite_stroke.h" line="47" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/vg_lite/lv_vg_lite_stroke.h#L47">
      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="draw/vg_lite/lv_vg_lite_stroke.h" line="72" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/vg_lite/lv_vg_lite_stroke.h#L72">
      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 *" />                      |                     |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_vg_lite_utils.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_matrix.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_style.h&#x22;, &#x22;lv_style_gen.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
