# lv_draw_buf_private.h (/api/draw/lv_draw_buf_private_h)



<RelatedHeaders name="lv_draw_buf.h" isPrivate="true" />

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

Functions [#functions]

<ApiMember kind="function" name="lv_draw_buf_init_handlers" file="draw/lv_draw_buf_private.h" line="44" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/lv_draw_buf_private.h#L44">
  lv_draw_buf_init_handlers [#lv_draw_buf_init_handlers]

  Called internally to initialize the draw\_buf\_handlers in lv\_global

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

Structs [#structs]

<ApiMember kind="struct" name="_lv_draw_buf_handlers_t">
  \_lv_draw_buf_handlers_t [#_lv_draw_buf_handlers_t]

  | Member                | Type                                                | Description |
  | --------------------- | --------------------------------------------------- | ----------- |
  | `buf_malloc_cb`       | <ApiLink name="lv_draw_buf_malloc_cb_t" />          |             |
  | `buf_free_cb`         | <ApiLink name="lv_draw_buf_free_cb_t" />            |             |
  | `buf_copy_cb`         | <ApiLink name="lv_draw_buf_copy_cb_t" />            |             |
  | `align_pointer_cb`    | <ApiLink name="lv_draw_buf_align_cb_t" />           |             |
  | `invalidate_cache_cb` | <ApiLink name="lv_draw_buf_cache_operation_cb_t" /> |             |
  | `flush_cache_cb`      | <ApiLink name="lv_draw_buf_cache_operation_cb_t" /> |             |
  | `width_to_stride_cb`  | <ApiLink name="lv_draw_buf_width_to_stride_cb_t" /> |             |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_draw_buf.h&#x22;]" includedBy="[&#x22;lv_global.h&#x22;, &#x22;lv_draw_nema_gfx.h&#x22;]" transitiveIncludes="[&#x22;lv_area.h&#x22;, &#x22;lv_assert.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_image_dsc.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_types.h&#x22;]" />
