# lvgl.h (/api/public/lvgl_h)



<RelatedHeaders name="lvgl_private.h" isPrivate="false" />

<ApiSummary functions="4" macros="1" />

Functions [#functions]

<ApiMember kind="function" name="lv_version_major" file="public/lvgl.h" line="259" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/lvgl.h#L259">
  lv_version_major [#lv_version_major]

  Wrapper functions for VERSION macros

  ```c title=" " lineNumbers=1
  static int lv_version_major(void)
  ```
</ApiMember>

<ApiMember kind="function" name="lv_version_minor" file="public/lvgl.h" line="264" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/lvgl.h#L264">
  lv_version_minor [#lv_version_minor]

  ```c title=" " lineNumbers=1
  static int lv_version_minor(void)
  ```
</ApiMember>

<ApiMember kind="function" name="lv_version_patch" file="public/lvgl.h" line="269" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/lvgl.h#L269">
  lv_version_patch [#lv_version_patch]

  ```c title=" " lineNumbers=1
  static int lv_version_patch(void)
  ```
</ApiMember>

<ApiMember kind="function" name="lv_version_info" file="public/lvgl.h" line="274" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/lvgl.h#L274">
  lv_version_info [#lv_version_info]

  ```c title=" " lineNumbers=1
  static const char * lv_version_info(void)
  ```
</ApiMember>

Macros [#macros]

<ApiMember kind="macro" name="LV_VERSION_CHECK" file="public/lvgl.h" line="253" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/lvgl.h#L253">
  LV_VERSION_CHECK [#lv_version_check]

  ```c title=" " lineNumbers=1
  #define LV_VERSION_CHECK(x, y, z) \
      (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH)))
  ```

  Gives 1 if the x.y.z version is supported in the current version

  Usage:

  Require v6:

  ```c title=" " lineNumbers=1
  #if LV_VERSION_CHECK(6, 0, 0)
      new_func_in_v6();
  #endif
  ```

  Require at least v5.3:

  ```c title=" " lineNumbers=1
  #if LV_VERSION_CHECK(5, 3, 0)
      new_feature_from_v5_3();
  #endif
  ```

  Require v5.3.2 bugfixes:

  ```c title=" " lineNumbers=1
  #if LV_VERSION_CHECK(5, 3, 2)
      bugfix_in_v5_3_2();
  #endif
  ```

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

  | Name | Description                    |
  | ---- | ------------------------------ |
  | `x`  | major version to check against |
  | `y`  | minor version to check against |
  | `z`  | patch version to check against |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_version.h&#x22;, &#x22;lv_3dmath.h&#x22;, &#x22;lv_gltf_environment.h&#x22;, &#x22;lv_gltf_model.h&#x22;, &#x22;lv_gltf_model_loader.h&#x22;, &#x22;lv_gltf_model_node.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_anim.h&#x22;, &#x22;lv_anim_timeline.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_init.h&#x22;, &#x22;lv_matrix.h&#x22;, &#x22;lv_obj.h&#x22;, &#x22;lv_obj_class.h&#x22;, &#x22;lv_obj_draw.h&#x22;, &#x22;lv_obj_event.h&#x22;, &#x22;lv_obj_pos.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_property_names.h&#x22;, &#x22;lv_obj_scroll.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_obj_tree.h&#x22;, &#x22;lv_observer.h&#x22;, &#x22;lv_refr.h&#x22;, &#x22;lv_style.h&#x22;, &#x22;lv_style_gen.h&#x22;, &#x22;lv_style_properties.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_translation.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_check_arg.h&#x22;, &#x22;lv_check_obj.h&#x22;, &#x22;lv_monkey.h&#x22;, &#x22;lv_sysmon.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.h&#x22;, &#x22;lv_test.h&#x22;, &#x22;lv_test_display.h&#x22;, &#x22;lv_test_fs.h&#x22;, &#x22;lv_test_helpers.h&#x22;, &#x22;lv_test_indev.h&#x22;, &#x22;lv_test_indev_gesture.h&#x22;, &#x22;lv_test_screenshot_compare.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_3d.h&#x22;, &#x22;lv_draw_arc.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_line.h&#x22;, &#x22;lv_draw_mask.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_triangle.h&#x22;, &#x22;lv_draw_vector.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_snapshot.h&#x22;, &#x22;lv_draw_utils.h&#x22;, &#x22;lv_linux_drm.h&#x22;, &#x22;lv_draw_eve_display.h&#x22;, &#x22;lv_draw_eve_display_defines.h&#x22;, &#x22;lv_draw_eve_target.h&#x22;, &#x22;lv_linux_fbdev.h&#x22;, &#x22;lv_ft81x.h&#x22;, &#x22;lv_ili9341.h&#x22;, &#x22;lv_lcd_generic_mipi.h&#x22;, &#x22;lv_lovyan_gfx.h&#x22;, &#x22;lv_nv3007.h&#x22;, &#x22;lv_nxp_elcdif.h&#x22;, &#x22;lv_renesas_glcdc.h&#x22;, &#x22;lv_st7735.h&#x22;, &#x22;lv_st7789.h&#x22;, &#x22;lv_st7796.h&#x22;, &#x22;lv_st_ltdc.h&#x22;, &#x22;lv_tft_espi.h&#x22;, &#x22;lv_evdev.h&#x22;, &#x22;lv_libinput.h&#x22;, &#x22;lv_xkb.h&#x22;, &#x22;lv_nuttx_entry.h&#x22;, &#x22;lv_nuttx_fbdev.h&#x22;, &#x22;lv_nuttx_lcd.h&#x22;, &#x22;lv_nuttx_libuv.h&#x22;, &#x22;lv_nuttx_touchscreen.h&#x22;, &#x22;lv_opengles_driver.h&#x22;, &#x22;lv_opengles_glfw.h&#x22;, &#x22;lv_opengles_texture.h&#x22;, &#x22;lv_opengles_window.h&#x22;, &#x22;lv_qnx.h&#x22;, &#x22;lv_sdl_keyboard.h&#x22;, &#x22;lv_sdl_mouse.h&#x22;, &#x22;lv_sdl_mousewheel.h&#x22;, &#x22;lv_sdl_window.h&#x22;, &#x22;lv_uefi.h&#x22;, &#x22;lv_uefi_context.h&#x22;, &#x22;lv_uefi_display.h&#x22;, &#x22;lv_uefi_edk2.h&#x22;, &#x22;lv_uefi_gnu_efi.h&#x22;, &#x22;lv_uefi_indev.h&#x22;, &#x22;lv_wayland.h&#x22;, &#x22;lv_wayland_keyboard.h&#x22;, &#x22;lv_wayland_pointer.h&#x22;, &#x22;lv_wayland_pointer_axis.h&#x22;, &#x22;lv_wayland_touch.h&#x22;, &#x22;lv_wayland_window.h&#x22;, &#x22;lv_windows_display.h&#x22;, &#x22;lv_windows_input.h&#x22;, &#x22;lv_x11.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_binfont_loader.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_font_fmt_txt.h&#x22;, &#x22;lv_font_manager.h&#x22;, &#x22;lv_freetype.h&#x22;, &#x22;lv_imgfont.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_tiny_ttf.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_fsdrv.h&#x22;, &#x22;lv_bin_decoder.h&#x22;, &#x22;lv_bmp.h&#x22;, &#x22;lv_libjpeg_turbo.h&#x22;, &#x22;lv_libpng.h&#x22;, &#x22;lv_libwebp.h&#x22;, &#x22;lv_lodepng.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_svg.h&#x22;, &#x22;lv_tjpgd.h&#x22;, &#x22;lv_gridnav.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;lv_indev_gesture.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_types.h&#x22;, &#x22;lv_async.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_os.h&#x22;, &#x22;lv_file_explorer.h&#x22;, &#x22;lv_fragment.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_theme.h&#x22;, &#x22;lv_theme_default.h&#x22;, &#x22;lv_theme_mono.h&#x22;, &#x22;lv_theme_simple.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_3dtexture.h&#x22;, &#x22;lv_animimage.h&#x22;, &#x22;lv_arc.h&#x22;, &#x22;lv_arclabel.h&#x22;, &#x22;lv_bar.h&#x22;, &#x22;lv_barcode.h&#x22;, &#x22;lv_button.h&#x22;, &#x22;lv_buttonmatrix.h&#x22;, &#x22;lv_calendar.h&#x22;, &#x22;lv_calendar_chinese.h&#x22;, &#x22;lv_calendar_header_arrow.h&#x22;, &#x22;lv_calendar_header_dropdown.h&#x22;, &#x22;lv_canvas.h&#x22;, &#x22;lv_chart.h&#x22;, &#x22;lv_checkbox.h&#x22;, &#x22;lv_dropdown.h&#x22;, &#x22;lv_ffmpeg.h&#x22;, &#x22;lv_gif.h&#x22;, &#x22;lv_gltf.h&#x22;, &#x22;lv_gstreamer.h&#x22;, &#x22;lv_image.h&#x22;, &#x22;lv_imagebutton.h&#x22;, &#x22;lv_ime_pinyin.h&#x22;, &#x22;lv_keyboard.h&#x22;, &#x22;lv_label.h&#x22;, &#x22;lv_led.h&#x22;, &#x22;lv_line.h&#x22;, &#x22;lv_list.h&#x22;, &#x22;lv_lottie.h&#x22;, &#x22;lv_menu.h&#x22;, &#x22;lv_msgbox.h&#x22;, &#x22;lv_qrcode.h&#x22;, &#x22;lv_rlottie.h&#x22;, &#x22;lv_roller.h&#x22;, &#x22;lv_scale.h&#x22;, &#x22;lv_slider.h&#x22;, &#x22;lv_span.h&#x22;, &#x22;lv_spinbox.h&#x22;, &#x22;lv_spinner.h&#x22;, &#x22;lv_switch.h&#x22;, &#x22;lv_table.h&#x22;, &#x22;lv_tabview.h&#x22;, &#x22;lv_textarea.h&#x22;, &#x22;lv_tileview.h&#x22;, &#x22;lv_win.h&#x22;, &#x22;lv_api_map_v8.h&#x22;, &#x22;lv_api_map_v9_0.h&#x22;, &#x22;lv_api_map_v9_1.h&#x22;, &#x22;lv_api_map_v9_2.h&#x22;, &#x22;lv_api_map_v9_3.h&#x22;, &#x22;lv_api_map_v9_4.h&#x22;, &#x22;lv_api_map_v9_5.h&#x22;]" includedBy="[&#x22;lvgl_public.h&#x22;]" />
