From abdaa4c6af54c95ce82e41026e71bee2b604c87a Mon Sep 17 00:00:00 2001 From: Karim Date: Mon, 16 Jan 2023 09:28:44 +0100 Subject: [PATCH] chore(lvgl): add the new lv_layouts.h header file (#3927) --- lvgl.h | 4 ++-- src/layouts/lv_layouts.h | 43 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 src/layouts/lv_layouts.h diff --git a/lvgl.h b/lvgl.h index 2edbb0279..1e203d8c1 100644 --- a/lvgl.h +++ b/lvgl.h @@ -95,8 +95,8 @@ extern "C" { #include "src/libs/rlottie/lv_rlottie.h" #include "src/libs/ffmpeg/lv_ffmpeg.h" #include "src/libs/tiny_ttf/lv_tiny_ttf.h" -#include "src/layouts/flex/lv_flex.h" -#include "src/layouts/grid/lv_grid.h" + +#include "src/layouts/lv_layouts.h" #include "src/draw/lv_draw.h" diff --git a/src/layouts/lv_layouts.h b/src/layouts/lv_layouts.h new file mode 100644 index 000000000..77a4c7770 --- /dev/null +++ b/src/layouts/lv_layouts.h @@ -0,0 +1,43 @@ +/** + * @file lv_layouts.h + * + */ + +#ifndef LV_LAYOUTS_H +#define LV_LAYOUTS_H + +#ifdef __cplusplus +extern "C" { +#endif + +/********************* + * INCLUDES + *********************/ +#if LV_USE_FLEX +#include "flex/lv_flex.h" +#endif /* LV_USE_FLEX */ +#if LV_USE_GRID +#include "grid/lv_grid.h" +#endif /* LV_USE_GRID */ + +/********************* + * DEFINES + *********************/ + +/********************** + * TYPEDEFS + **********************/ + +/********************** + * GLOBAL PROTOTYPES + **********************/ + +/********************** + * MACROS + **********************/ + +#ifdef __cplusplus +} /*extern "C"*/ +#endif + +#endif /*LV_LAYOUTS_H*/