# lv_global.h (/api/private/core/lv_global_h)



<ApiSummary structs="1" typedefs="1" macros="2" variables="1" />

Structs [#structs]

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

  | Member                                | Type                                                                                | Description                                                                                                                                                                                                                                         |
  | ------------------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `user_data`                           | `void *`                                                                            | User data for the LVGL library. Move from the bottom of the struct to avoid breaking the ABI. E.g., if the user data is used by a closed-source library, this can help to avoid re-compiling the library when the lvgl-related configs are changed. |
  | `inited`                              | `bool`                                                                              |                                                                                                                                                                                                                                                     |
  | `deinit_in_progress`                  | `bool`                                                                              | Can be used e.g. in the LV\_EVENT\_DELETE to deinit the drivers too                                                                                                                                                                                 |
  | `disp_ll`                             | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `disp_refresh`                        | <ApiLink name="lv_display_t" display="lv_display_t *" />                            |                                                                                                                                                                                                                                                     |
  | `disp_default`                        | <ApiLink name="lv_display_t" display="lv_display_t *" />                            |                                                                                                                                                                                                                                                     |
  | `style_trans_ll`                      | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `style_refresh`                       | `bool`                                                                              |                                                                                                                                                                                                                                                     |
  | `blur_obj_cnt`                        | `uint32_t`                                                                          | Number of widgets that currently have blur or a drop shadow (see lv\_obj\_t::has\_blur). If it is zero <ApiLink name="lv_obj_invalidate_expand_blur" display="lv_obj_invalidate_expand_blur()" /> is skipped.                                       |
  | `style_custom_table_size`             | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `style_last_custom_prop_id`           | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `style_custom_prop_flag_lookup_table` | `uint8_t *`                                                                         |                                                                                                                                                                                                                                                     |
  | `group_ll`                            | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `group_default`                       | <ApiLink name="lv_group_t" display="lv_group_t *" />                                |                                                                                                                                                                                                                                                     |
  | `indev_ll`                            | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `indev_active`                        | <ApiLink name="lv_indev_t" display="lv_indev_t *" />                                |                                                                                                                                                                                                                                                     |
  | `indev_obj_active`                    | <ApiLink name="lv_obj_t" display="lv_obj_t *" />                                    |                                                                                                                                                                                                                                                     |
  | `layout_count`                        | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `layout_list`                         | <ApiLink name="lv_layout_dsc_t" display="lv_layout_dsc_t *" />                      |                                                                                                                                                                                                                                                     |
  | `layout_update_mutex`                 | `bool`                                                                              |                                                                                                                                                                                                                                                     |
  | `memory_zero`                         | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `math_rand_seed`                      | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `event_header`                        | <ApiLink name="lv_event_t" display="lv_event_t *" />                                |                                                                                                                                                                                                                                                     |
  | `event_last_register_id`              | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `timer_state`                         | <ApiLink name="lv_timer_state_t" />                                                 |                                                                                                                                                                                                                                                     |
  | `anim_state`                          | <ApiLink name="lv_anim_state_t" />                                                  |                                                                                                                                                                                                                                                     |
  | `tick_state`                          | <ApiLink name="lv_tick_state_t" />                                                  |                                                                                                                                                                                                                                                     |
  | `draw_buf_handlers`                   | <ApiLink name="lv_draw_buf_handlers_t" />                                           |                                                                                                                                                                                                                                                     |
  | `font_draw_buf_handlers`              | <ApiLink name="lv_draw_buf_handlers_t" />                                           |                                                                                                                                                                                                                                                     |
  | `image_cache_draw_buf_handlers`       | <ApiLink name="lv_draw_buf_handlers_t" />                                           | Ensure that all assigned draw buffers can be managed by image cache.                                                                                                                                                                                |
  | `img_decoder_ll`                      | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `img_decoder_info_lock`               | `lv_mutex_t`                                                                        |                                                                                                                                                                                                                                                     |
  | `img_decoder_open_lock`               | `lv_mutex_t`                                                                        |                                                                                                                                                                                                                                                     |
  | `img_cache`                           | <ApiLink name="lv_cache_t" display="lv_cache_t *" />                                |                                                                                                                                                                                                                                                     |
  | `img_header_cache`                    | <ApiLink name="lv_cache_t" display="lv_cache_t *" />                                |                                                                                                                                                                                                                                                     |
  | `draw_info`                           | <ApiLink name="lv_draw_global_info_t" />                                            |                                                                                                                                                                                                                                                     |
  | `draw_sw_blend_handler_ll`            | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `subject_ll`                          | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `sw_circle_cache`                     | <ApiLink name="lv_draw_sw_mask_radius_circle_dsc_arr_t" />                          |                                                                                                                                                                                                                                                     |
  | `custom_log_print_cb`                 | <ApiLink name="lv_log_print_g_cb_t" />                                              |                                                                                                                                                                                                                                                     |
  | `log_last_log_time`                   | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `theme_simple`                        | `void *`                                                                            |                                                                                                                                                                                                                                                     |
  | `theme_default`                       | `void *`                                                                            |                                                                                                                                                                                                                                                     |
  | `theme_mono`                          | `void *`                                                                            |                                                                                                                                                                                                                                                     |
  | `tlsf_state`                          | <ApiLink name="lv_tlsf_state_t" />                                                  |                                                                                                                                                                                                                                                     |
  | `fsdrv_ll`                            | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `stdio_fs_drv`                        | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `posix_fs_drv`                        | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `fatfs_fs_drv`                        | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `win32_fs_drv`                        | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `uefi_fs_drv`                         | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `littlefs_fs_drv`                     | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `arduino_esp_littlefs_fs_drv`         | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `arduino_sd_fs_drv`                   | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `frogfs_fs_drv`                       | <ApiLink name="lv_fs_drv_t" />                                                      |                                                                                                                                                                                                                                                     |
  | `ft_context`                          | <ApiLink name="_lv_freetype_context_t" display="struct _lv_freetype_context_t *" /> |                                                                                                                                                                                                                                                     |
  | `font_fmt_rle`                        | <ApiLink name="lv_font_fmt_rle_t" />                                                |                                                                                                                                                                                                                                                     |
  | `span_snippet_stack`                  | `struct _snippet_stack *`                                                           |                                                                                                                                                                                                                                                     |
  | `profiler_context`                    | `struct _lv_profiler_builtin_ctx_t *`                                               |                                                                                                                                                                                                                                                     |
  | `file_explorer_quick_access_style`    | <ApiLink name="lv_style_t" />                                                       |                                                                                                                                                                                                                                                     |
  | `file_explorer_count`                 | `size_t`                                                                            |                                                                                                                                                                                                                                                     |
  | `sysmon_mem`                          | <ApiLink name="lv_sysmon_backend_data_t" />                                         |                                                                                                                                                                                                                                                     |
  | `ime_cand_len`                        | `size_t`                                                                            |                                                                                                                                                                                                                                                     |
  | `objid_array`                         | `void *`                                                                            |                                                                                                                                                                                                                                                     |
  | `objid_count`                         | `uint32_t`                                                                          |                                                                                                                                                                                                                                                     |
  | `test_state`                          | <ApiLink name="lv_test_state_t" />                                                  |                                                                                                                                                                                                                                                     |
  | `translation_packs_ll`                | <ApiLink name="lv_ll_t" />                                                          |                                                                                                                                                                                                                                                     |
  | `translation_selected_lang`           | `const char *`                                                                      |                                                                                                                                                                                                                                                     |
  | `nuttx_ctx`                           | <ApiLink name="_lv_nuttx_ctx_t" display="struct _lv_nuttx_ctx_t *" />               |                                                                                                                                                                                                                                                     |
  | `lv_general_mutex`                    | `lv_mutex_t`                                                                        |                                                                                                                                                                                                                                                     |
  | `evdev_discovery`                     | <ApiLink name="lv_evdev_discovery_t" display="lv_evdev_discovery_t *" />            |                                                                                                                                                                                                                                                     |
  | `draw_eve_unit`                       | <ApiLink name="lv_draw_eve_unit_t" display="lv_draw_eve_unit_t *" />                |                                                                                                                                                                                                                                                     |
</ApiMember>

Typedefs [#typedefs]

<ApiMember kind="typedef" name="lv_global_t" file="private/core/lv_global.h" line="273" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/core/lv_global.h#L273">
  lv_global_t [#lv_global_t]

  ```c title=" " lineNumbers=1
  typedef struct _lv_global_t lv_global_t
  ```
</ApiMember>

Macros [#macros]

<ApiMember kind="macro" name="ZERO_MEM_SENTINEL" file="private/core/lv_global.h" line="43" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/core/lv_global.h#L43">
  ZERO_MEM_SENTINEL [#zero_mem_sentinel]

  ```c title=" " lineNumbers=1
  #define ZERO_MEM_SENTINEL 0xa1b2c3d4
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLOBAL_DEFAULT" file="private/core/lv_global.h" line="290" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/core/lv_global.h#L290">
  LV_GLOBAL_DEFAULT [#lv_global_default]

  ```c title=" " lineNumbers=1
  #define LV_GLOBAL_DEFAULT() \
      (&lv_global)
  ```
</ApiMember>

Variables [#variables]

<ApiMember kind="variable" name="lv_global" file="private/core/lv_global.h" line="289" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/core/lv_global.h#L289">
  lv_global [#lv_global]

  ```c title=" " lineNumbers=1
  lv_global_t lv_global
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lvgl_public.h&#x22;, &#x22;lv_draw_sw.h&#x22;, &#x22;lv_os_private.h&#x22;, &#x22;lv_tlsf.h&#x22;, &#x22;lv_font_fmt_txt_private.h&#x22;, &#x22;lv_timer_private.h&#x22;, &#x22;lv_anim_private.h&#x22;, &#x22;lv_tick_private.h&#x22;, &#x22;lv_draw_buf_private.h&#x22;, &#x22;lv_draw_private.h&#x22;, &#x22;lv_draw_sw_private.h&#x22;, &#x22;lv_draw_sw_mask_private.h&#x22;, &#x22;lv_tlsf_private.h&#x22;, &#x22;lv_sysmon_private.h&#x22;, &#x22;lv_test_private.h&#x22;, &#x22;lv_layout_private.h&#x22;]" includedBy="[&#x22;lv_draw_eve_private.h&#x22;, &#x22;lvgl_private.h&#x22;]" transitiveIncludes="[&#x22;lv_blend_neon.h&#x22;, &#x22;lv_cache.h&#x22;, &#x22;lv_cache_class.h&#x22;, &#x22;lv_cache_entry.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_draw_sw_blend.h&#x22;, &#x22;lv_draw_sw_blend_neon_to_rgb565.h&#x22;, &#x22;lv_draw_sw_blend_neon_to_rgb888.h&#x22;, &#x22;lv_draw_sw_mask.h&#x22;, &#x22;lv_image_cache.h&#x22;, &#x22;lv_iter_private.h&#x22;]" />
