# lv_draw_blur.h (/api/draw/lv_draw_blur_h)



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

Functions [#functions]

<ApiTabs items="[&#x22;Getters (1)&#x22;,&#x22;Other (2)&#x22;]">
  <ApiTab value="Getters (1)">
    <ApiMember kind="function" name="lv_draw_task_get_blur_dsc" file="draw/lv_draw_blur.h" line="64" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/lv_draw_blur.h#L64">
      lv_draw_task_get_blur_dsc [#lv_draw_task_get_blur_dsc]

      Try to get a blur draw descriptor from a draw task.

      ```c title=" " lineNumbers=1
      lv_draw_blur_dsc_t * lv_draw_task_get_blur_dsc(lv_draw_task_t *task)
      ```

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

      | Name   | Type                                                         | Description |
      | ------ | ------------------------------------------------------------ | ----------- |
      | `task` | <ApiLink name="lv_draw_task_t" display="lv_draw_task_t *" /> | draw task   |

      **Returns:** <ApiLink name="lv_draw_blur_dsc_t" display="lv_draw_blur_dsc_t *" /> — the task's draw descriptor or NULL if the task is not of type LV\_DRAW\_TASK\_TYPE\_BLUR
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (2)">
    <ApiMember kind="function" name="lv_draw_blur_dsc_init" file="draw/lv_draw_blur.h" line="57" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/lv_draw_blur.h#L57">
      lv_draw_blur_dsc_init [#lv_draw_blur_dsc_init]

      Initialize a blur draw descriptor

      ```c title=" " lineNumbers=1
      void lv_draw_blur_dsc_init(lv_draw_blur_dsc_t *dsc)
      ```

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

      | Name  | Type                                                                 | Description                  |
      | ----- | -------------------------------------------------------------------- | ---------------------------- |
      | `dsc` | <ApiLink name="lv_draw_blur_dsc_t" display="lv_draw_blur_dsc_t *" /> | pointer to a draw descriptor |
    </ApiMember>

    <ApiMember kind="function" name="lv_draw_blur" file="draw/lv_draw_blur.h" line="72" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/lv_draw_blur.h#L72">
      lv_draw_blur [#lv_draw_blur]

      Create a blur draw task

      ```c title=" " lineNumbers=1
      void lv_draw_blur(lv_layer_t *layer, const lv_draw_blur_dsc_t *dsc, const lv_area_t *coords)
      ```

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

      | Name     | Type                                                                       | Description                                                              |
      | -------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
      | `layer`  | <ApiLink name="lv_layer_t" display="lv_layer_t *" />                       | pointer to a layer                                                       |
      | `dsc`    | <ApiLink name="lv_draw_blur_dsc_t" display="const lv_draw_blur_dsc_t *" /> | pointer to an initialized <ApiLink name="lv_draw_blur_dsc_t" /> variable |
      | `coords` | <ApiLink name="lv_area_t" display="const lv_area_t *" />                   | coordinates of the character                                             |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Structs [#structs]

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

  | Member          | Type                                  | Description                               |
  | --------------- | ------------------------------------- | ----------------------------------------- |
  | `base`          | <ApiLink name="lv_draw_dsc_base_t" /> |                                           |
  | `blur_radius`   | <ApiLink name="int32_t" />            | The intensity of blur.                    |
  | `corner_radius` | <ApiLink name="int32_t" />            | The corner radius of the blurred area     |
  | `quality`       | <ApiLink name="lv_blur_quality_t" />  | Sets whether to prefer speed or precision |
</ApiMember>

<TypeUsedBy name="lv_draw_blur_dsc_t" count="4">
  * `lv_obj_init_draw_blur_dsc` — param `draw_dsc`
  * `lv_draw_blur_dsc_init` — param `dsc`
  * `lv_draw_blur` — param `dsc`
  * `lv_draw_sw_blur` — param `dsc`
</TypeUsedBy>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_style.h&#x22;]" includedBy="[&#x22;lv_obj_draw.h&#x22;, &#x22;lv_draw_sw.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_color_op.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_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.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;]" />
