From c4ea9db7873575e708f694ab8b58976750ba1f3b Mon Sep 17 00:00:00 2001 From: h13 <61249472+h13-0@users.noreply.github.com> Date: Thu, 22 Dec 2022 05:17:57 +0800 Subject: [PATCH] chore: fix missing include. (#3837) --- scripts/style_api_gen.py | 3 +++ src/core/lv_event.h | 4 ++++ src/core/lv_obj_class.h | 1 + src/core/lv_obj_style.h | 3 +++ src/core/lv_obj_style_gen.h | 3 +++ src/core/lv_obj_tree.h | 2 ++ src/draw/lv_draw_layer.h | 2 ++ src/draw/lv_draw_transform.h | 1 + 8 files changed, 19 insertions(+) diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py index d3dca9108..248fc0523 100755 --- a/scripts/style_api_gen.py +++ b/scripts/style_api_gen.py @@ -481,6 +481,9 @@ def docs(p): base_dir = os.path.abspath(os.path.dirname(__file__)) sys.stdout = open(base_dir + '/../src/core/lv_obj_style_gen.h', 'w') +print("#include \"../misc/lv_area.h\"") +print("#include \"../misc/lv_style.h\"") +print("#include \"../core/lv_obj_style.h\"") for p in props: obj_style_get(p) diff --git a/src/core/lv_event.h b/src/core/lv_event.h index 20385fee9..d2c456186 100644 --- a/src/core/lv_event.h +++ b/src/core/lv_event.h @@ -14,6 +14,10 @@ extern "C" { * INCLUDES *********************/ #include +#include "../misc/lv_area.h" +#include "lv_obj_draw.h" +#include "lv_obj_class.h" +#include "../hal/lv_hal_indev.h" /********************* * DEFINES diff --git a/src/core/lv_obj_class.h b/src/core/lv_obj_class.h index 7ed321f81..123adb6fe 100644 --- a/src/core/lv_obj_class.h +++ b/src/core/lv_obj_class.h @@ -15,6 +15,7 @@ extern "C" { *********************/ #include #include +#include "../misc/lv_area.h" /********************* * DEFINES diff --git a/src/core/lv_obj_style.h b/src/core/lv_obj_style.h index b2feaa145..711fe2b74 100644 --- a/src/core/lv_obj_style.h +++ b/src/core/lv_obj_style.h @@ -16,6 +16,7 @@ extern "C" { #include #include #include "../misc/lv_bidi.h" +#include "../misc/lv_style.h" /********************* * DEFINES @@ -26,6 +27,8 @@ extern "C" { **********************/ /*Can't include lv_obj.h because it includes this header file*/ struct _lv_obj_t; +typedef uint32_t lv_part_t; +typedef uint16_t lv_state_t; typedef enum { _LV_STYLE_STATE_CMP_SAME, /*The style properties in the 2 states are identical*/ diff --git a/src/core/lv_obj_style_gen.h b/src/core/lv_obj_style_gen.h index 576927d9a..51bd6d3cd 100644 --- a/src/core/lv_obj_style_gen.h +++ b/src/core/lv_obj_style_gen.h @@ -1,3 +1,6 @@ +#include "../misc/lv_area.h" +#include "../misc/lv_style.h" +#include "../core/lv_obj_style.h" static inline lv_coord_t lv_obj_get_style_width(const struct _lv_obj_t * obj, uint32_t part) { lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH); diff --git a/src/core/lv_obj_tree.h b/src/core/lv_obj_tree.h index bee9e1604..9c28d6455 100644 --- a/src/core/lv_obj_tree.h +++ b/src/core/lv_obj_tree.h @@ -15,6 +15,8 @@ extern "C" { *********************/ #include #include +#include "../misc/lv_anim.h" +#include "../hal/lv_hal_disp.h" /********************* * DEFINES diff --git a/src/draw/lv_draw_layer.h b/src/draw/lv_draw_layer.h index cd64149c4..13896cb28 100644 --- a/src/draw/lv_draw_layer.h +++ b/src/draw/lv_draw_layer.h @@ -14,6 +14,8 @@ extern "C" { * INCLUDES *********************/ #include "../lv_conf_internal.h" +#include "../misc/lv_area.h" +#include "lv_draw_img.h" /********************* * DEFINES diff --git a/src/draw/lv_draw_transform.h b/src/draw/lv_draw_transform.h index 1926c2fc2..548b2d263 100644 --- a/src/draw/lv_draw_transform.h +++ b/src/draw/lv_draw_transform.h @@ -15,6 +15,7 @@ extern "C" { *********************/ #include "../lv_conf_internal.h" #include "../misc/lv_area.h" +#include "lv_draw_img.h" /********************* * DEFINES