# lv_draw_nema_gfx.h (/api/draw/nema_gfx/lv_draw_nema_gfx_h)



MIT License

***

Copyright (c) 2008-24 Think Silicon Single Member PC [#copyright-c-2008-24-think-silicon-single-member-pc]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

<ApiSummary functions="12" structs="1" />

Functions [#functions]

<ApiMember kind="function" name="lv_draw_nema_gfx_init" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="87" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L87">
  lv_draw_nema_gfx_init [#lv_draw_nema_gfx_init]

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

<ApiMember kind="function" name="lv_draw_nema_gfx_deinit" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="89" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L89">
  lv_draw_nema_gfx_deinit [#lv_draw_nema_gfx_deinit]

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

<ApiMember kind="function" name="lv_draw_nema_gfx_fill" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="91" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L91">
  lv_draw_nema_gfx_fill [#lv_draw_nema_gfx_fill]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_fill(lv_draw_task_t *t, const lv_draw_fill_dsc_t *dsc, const lv_area_t *coords)
  ```

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

  | Name     | Type                                                                       |
  | -------- | -------------------------------------------------------------------------- |
  | `t`      | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />               |
  | `dsc`    | <ApiLink name="lv_draw_fill_dsc_t" display="const lv_draw_fill_dsc_t *" /> |
  | `coords` | <ApiLink name="lv_area_t" display="const lv_area_t *" />                   |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_triangle" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="94" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L94">
  lv_draw_nema_gfx_triangle [#lv_draw_nema_gfx_triangle]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_triangle(lv_draw_task_t *t, const lv_draw_triangle_dsc_t *dsc)
  ```

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

  | Name  | Type                                                                               |
  | ----- | ---------------------------------------------------------------------------------- |
  | `t`   | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />                       |
  | `dsc` | <ApiLink name="lv_draw_triangle_dsc_t" display="const lv_draw_triangle_dsc_t *" /> |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_img" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="96" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L96">
  lv_draw_nema_gfx_img [#lv_draw_nema_gfx_img]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_img(lv_draw_task_t *t, const lv_draw_image_dsc_t *dsc, const lv_area_t *coords)
  ```

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

  | Name     | Type                                                                         |
  | -------- | ---------------------------------------------------------------------------- |
  | `t`      | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />                 |
  | `dsc`    | <ApiLink name="lv_draw_image_dsc_t" display="const lv_draw_image_dsc_t *" /> |
  | `coords` | <ApiLink name="lv_area_t" display="const lv_area_t *" />                     |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_label" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="99" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L99">
  lv_draw_nema_gfx_label [#lv_draw_nema_gfx_label]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_label(lv_draw_task_t *t, const lv_draw_label_dsc_t *dsc, const lv_area_t *coords)
  ```

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

  | Name     | Type                                                                         |
  | -------- | ---------------------------------------------------------------------------- |
  | `t`      | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />                 |
  | `dsc`    | <ApiLink name="lv_draw_label_dsc_t" display="const lv_draw_label_dsc_t *" /> |
  | `coords` | <ApiLink name="lv_area_t" display="const lv_area_t *" />                     |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_label_init" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="102" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L102">
  lv_draw_nema_gfx_label_init [#lv_draw_nema_gfx_label_init]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_label_init(lv_draw_unit_t *draw_unit)
  ```

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

  | Name        | Type                                                         |
  | ----------- | ------------------------------------------------------------ |
  | `draw_unit` | <ApiLink name="lv_draw_unit_t" display="lv_draw_unit_t *" /> |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_layer" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="104" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L104">
  lv_draw_nema_gfx_layer [#lv_draw_nema_gfx_layer]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_layer(lv_draw_task_t *t, const lv_draw_image_dsc_t *draw_dsc, const lv_area_t *coords)
  ```

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

  | Name       | Type                                                                         |
  | ---------- | ---------------------------------------------------------------------------- |
  | `t`        | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />                 |
  | `draw_dsc` | <ApiLink name="lv_draw_image_dsc_t" display="const lv_draw_image_dsc_t *" /> |
  | `coords`   | <ApiLink name="lv_area_t" display="const lv_area_t *" />                     |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_line" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="107" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L107">
  lv_draw_nema_gfx_line [#lv_draw_nema_gfx_line]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_line(lv_draw_task_t *t, const lv_draw_line_dsc_t *dsc)
  ```

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

  | Name  | Type                                                                       |
  | ----- | -------------------------------------------------------------------------- |
  | `t`   | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />               |
  | `dsc` | <ApiLink name="lv_draw_line_dsc_t" display="const lv_draw_line_dsc_t *" /> |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_border" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="109" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L109">
  lv_draw_nema_gfx_border [#lv_draw_nema_gfx_border]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_border(lv_draw_task_t *t, const lv_draw_border_dsc_t *dsc, const lv_area_t *coords)
  ```

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

  | Name     | Type                                                                           |
  | -------- | ------------------------------------------------------------------------------ |
  | `t`      | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />                   |
  | `dsc`    | <ApiLink name="lv_draw_border_dsc_t" display="const lv_draw_border_dsc_t *" /> |
  | `coords` | <ApiLink name="lv_area_t" display="const lv_area_t *" />                       |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_arc" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="112" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L112">
  lv_draw_nema_gfx_arc [#lv_draw_nema_gfx_arc]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_arc(lv_draw_task_t *t, const lv_draw_arc_dsc_t *dsc, const lv_area_t *coords)
  ```

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

  | Name     | Type                                                                     |
  | -------- | ------------------------------------------------------------------------ |
  | `t`      | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />             |
  | `dsc`    | <ApiLink name="lv_draw_arc_dsc_t" display="const lv_draw_arc_dsc_t *" /> |
  | `coords` | <ApiLink name="lv_area_t" display="const lv_area_t *" />                 |
</ApiMember>

<ApiMember kind="function" name="lv_draw_nema_gfx_vector" file="draw/nema_gfx/lv_draw_nema_gfx.h" line="116" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nema_gfx/lv_draw_nema_gfx.h#L116">
  lv_draw_nema_gfx_vector [#lv_draw_nema_gfx_vector]

  ```c title=" " lineNumbers=1
  void lv_draw_nema_gfx_vector(lv_draw_task_t *t, const lv_draw_vector_dsc_t *dsc, const lv_area_t *coords)
  ```

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

  | Name     | Type                                                                           |
  | -------- | ------------------------------------------------------------------------------ |
  | `t`      | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" />                   |
  | `dsc`    | <ApiLink name="lv_draw_vector_dsc_t" display="const lv_draw_vector_dsc_t *" /> |
  | `coords` | <ApiLink name="lv_area_t" display="const lv_area_t *" />                       |
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="lv_draw_nema_gfx_unit_t">
  lv_draw_nema_gfx_unit_t [#lv_draw_nema_gfx_unit_t]

  | Member        | Type                                                         | Description                                                                                   |
  | ------------- | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------- |
  | `base_unit`   | <ApiLink name="lv_draw_unit_t" />                            |                                                                                               |
  | `task_act`    | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" /> |                                                                                               |
  | `sync`        | `lv_thread_sync_t`                                           |                                                                                               |
  | `thread`      | `lv_thread_t`                                                |                                                                                               |
  | `inited`      | <ApiLink name="bool" display="volatile bool" />              |                                                                                               |
  | `exit_status` | <ApiLink name="bool" display="volatile bool" />              |                                                                                               |
  | `idx`         | <ApiLink name="uint32_t" />                                  |                                                                                               |
  | `cl`          | `nema_cmdlist_t`                                             |                                                                                               |
  | `paint`       | `void *`                                                     | \< NemaVG handle object (void pointer) \< NemaVG paint handle (pointer to paint object)       |
  | `gradient`    | `void *`                                                     | \< NemaVG handle object (void pointer) \< NemaVG gradient handle (pointer to gradient object) |
  | `path`        | `void *`                                                     | \< NemaVG handle object (void pointer) \< NemaVG path handle (pointer to path object)         |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_draw_nema_gfx_utils.h&#x22;, &#x22;lv_draw_private.h&#x22;, &#x22;lv_draw_buf_private.h&#x22;, &#x22;lv_draw_image_private.h&#x22;, &#x22;lv_image_decoder_private.h&#x22;, &#x22;lv_draw_label_private.h&#x22;, &#x22;lv_draw_mask.h&#x22;, &#x22;lv_draw_rect_private.h&#x22;, &#x22;lv_draw_triangle_private.h&#x22;, &#x22;lv_draw_vector_private.h&#x22;, &#x22;lv_draw_line.h&#x22;, &#x22;lv_draw_arc.h&#x22;, &#x22;lv_area_private.h&#x22;]" includedBy="[&#x22;lv_nema_gfx_path.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_cache.h&#x22;, &#x22;lv_cache_class.h&#x22;, &#x22;lv_cache_entry.h&#x22;, &#x22;lv_cache_instance.h&#x22;, &#x22;lv_cache_lru_ll.h&#x22;, &#x22;lv_cache_lru_rb.h&#x22;, &#x22;lv_cache_private.h&#x22;, &#x22;lv_cache_sc_da.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_blur.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_draw_image.h&#x22;, &#x22;lv_draw_label.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_sw.h&#x22;, &#x22;lv_draw_sw_blend.h&#x22;, &#x22;lv_draw_sw_mask.h&#x22;, &#x22;lv_draw_sw_utils.h&#x22;, &#x22;lv_draw_triangle.h&#x22;, &#x22;lv_draw_vector.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_image_cache.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_image_header_cache.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_os.h&#x22;, &#x22;lv_os_private.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.h&#x22;, &#x22;lv_pthread.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;]" />
