chore: fix missing include. (#3837)
This commit is contained in:
@@ -481,6 +481,9 @@ def docs(p):
|
|||||||
base_dir = os.path.abspath(os.path.dirname(__file__))
|
base_dir = os.path.abspath(os.path.dirname(__file__))
|
||||||
sys.stdout = open(base_dir + '/../src/core/lv_obj_style_gen.h', 'w')
|
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:
|
for p in props:
|
||||||
obj_style_get(p)
|
obj_style_get(p)
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ extern "C" {
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "../misc/lv_area.h"
|
||||||
|
#include "lv_obj_draw.h"
|
||||||
|
#include "lv_obj_class.h"
|
||||||
|
#include "../hal/lv_hal_indev.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ extern "C" {
|
|||||||
*********************/
|
*********************/
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "../misc/lv_area.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ extern "C" {
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "../misc/lv_bidi.h"
|
#include "../misc/lv_bidi.h"
|
||||||
|
#include "../misc/lv_style.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
@@ -26,6 +27,8 @@ extern "C" {
|
|||||||
**********************/
|
**********************/
|
||||||
/*Can't include lv_obj.h because it includes this header file*/
|
/*Can't include lv_obj.h because it includes this header file*/
|
||||||
struct _lv_obj_t;
|
struct _lv_obj_t;
|
||||||
|
typedef uint32_t lv_part_t;
|
||||||
|
typedef uint16_t lv_state_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
_LV_STYLE_STATE_CMP_SAME, /*The style properties in the 2 states are identical*/
|
_LV_STYLE_STATE_CMP_SAME, /*The style properties in the 2 states are identical*/
|
||||||
|
|||||||
@@ -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)
|
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);
|
lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH);
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ extern "C" {
|
|||||||
*********************/
|
*********************/
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "../misc/lv_anim.h"
|
||||||
|
#include "../hal/lv_hal_disp.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ extern "C" {
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "../lv_conf_internal.h"
|
#include "../lv_conf_internal.h"
|
||||||
|
#include "../misc/lv_area.h"
|
||||||
|
#include "lv_draw_img.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ extern "C" {
|
|||||||
*********************/
|
*********************/
|
||||||
#include "../lv_conf_internal.h"
|
#include "../lv_conf_internal.h"
|
||||||
#include "../misc/lv_area.h"
|
#include "../misc/lv_area.h"
|
||||||
|
#include "lv_draw_img.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
Reference in New Issue
Block a user