BigW Consortium Gitlab

Commit 514d2b38 by Gabor Kiss-Vamosi

lv_obj folder rename to lv_core

parent 2f5a09bc
......@@ -73,7 +73,10 @@
#define LV_TXT_UTF8 1
#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_SHADOW 0 /*1: disable shadows*/
......@@ -147,17 +150,10 @@
#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
*==================*/
#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_GROUP 1 /*Enable object groups*/
/*==================
* LV OBJ X USAGE
......@@ -180,7 +176,7 @@
#define USE_LV_LINE 1
/*******************
* Container object
* Container objects
*******************/
/*Container (dependencies: -*/
......@@ -199,7 +195,7 @@
#endif
/*************************
* Data visualizer object
* Data visualizer objects
*************************/
/*Bar (dependencies: -)*/
......@@ -228,7 +224,7 @@
#endif
/*************************
* User input object
* User input objects
*************************/
/*Button (dependencies: lv_cont*/
......
......@@ -7,7 +7,7 @@
* INCLUDES
*********************/
#include "lv_group.h"
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
#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);
}
#endif /*LV_OBJ_GROUP != 0*/
#endif /*LV_GROUP != 0*/
......@@ -20,7 +20,7 @@ extern "C" {
* DEFINES
*********************/
/*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_DOWN 18 /*0x12*/
#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_PREV 11 /*0x0B, '*/
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
/**********************
* TYPEDEFS
**********************/
......@@ -125,7 +125,7 @@ lv_obj_t * lv_group_get_focused(lv_group_t * group);
* MACROS
**********************/
#endif /*LV_OBJ_GROUP != 0*/
#endif /*LV_GROUP != 0*/
#ifdef __cplusplus
} /* extern "C" */
......
......@@ -10,7 +10,7 @@
#include "../../lv_conf.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_math.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);
}
#if LV_OBJ_GROUP
#if LV_GROUP
/**
* Set a destination group for a keypad input device
* @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);
}
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 &&
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_hal/lv_hal_indev.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_group.h"
/*********************
* 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);
#if LV_OBJ_GROUP
#if LV_GROUP
/**
* Set a destination group for a keypad input device
* @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;
#endif
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
new_obj->group_p = NULL;
#endif
/*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
new_obj->free_ptr = NULL;
#endif
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
new_obj->group_p = NULL;
#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;
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
/*Add to the same group*/
if(copy->group_p != NULL) {
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;
}
}
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
if(obj->group_p) {
if(lv_group_get_focused(obj->group_p) == obj) {
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
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
/**
* Get the group of the object
* @param obj pointer to an object
......@@ -1539,7 +1539,7 @@ static void delete_children(lv_obj_t * obj)
#endif
/*Delete from the group*/
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
if(obj->group_p != NULL) lv_group_remove_obj(obj);
#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);
#endif
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
/**
* Get the group of the object
* @param obj pointer to an object
......
......@@ -13,7 +13,7 @@ extern "C" {
/*********************
* INCLUDES
*********************/
#include "../lv_obj/lv_style.h"
#include "../lv_core/lv_style.h"
#include "../lv_misc/lv_txt.h"
/*********************
......
......@@ -17,7 +17,7 @@
#if LV_VDB_SIZE != 0
#include <stddef.h>
#include "../lv_obj/lv_vdb.h"
#include "../lv_core/lv_vdb.h"
/*********************
* INCLUDES
......
......@@ -13,7 +13,7 @@
#include <stddef.h>
#include "../lv_hal/lv_hal_disp.h"
#include "../lv_misc/lv_mem.h"
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
/*********************
* DEFINES
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_BAR != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_cont.h"
#include "lv_btn.h"
#include "lv_label.h"
......
......@@ -12,7 +12,7 @@
#include <string.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_themes/lv_theme.h"
#include "../lv_misc/lv_area.h"
......
......@@ -22,7 +22,7 @@ extern "C" {
#endif
#include "lv_cont.h"
#include "../lv_obj/lv_indev.h"
#include "../lv_core/lv_indev.h"
/*********************
* DEFINES
......
......@@ -10,9 +10,9 @@
#if USE_LV_BTNM != 0
#include "lv_btnm.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_group.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_misc/lv_txt.h"
......
......@@ -17,7 +17,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_BTNM != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_label.h"
#include "lv_btn.h"
......
......@@ -10,7 +10,7 @@
#if USE_LV_CB != 0
#include "lv_cb.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_group.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) {
return ancestor_bullet_design(bullet, mask, mode);
} 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
* the background is not visible (transparent or empty)
* 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
ancestor_bullet_design(bullet, mask, mode);
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
bullet->style_p = style_ori; /*Revert the style*/
#endif
} 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) "
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_btn.h"
#include "lv_label.h"
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_CHART != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_line.h"
/*********************
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_CONT != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
/*********************
* DEFINES
......
......@@ -12,8 +12,8 @@
#include "lv_ddlist.h"
#include "../lv_draw/lv_draw.h"
#include "../lv_obj/lv_group.h"
#include "../lv_obj/lv_indev.h"
#include "../lv_core/lv_group.h"
#include "../lv_core/lv_indev.h"
#include "../lv_themes/lv_theme.h"
#include "../lv_misc/lv_fonts/symbol_def.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) "
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "../lv_objx/lv_page.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) "
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_lmeter.h"
#include "lv_label.h"
#include "lv_line.h"
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#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_fonts/symbol_def.h"
#include "lv_label.h"
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_KB != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_btnm.h"
/*********************
......
......@@ -10,8 +10,8 @@
#if USE_LV_LABEL != 0
#include "lv_label.h"
#include "../lv_obj/lv_obj.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_obj.h"
#include "../lv_core/lv_group.h"
#include "../lv_draw/lv_draw.h"
#include "../lv_misc/lv_color.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_obj_get_coords(label, &cords);
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
lv_group_t * g = lv_obj_get_group(label);
if(lv_group_get_focused(g) == label) {
lv_draw_rect(&cords, mask, style);
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#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_txt.h"
#include "../lv_misc/lv_fonts/symbol_def.h"
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_LED != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
/*********************
* DEFINES
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_LINE != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
/*********************
* DEFINES
......
......@@ -10,7 +10,7 @@
#if USE_LV_LIST != 0
#include "lv_list.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_group.h"
#include "../lv_themes/lv_theme.h"
#include "../lv_misc/lv_anim.h"
#include "../lv_misc/lv_math.h"
......
......@@ -30,7 +30,7 @@ extern "C" {
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_page.h"
#include "lv_btn.h"
#include "lv_label.h"
......
......@@ -12,7 +12,7 @@
#include "lv_lmeter.h"
#include "../lv_draw/lv_draw.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"
/*********************
......@@ -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));
#if LV_OBJ_GROUP
#if LV_GROUP
lv_group_t *g = lv_obj_get_group(lmeter);
if(lv_group_get_focused(g) == lmeter) {
style_tmp.line.width += 1 << LV_ANTIALIAS;
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_LMETER != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
/*********************
* DEFINES
......
......@@ -11,7 +11,7 @@
#if USE_LV_MBOX != 0
#include "lv_mbox.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_group.h"
#include "../lv_themes/lv_theme.h"
#include "../lv_misc/lv_anim.h"
#include "../lv_misc/lv_math.h"
......
......@@ -30,7 +30,7 @@ extern "C" {
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_cont.h"
#include "lv_btnm.h"
#include "lv_label.h"
......
......@@ -24,7 +24,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_TEMPL != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
/*********************
* DEFINES
......
......@@ -9,11 +9,11 @@
#include "../../lv_conf.h"
#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_draw/lv_draw.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_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) {
return ancestor_design(scrl, mask, mode);
} 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
* the background (page) is not visible (transparent or empty)
* 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
ancestor_design(scrl, mask, mode);
#if LV_OBJ_GROUP != 0
#if LV_GROUP != 0
scrl->style_p = style_ori; /*Revert the style*/
#endif
} else if(mode == LV_DESIGN_DRAW_POST) {
......
......@@ -22,7 +22,7 @@ extern "C" {
#endif
#include "lv_cont.h"
#include "../lv_obj/lv_indev.h"
#include "../lv_core/lv_indev.h"
/*********************
* DEFINES
......
......@@ -11,7 +11,7 @@
#include "lv_roller.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"
/*********************
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_ROLLER != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_ddlist.h"
/*********************
......
......@@ -10,7 +10,7 @@
#if USE_LV_SLIDER != 0
#include "lv_slider.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_group.h"
#include "../lv_draw/lv_draw.h"
#include "../lv_themes/lv_theme.h"
#include "../lv_misc/lv_math.h"
......
......@@ -16,7 +16,7 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_SLIDER != 0
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.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)"
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_slider.h"
/*********************
......
......@@ -11,7 +11,7 @@
#if USE_LV_TA != 0
#include "lv_ta.h"
#include "../lv_obj/lv_group.h"
#include "../lv_core/lv_group.h"
#include "../lv_draw/lv_draw.h"
#include "../lv_themes/lv_theme.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) "
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_page.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) "
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "../lv_objx/lv_win.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) "
#endif
#include "../lv_obj/lv_obj.h"
#include "../lv_core/lv_obj.h"
#include "lv_cont.h"
#include "lv_btn.h"
#include "lv_label.h"
......
......@@ -14,7 +14,7 @@ extern "C" {
* INCLUDES
*********************/
#include "../../lv_conf.h"
#include "../lv_obj/lv_style.h"
#include "../lv_core/lv_style.h"
/*********************
* DEFINES
......
......@@ -19,8 +19,9 @@ extern "C" {
#include "lv_hal/lv_hal.h"
#include "lv_obj/lv_obj.h"
#include "lv_obj/lv_group.h"
#include "lv_core/lv_obj.h"
#include "lv_core/lv_group.h"
#include "lv_core/lv_vdb.h"
#include "lv_themes/lv_theme.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment