lvgl.h

API reference for lvgl.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lvgl_private.h

Functions

lv_version_major

Wrapper functions for VERSION macros

 
static int lv_version_major(void)

lv_version_minor

 
static int lv_version_minor(void)

lv_version_patch

 
static int lv_version_patch(void)

lv_version_info

 
static const char * lv_version_info(void)

Macros

LV_VERSION_CHECK

 
#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:

 
#if LV_VERSION_CHECK(6, 0, 0)
    new_func_in_v6();
#endif

Require at least v5.3:

 
#if LV_VERSION_CHECK(5, 3, 0)
    new_feature_from_v5_3();
#endif

Require v5.3.2 bugfixes:

 
#if LV_VERSION_CHECK(5, 3, 2)
    bugfix_in_v5_3_2();
#endif
Parameters
NameDescription
xmajor version to check against
yminor version to check against
zpatch version to check against

Dependencies

Last updated on

On this page