lv_obj folder rename to lv_core
This commit is contained in:
@@ -73,7 +73,10 @@
|
|||||||
#define LV_TXT_UTF8 1
|
#define LV_TXT_UTF8 1
|
||||||
#define LV_TXT_BREAK_CHARS " ,.;:-_" /*Can break texts on these chars*/
|
#define LV_TXT_BREAK_CHARS " ,.;:-_" /*Can break texts on these chars*/
|
||||||
|
|
||||||
/*Feature usage*/
|
/*Group settings*/
|
||||||
|
#define LV_GROUP 1 /*Enable object groups (for keyboards)*/
|
||||||
|
|
||||||
|
/*Graphics feature usage*/
|
||||||
#define LV_NO_ANIM 0 /*1: disable all animations*/
|
#define LV_NO_ANIM 0 /*1: disable all animations*/
|
||||||
#define LV_NO_SHADOW 0 /*1: disable shadows*/
|
#define LV_NO_SHADOW 0 /*1: disable shadows*/
|
||||||
|
|
||||||
@@ -146,18 +149,11 @@
|
|||||||
#define USE_LV_FONT_SYMBOL_80_FILE 0
|
#define USE_LV_FONT_SYMBOL_80_FILE 0
|
||||||
#define USE_LV_FONT_SYMBOL_80_FEEDBACK 0
|
#define USE_LV_FONT_SYMBOL_80_FEEDBACK 0
|
||||||
|
|
||||||
/*==================
|
|
||||||
* IMAGE USAGE
|
|
||||||
*================*/
|
|
||||||
#define LV_IMAGE_ENABLE_ALL 1 /*Unconditionally enable all image maps*/
|
|
||||||
//#define USE_IMG_XYZ 1 /*Enable or disable to compile you image map files*/
|
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* LV_OBJ SETTINGS
|
* LV_OBJ SETTINGS
|
||||||
*==================*/
|
*==================*/
|
||||||
#define LV_OBJ_FREE_NUM_TYPE uint32_t /*Type of free number attribute (comment out disable free number)*/
|
#define LV_OBJ_FREE_NUM_TYPE uint32_t /*Type of free number attribute (comment out disable free number)*/
|
||||||
#define LV_OBJ_FREE_PTR 1 /*Enable the free pointer attribute*/
|
#define LV_OBJ_FREE_PTR 1 /*Enable the free pointer attribute*/
|
||||||
#define LV_OBJ_GROUP 1 /*Enable object groups*/
|
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* LV OBJ X USAGE
|
* LV OBJ X USAGE
|
||||||
@@ -180,7 +176,7 @@
|
|||||||
#define USE_LV_LINE 1
|
#define USE_LV_LINE 1
|
||||||
|
|
||||||
/*******************
|
/*******************
|
||||||
* Container object
|
* Container objects
|
||||||
*******************/
|
*******************/
|
||||||
|
|
||||||
/*Container (dependencies: -*/
|
/*Container (dependencies: -*/
|
||||||
@@ -199,7 +195,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*************************
|
/*************************
|
||||||
* Data visualizer object
|
* Data visualizer objects
|
||||||
*************************/
|
*************************/
|
||||||
|
|
||||||
/*Bar (dependencies: -)*/
|
/*Bar (dependencies: -)*/
|
||||||
@@ -228,7 +224,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*************************
|
/*************************
|
||||||
* User input object
|
* User input objects
|
||||||
*************************/
|
*************************/
|
||||||
|
|
||||||
/*Button (dependencies: lv_cont*/
|
/*Button (dependencies: lv_cont*/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "lv_group.h"
|
#include "lv_group.h"
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
@@ -265,4 +265,4 @@ static void style_mod_def(lv_style_t * style)
|
|||||||
style->text.color = lv_color_mix(style->text.color, LV_COLOR_ORANGE, LV_OPA_70);
|
style->text.color = lv_color_mix(style->text.color, LV_COLOR_ORANGE, LV_OPA_70);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /*LV_OBJ_GROUP != 0*/
|
#endif /*LV_GROUP != 0*/
|
||||||
@@ -20,7 +20,7 @@ extern "C" {
|
|||||||
* DEFINES
|
* DEFINES
|
||||||
*********************/
|
*********************/
|
||||||
/*Predefined keys to control the focused object via lv_group_send(group, c)*/
|
/*Predefined keys to control the focused object via lv_group_send(group, c)*/
|
||||||
/*For compatibility in signal function define the keys regardless to LV_OBJ_GROUP*/
|
/*For compatibility in signal function define the keys regardless to LV_GROUP*/
|
||||||
#define LV_GROUP_KEY_UP 17 /*0x11*/
|
#define LV_GROUP_KEY_UP 17 /*0x11*/
|
||||||
#define LV_GROUP_KEY_DOWN 18 /*0x12*/
|
#define LV_GROUP_KEY_DOWN 18 /*0x12*/
|
||||||
#define LV_GROUP_KEY_RIGHT 19 /*0x13*/
|
#define LV_GROUP_KEY_RIGHT 19 /*0x13*/
|
||||||
@@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#define LV_GROUP_KEY_NEXT 9 /*0x09, '\t'*/
|
#define LV_GROUP_KEY_NEXT 9 /*0x09, '\t'*/
|
||||||
#define LV_GROUP_KEY_PREV 11 /*0x0B, '*/
|
#define LV_GROUP_KEY_PREV 11 /*0x0B, '*/
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
/**********************
|
/**********************
|
||||||
* TYPEDEFS
|
* TYPEDEFS
|
||||||
**********************/
|
**********************/
|
||||||
@@ -125,7 +125,7 @@ lv_obj_t * lv_group_get_focused(lv_group_t * group);
|
|||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
|
||||||
#endif /*LV_OBJ_GROUP != 0*/
|
#endif /*LV_GROUP != 0*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
|
|
||||||
#include "../lv_hal/lv_hal_tick.h"
|
#include "../lv_hal/lv_hal_tick.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_misc/lv_task.h"
|
#include "../lv_misc/lv_task.h"
|
||||||
#include "../lv_misc/lv_math.h"
|
#include "../lv_misc/lv_math.h"
|
||||||
#include "../lv_draw/lv_draw_rbasic.h"
|
#include "../lv_draw/lv_draw_rbasic.h"
|
||||||
@@ -128,7 +128,7 @@ void lv_indev_set_cursor(lv_indev_t *indev, lv_obj_t *cur_obj)
|
|||||||
lv_obj_set_pos(indev->cursor, indev->proc.act_point.x, indev->proc.act_point.y);
|
lv_obj_set_pos(indev->cursor, indev->proc.act_point.x, indev->proc.act_point.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LV_OBJ_GROUP
|
#if LV_GROUP
|
||||||
/**
|
/**
|
||||||
* Set a destination group for a keypad input device
|
* Set a destination group for a keypad input device
|
||||||
* @param indev pointer to an input device (type: 'LV_INDEV_TYPE_KEYPAD')
|
* @param indev pointer to an input device (type: 'LV_INDEV_TYPE_KEYPAD')
|
||||||
@@ -237,7 +237,7 @@ static void indev_proc_task(void * param)
|
|||||||
indev_proc_point(&i->proc);
|
indev_proc_point(&i->proc);
|
||||||
}
|
}
|
||||||
else if (i->driver.type == LV_INDEV_TYPE_KEYPAD) {
|
else if (i->driver.type == LV_INDEV_TYPE_KEYPAD) {
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
if(i->group != NULL && data.key != 0 &&
|
if(i->group != NULL && data.key != 0 &&
|
||||||
data.state == LV_INDEV_STATE_PR && i->proc.last_state == LV_INDEV_STATE_REL)
|
data.state == LV_INDEV_STATE_PR && i->proc.last_state == LV_INDEV_STATE_REL)
|
||||||
{
|
{
|
||||||
@@ -15,7 +15,7 @@ extern "C" {
|
|||||||
*********************/
|
*********************/
|
||||||
#include "lv_obj.h"
|
#include "lv_obj.h"
|
||||||
#include "../lv_hal/lv_hal_indev.h"
|
#include "../lv_hal/lv_hal_indev.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
@@ -66,7 +66,7 @@ void lv_indev_enable(lv_hal_indev_type_t type, bool enable);
|
|||||||
*/
|
*/
|
||||||
void lv_indev_set_cursor(lv_indev_t *indev, lv_obj_t *cur_obj);
|
void lv_indev_set_cursor(lv_indev_t *indev, lv_obj_t *cur_obj);
|
||||||
|
|
||||||
#if LV_OBJ_GROUP
|
#if LV_GROUP
|
||||||
/**
|
/**
|
||||||
* Set a destination group for a keypad input device
|
* Set a destination group for a keypad input device
|
||||||
* @param indev pointer to an input device (type: 'LV_INDEV_TYPE_KEYPAD')
|
* @param indev pointer to an input device (type: 'LV_INDEV_TYPE_KEYPAD')
|
||||||
@@ -152,7 +152,7 @@ lv_obj_t * lv_obj_create(lv_obj_t * parent, lv_obj_t * copy)
|
|||||||
new_obj->free_ptr = NULL;
|
new_obj->free_ptr = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
new_obj->group_p = NULL;
|
new_obj->group_p = NULL;
|
||||||
#endif
|
#endif
|
||||||
/*Set attributes*/
|
/*Set attributes*/
|
||||||
@@ -197,7 +197,7 @@ lv_obj_t * lv_obj_create(lv_obj_t * parent, lv_obj_t * copy)
|
|||||||
#if LV_OBJ_FREE_PTR != 0
|
#if LV_OBJ_FREE_PTR != 0
|
||||||
new_obj->free_ptr = NULL;
|
new_obj->free_ptr = NULL;
|
||||||
#endif
|
#endif
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
new_obj->group_p = NULL;
|
new_obj->group_p = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -235,7 +235,7 @@ lv_obj_t * lv_obj_create(lv_obj_t * parent, lv_obj_t * copy)
|
|||||||
|
|
||||||
new_obj->style_p = copy->style_p;
|
new_obj->style_p = copy->style_p;
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
/*Add to the same group*/
|
/*Add to the same group*/
|
||||||
if(copy->group_p != NULL) {
|
if(copy->group_p != NULL) {
|
||||||
lv_group_add_obj(copy->group_p, new_obj);
|
lv_group_add_obj(copy->group_p, new_obj);
|
||||||
@@ -1209,7 +1209,7 @@ lv_style_t * lv_obj_get_style(lv_obj_t * obj)
|
|||||||
par = par->par;
|
par = par->par;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
if(obj->group_p) {
|
if(obj->group_p) {
|
||||||
if(lv_group_get_focused(obj->group_p) == obj) {
|
if(lv_group_get_focused(obj->group_p) == obj) {
|
||||||
style_act = lv_group_mod_style(obj->group_p, style_act);
|
style_act = lv_group_mod_style(obj->group_p, style_act);
|
||||||
@@ -1366,7 +1366,7 @@ void * lv_obj_get_free_ptr(lv_obj_t * obj)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
/**
|
/**
|
||||||
* Get the group of the object
|
* Get the group of the object
|
||||||
* @param obj pointer to an object
|
* @param obj pointer to an object
|
||||||
@@ -1539,7 +1539,7 @@ static void delete_children(lv_obj_t * obj)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Delete from the group*/
|
/*Delete from the group*/
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
if(obj->group_p != NULL) lv_group_remove_obj(obj);
|
if(obj->group_p != NULL) lv_group_remove_obj(obj);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -774,7 +774,7 @@ LV_OBJ_FREE_NUM_TYPE lv_obj_get_free_num(lv_obj_t * obj);
|
|||||||
void * lv_obj_get_free_ptr(lv_obj_t * obj);
|
void * lv_obj_get_free_ptr(lv_obj_t * obj);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
/**
|
/**
|
||||||
* Get the group of the object
|
* Get the group of the object
|
||||||
* @param obj pointer to an object
|
* @param obj pointer to an object
|
||||||
@@ -13,7 +13,7 @@ extern "C" {
|
|||||||
/*********************
|
/*********************
|
||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "../lv_obj/lv_style.h"
|
#include "../lv_core/lv_style.h"
|
||||||
#include "../lv_misc/lv_txt.h"
|
#include "../lv_misc/lv_txt.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#if LV_VDB_SIZE != 0
|
#if LV_VDB_SIZE != 0
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "../lv_obj/lv_vdb.h"
|
#include "../lv_core/lv_vdb.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* INCLUDES
|
* INCLUDES
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "../lv_hal/lv_hal_disp.h"
|
#include "../lv_hal/lv_hal_disp.h"
|
||||||
#include "../lv_misc/lv_mem.h"
|
#include "../lv_misc/lv_mem.h"
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_BAR != 0
|
#if USE_LV_BAR != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_cont.h"
|
#include "lv_cont.h"
|
||||||
#include "lv_btn.h"
|
#include "lv_btn.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "lv_btn.h"
|
#include "lv_btn.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_misc/lv_area.h"
|
#include "../lv_misc/lv_area.h"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "lv_cont.h"
|
#include "lv_cont.h"
|
||||||
#include "../lv_obj/lv_indev.h"
|
#include "../lv_core/lv_indev.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
#if USE_LV_BTNM != 0
|
#if USE_LV_BTNM != 0
|
||||||
|
|
||||||
#include "lv_btnm.h"
|
#include "lv_btnm.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_obj/lv_refr.h"
|
#include "../lv_core/lv_refr.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_misc/lv_txt.h"
|
#include "../lv_misc/lv_txt.h"
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_BTNM != 0
|
#if USE_LV_BTNM != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
#include "lv_btn.h"
|
#include "lv_btn.h"
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#if USE_LV_CB != 0
|
#if USE_LV_CB != 0
|
||||||
|
|
||||||
#include "lv_cb.h"
|
#include "lv_cb.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
@@ -247,7 +247,7 @@ static bool lv_bullet_design(lv_obj_t * bullet, const lv_area_t * mask, lv_desig
|
|||||||
if(mode == LV_DESIGN_COVER_CHK) {
|
if(mode == LV_DESIGN_COVER_CHK) {
|
||||||
return ancestor_bullet_design(bullet, mask, mode);
|
return ancestor_bullet_design(bullet, mask, mode);
|
||||||
} else if(mode == LV_DESIGN_DRAW_MAIN) {
|
} else if(mode == LV_DESIGN_DRAW_MAIN) {
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
/* If the check box is the active in a group and
|
/* If the check box is the active in a group and
|
||||||
* the background is not visible (transparent or empty)
|
* the background is not visible (transparent or empty)
|
||||||
* then activate the style of the bullet*/
|
* then activate the style of the bullet*/
|
||||||
@@ -265,7 +265,7 @@ static bool lv_bullet_design(lv_obj_t * bullet, const lv_area_t * mask, lv_desig
|
|||||||
#endif
|
#endif
|
||||||
ancestor_bullet_design(bullet, mask, mode);
|
ancestor_bullet_design(bullet, mask, mode);
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
bullet->style_p = style_ori; /*Revert the style*/
|
bullet->style_p = style_ori; /*Revert the style*/
|
||||||
#endif
|
#endif
|
||||||
} else if(mode == LV_DESIGN_DRAW_POST) {
|
} else if(mode == LV_DESIGN_DRAW_POST) {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ extern "C" {
|
|||||||
#error "lv_cb: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
|
#error "lv_cb: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_btn.h"
|
#include "lv_btn.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_CHART != 0
|
#if USE_LV_CHART != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_line.h"
|
#include "lv_line.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_CONT != 0
|
#if USE_LV_CONT != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
#include "lv_ddlist.h"
|
#include "lv_ddlist.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_obj/lv_indev.h"
|
#include "../lv_core/lv_indev.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_misc/lv_fonts/symbol_def.h"
|
#include "../lv_misc/lv_fonts/symbol_def.h"
|
||||||
#include "../lv_misc/lv_anim.h"
|
#include "../lv_misc/lv_anim.h"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ extern "C" {
|
|||||||
#error "lv_ddlist: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
|
#error "lv_ddlist: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "../lv_objx/lv_page.h"
|
#include "../lv_objx/lv_page.h"
|
||||||
#include "../lv_objx/lv_label.h"
|
#include "../lv_objx/lv_label.h"
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ extern "C" {
|
|||||||
#error "lv_gauge: lv_lmeter is required. Enable it in lv_conf.h (USE_LV_LMETER 1) "
|
#error "lv_gauge: lv_lmeter is required. Enable it in lv_conf.h (USE_LV_LMETER 1) "
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_lmeter.h"
|
#include "lv_lmeter.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
#include "lv_line.h"
|
#include "lv_line.h"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_IMG != 0
|
#if USE_LV_IMG != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "../lv_misc/lv_fs.h"
|
#include "../lv_misc/lv_fs.h"
|
||||||
#include "../lv_misc/lv_fonts/symbol_def.h"
|
#include "../lv_misc/lv_fonts/symbol_def.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_KB != 0
|
#if USE_LV_KB != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_btnm.h"
|
#include "lv_btnm.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
#if USE_LV_LABEL != 0
|
#if USE_LV_LABEL != 0
|
||||||
|
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_misc/lv_color.h"
|
#include "../lv_misc/lv_color.h"
|
||||||
#include "../lv_misc/lv_math.h"
|
#include "../lv_misc/lv_math.h"
|
||||||
@@ -629,7 +629,7 @@ static bool lv_label_design(lv_obj_t * label, const lv_area_t * mask, lv_design_
|
|||||||
lv_style_t * style = lv_obj_get_style(label);
|
lv_style_t * style = lv_obj_get_style(label);
|
||||||
lv_obj_get_coords(label, &cords);
|
lv_obj_get_coords(label, &cords);
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
lv_group_t * g = lv_obj_get_group(label);
|
lv_group_t * g = lv_obj_get_group(label);
|
||||||
if(lv_group_get_focused(g) == label) {
|
if(lv_group_get_focused(g) == label) {
|
||||||
lv_draw_rect(&cords, mask, style);
|
lv_draw_rect(&cords, mask, style);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_LABEL != 0
|
#if USE_LV_LABEL != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "../lv_misc/lv_font.h"
|
#include "../lv_misc/lv_font.h"
|
||||||
#include "../lv_misc/lv_txt.h"
|
#include "../lv_misc/lv_txt.h"
|
||||||
#include "../lv_misc/lv_fonts/symbol_def.h"
|
#include "../lv_misc/lv_fonts/symbol_def.h"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_LED != 0
|
#if USE_LV_LED != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_LINE != 0
|
#if USE_LV_LINE != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#if USE_LV_LIST != 0
|
#if USE_LV_LIST != 0
|
||||||
|
|
||||||
#include "lv_list.h"
|
#include "lv_list.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_misc/lv_anim.h"
|
#include "../lv_misc/lv_anim.h"
|
||||||
#include "../lv_misc/lv_math.h"
|
#include "../lv_misc/lv_math.h"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_page.h"
|
#include "lv_page.h"
|
||||||
#include "lv_btn.h"
|
#include "lv_btn.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include "lv_lmeter.h"
|
#include "lv_lmeter.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_misc/lv_trigo.h"
|
#include "../lv_misc/lv_trigo.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
@@ -242,7 +242,7 @@ static bool lv_lmeter_design(lv_obj_t * lmeter, const lv_area_t * mask, lv_desig
|
|||||||
memcpy(&style_tmp, style, sizeof(lv_style_t));
|
memcpy(&style_tmp, style, sizeof(lv_style_t));
|
||||||
|
|
||||||
|
|
||||||
#if LV_OBJ_GROUP
|
#if LV_GROUP
|
||||||
lv_group_t *g = lv_obj_get_group(lmeter);
|
lv_group_t *g = lv_obj_get_group(lmeter);
|
||||||
if(lv_group_get_focused(g) == lmeter) {
|
if(lv_group_get_focused(g) == lmeter) {
|
||||||
style_tmp.line.width += 1 << LV_ANTIALIAS;
|
style_tmp.line.width += 1 << LV_ANTIALIAS;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_LMETER != 0
|
#if USE_LV_LMETER != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#if USE_LV_MBOX != 0
|
#if USE_LV_MBOX != 0
|
||||||
|
|
||||||
#include "lv_mbox.h"
|
#include "lv_mbox.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_misc/lv_anim.h"
|
#include "../lv_misc/lv_anim.h"
|
||||||
#include "../lv_misc/lv_math.h"
|
#include "../lv_misc/lv_math.h"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_cont.h"
|
#include "lv_cont.h"
|
||||||
#include "lv_btnm.h"
|
#include "lv_btnm.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_TEMPL != 0
|
#if USE_LV_TEMPL != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -9,11 +9,11 @@
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_PAGE != 0
|
#if USE_LV_PAGE != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_objx/lv_page.h"
|
#include "../lv_objx/lv_page.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_obj/lv_refr.h"
|
#include "../lv_core/lv_refr.h"
|
||||||
#include "../lv_misc/lv_anim.h"
|
#include "../lv_misc/lv_anim.h"
|
||||||
#include "../lv_misc/lv_math.h"
|
#include "../lv_misc/lv_math.h"
|
||||||
|
|
||||||
@@ -389,7 +389,7 @@ static bool lv_scrl_design(lv_obj_t * scrl, const lv_area_t * mask, lv_design_mo
|
|||||||
if(mode == LV_DESIGN_COVER_CHK) {
|
if(mode == LV_DESIGN_COVER_CHK) {
|
||||||
return ancestor_design(scrl, mask, mode);
|
return ancestor_design(scrl, mask, mode);
|
||||||
} else if(mode == LV_DESIGN_DRAW_MAIN) {
|
} else if(mode == LV_DESIGN_DRAW_MAIN) {
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
/* If the page is the active in a group and
|
/* If the page is the active in a group and
|
||||||
* the background (page) is not visible (transparent or empty)
|
* the background (page) is not visible (transparent or empty)
|
||||||
* then activate the style of the scrollable*/
|
* then activate the style of the scrollable*/
|
||||||
@@ -407,7 +407,7 @@ static bool lv_scrl_design(lv_obj_t * scrl, const lv_area_t * mask, lv_design_mo
|
|||||||
#endif
|
#endif
|
||||||
ancestor_design(scrl, mask, mode);
|
ancestor_design(scrl, mask, mode);
|
||||||
|
|
||||||
#if LV_OBJ_GROUP != 0
|
#if LV_GROUP != 0
|
||||||
scrl->style_p = style_ori; /*Revert the style*/
|
scrl->style_p = style_ori; /*Revert the style*/
|
||||||
#endif
|
#endif
|
||||||
} else if(mode == LV_DESIGN_DRAW_POST) {
|
} else if(mode == LV_DESIGN_DRAW_POST) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "lv_cont.h"
|
#include "lv_cont.h"
|
||||||
#include "../lv_obj/lv_indev.h"
|
#include "../lv_core/lv_indev.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "lv_roller.h"
|
#include "lv_roller.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_ROLLER != 0
|
#if USE_LV_ROLLER != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_ddlist.h"
|
#include "lv_ddlist.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#if USE_LV_SLIDER != 0
|
#if USE_LV_SLIDER != 0
|
||||||
|
|
||||||
#include "lv_slider.h"
|
#include "lv_slider.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_misc/lv_math.h"
|
#include "../lv_misc/lv_math.h"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern "C" {
|
|||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#if USE_LV_SLIDER != 0
|
#if USE_LV_SLIDER != 0
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_bar.h"
|
#include "lv_bar.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ extern "C" {
|
|||||||
#error "lv_sw: lv_slider is required. Enable it in lv_conf.h (USE_LV_SLIDER 1)"
|
#error "lv_sw: lv_slider is required. Enable it in lv_conf.h (USE_LV_SLIDER 1)"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_slider.h"
|
#include "lv_slider.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#if USE_LV_TA != 0
|
#if USE_LV_TA != 0
|
||||||
|
|
||||||
#include "lv_ta.h"
|
#include "lv_ta.h"
|
||||||
#include "../lv_obj/lv_group.h"
|
#include "../lv_core/lv_group.h"
|
||||||
#include "../lv_draw/lv_draw.h"
|
#include "../lv_draw/lv_draw.h"
|
||||||
#include "../lv_themes/lv_theme.h"
|
#include "../lv_themes/lv_theme.h"
|
||||||
#include "../lv_misc/lv_anim.h"
|
#include "../lv_misc/lv_anim.h"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ extern "C" {
|
|||||||
#error "lv_ta: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
|
#error "lv_ta: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_page.h"
|
#include "lv_page.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ extern "C" {
|
|||||||
#error "lv_tabview: lv_page is required. Enable it in lv_conf.h (USE_LV_PAGE 1) "
|
#error "lv_tabview: lv_page is required. Enable it in lv_conf.h (USE_LV_PAGE 1) "
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "../lv_objx/lv_win.h"
|
#include "../lv_objx/lv_win.h"
|
||||||
#include "../lv_objx/lv_page.h"
|
#include "../lv_objx/lv_page.h"
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ extern "C" {
|
|||||||
#error "lv_win: lv_page is required. Enable it in lv_conf.h (USE_LV_PAGE 1) "
|
#error "lv_win: lv_page is required. Enable it in lv_conf.h (USE_LV_PAGE 1) "
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../lv_obj/lv_obj.h"
|
#include "../lv_core/lv_obj.h"
|
||||||
#include "lv_cont.h"
|
#include "lv_cont.h"
|
||||||
#include "lv_btn.h"
|
#include "lv_btn.h"
|
||||||
#include "lv_label.h"
|
#include "lv_label.h"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ extern "C" {
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "../../lv_conf.h"
|
#include "../../lv_conf.h"
|
||||||
#include "../lv_obj/lv_style.h"
|
#include "../lv_core/lv_style.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
|||||||
5
lvgl.h
5
lvgl.h
@@ -19,8 +19,9 @@ extern "C" {
|
|||||||
|
|
||||||
#include "lv_hal/lv_hal.h"
|
#include "lv_hal/lv_hal.h"
|
||||||
|
|
||||||
#include "lv_obj/lv_obj.h"
|
#include "lv_core/lv_obj.h"
|
||||||
#include "lv_obj/lv_group.h"
|
#include "lv_core/lv_group.h"
|
||||||
|
#include "lv_core/lv_vdb.h"
|
||||||
|
|
||||||
#include "lv_themes/lv_theme.h"
|
#include "lv_themes/lv_theme.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user