BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
3d399ad8
Commit
3d399ad8
authored
Jan 02, 2017
by
Gabor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding dependency check to oject types
parent
5e0fffda
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
127 additions
and
6 deletions
+127
-6
lv_draw.c
lv_draw/lv_draw.c
+4
-1
lv_draw.h
lv_draw/lv_draw.h
+5
-0
lv_draw_rbasic.c
lv_draw/lv_draw_rbasic.c
+1
-1
lv_draw_vbasic.c
lv_draw/lv_draw_vbasic.c
+2
-2
lv_btn.h
lv_objx/lv_btn.h
+5
-0
lv_btnm.h
lv_objx/lv_btnm.h
+9
-0
lv_cb.h
lv_objx/lv_cb.h
+8
-0
lv_chart.h
lv_objx/lv_chart.h
+9
-0
lv_img.c
lv_objx/lv_img.c
+2
-1
lv_img.h
lv_objx/lv_img.h
+2
-1
lv_led.h
lv_objx/lv_led.h
+5
-0
lv_list.h
lv_objx/lv_list.h
+13
-0
lv_mbox.h
lv_objx/lv_mbox.h
+14
-0
lv_page.h
lv_objx/lv_page.h
+5
-0
lv_pb.h
lv_objx/lv_pb.h
+9
-0
lv_ta.h
lv_objx/lv_ta.h
+9
-0
lv_win.h
lv_objx/lv_win.h
+25
-0
No files found.
lv_draw/lv_draw.c
View file @
3d399ad8
...
...
@@ -51,6 +51,7 @@ static void (*map_fp)(const area_t * cords_p, const area_t * mask_p, const color
#endif
#if USE_LV_IMG != 0 && USE_FSINT != 0 && USE_UFS != 0
static
lv_rects_t
lv_img_no_pic_rects
=
{
.
objs
.
color
=
COLOR_BLACK
,
.
gcolor
=
COLOR_BLACK
,
.
bcolor
=
COLOR_RED
,
.
bwidth
=
2
*
LV_DOWNSCALE
,
.
bopa
=
100
,
...
...
@@ -62,6 +63,7 @@ static lv_labels_t lv_img_no_pic_labels = {
.
letter_space
=
1
*
LV_DOWNSCALE
,
.
line_space
=
1
*
LV_DOWNSCALE
,
.
mid
=
1
,
};
#endif
/**********************
* MACROS
...
...
@@ -157,6 +159,7 @@ void lv_draw_label(const area_t * cords_p,const area_t * mask_p,
}
#if USE_LV_IMG != 0 && USE_FSINT != 0 && USE_UFS != 0
/**
* Draw an image
* @param cords_p the coordinates of the image
...
...
@@ -241,7 +244,7 @@ void lv_draw_img(const area_t * cords_p, const area_t * mask_p,
}
}
#endif
/**
* Draw a line
...
...
lv_draw/lv_draw.h
View file @
3d399ad8
...
...
@@ -15,6 +15,8 @@
#include "../lv_objx/lv_img.h"
#include "../lv_objx/lv_label.h"
#include "misc_conf.h"
/*********************
* DEFINES
*********************/
...
...
@@ -32,8 +34,11 @@ void lv_draw_label(const area_t * cords_p,const area_t * mask_p,
const
lv_labels_t
*
labels_p
,
opa_t
opa
,
const
char
*
txt
);
void
lv_draw_line
(
const
point_t
*
p1
,
const
point_t
*
p2
,
const
area_t
*
mask_p
,
const
lv_lines_t
*
lines_p
,
opa_t
opa
);
#if USE_LV_IMG != 0 && USE_FSINT != 0 && USE_UFS != 0
void
lv_draw_img
(
const
area_t
*
cords_p
,
const
area_t
*
mask_p
,
const
lv_imgs_t
*
imgs_p
,
opa_t
opa
,
const
char
*
fn
);
#endif
/**********************
* MACROS
**********************/
...
...
lv_draw/lv_draw_rbasic.c
View file @
3d399ad8
...
...
@@ -136,7 +136,7 @@ void lv_rmap(const area_t * cords_p, const area_t * mask_p,
map_p
+=
map_width
;
}
}
else
{
color_t
transp_color
=
LV_
IMG_
COLOR_TRANSP
;
color_t
transp_color
=
LV_COLOR_TRANSP
;
cord_t
row
;
for
(
row
=
0
;
row
<
area_get_height
(
&
masked_a
);
row
++
)
{
cord_t
col
;
...
...
lv_draw/lv_draw_vbasic.c
View file @
3d399ad8
...
...
@@ -228,7 +228,7 @@ void lv_vmap(const area_t * cords_p, const area_t * mask_p,
cord_t
row
;
cord_t
col
;
cord_t
row_cnt
=
0
;
color_t
transp_color
=
LV_
IMG_
COLOR_TRANSP
;
color_t
transp_color
=
LV_COLOR_TRANSP
;
color_t
color_tmp
;
cord_t
map_i
;
map_p
-=
map_width
;
/*Compensate the first row % LV_DOWNSCALE*/
...
...
@@ -278,7 +278,7 @@ void lv_vmap(const area_t * cords_p, const area_t * mask_p,
}
else
{
/*transp == true: Check all pixels */
cord_t
row
;
cord_t
col
;
color_t
transp_color
=
LV_
IMG_
COLOR_TRANSP
;
color_t
transp_color
=
LV_COLOR_TRANSP
;
if
(
recolor_opa
==
OPA_TRANSP
)
/*No recolor*/
{
...
...
lv_objx/lv_btn.h
View file @
3d399ad8
...
...
@@ -12,6 +12,11 @@
#include "lv_conf.h"
#if USE_LV_BTN != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_btn: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#include "lv_rect.h"
#include "../lv_obj/lv_dispi.h"
...
...
lv_objx/lv_btnm.h
View file @
3d399ad8
...
...
@@ -13,6 +13,15 @@
#include "lv_conf.h"
#if USE_LV_BTNM != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_btnm: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#if USE_LV_BTN == 0
#error "lv_btnm: lv_btn is required. Enable it in lv_conf.h (USE_LV_BTN 1) "
#endif
#include "../lv_obj/lv_obj.h"
#include "lv_rect.h"
#include "lv_label.h"
...
...
lv_objx/lv_cb.h
View file @
3d399ad8
...
...
@@ -11,6 +11,14 @@
*********************/
#include "lv_conf.h"
#if USE_LV_CB != 0
/*Testing of dependencies*/
#if USE_LV_BTN == 0
#error "lv_cb: lv_rect is required. Enable it in lv_conf.h (USE_LV_BTN 1) "
#endif
#if USE_LV_LABEL == 0
#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_btn.h"
...
...
lv_objx/lv_chart.h
View file @
3d399ad8
...
...
@@ -12,6 +12,15 @@
#include "lv_conf.h"
#if USE_LV_CHART != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_chart: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#if USE_LV_LINE == 0
#error "lv_chart: lv_line is required. Enable it in lv_conf.h (USE_LV_LINE 1) "
#endif
#include "../lv_obj/lv_obj.h"
#include "lv_rect.h"
#include "lv_line.h"
...
...
lv_objx/lv_img.c
View file @
3d399ad8
...
...
@@ -7,7 +7,8 @@
* INCLUDES
*********************/
#include "lv_conf.h"
#if USE_LV_IMG != 0
#include "misc_conf.h"
#if USE_LV_IMG != 0 && USE_FSINT != 0 && USE_UFS != 0
#include "lv_img.h"
#include "../lv_draw/lv_draw.h"
...
...
lv_objx/lv_img.h
View file @
3d399ad8
...
...
@@ -10,7 +10,8 @@
* INCLUDES
*********************/
#include "lv_conf.h"
#if USE_LV_IMG != 0
#include "misc_conf.h"
#if USE_LV_IMG != 0 && USE_FSINT != 0 && USE_UFS != 0
#include "../lv_obj/lv_obj.h"
#include "misc/fs/fsint.h"
...
...
lv_objx/lv_led.h
View file @
3d399ad8
...
...
@@ -12,6 +12,11 @@
#include "lv_conf.h"
#if USE_LV_LED != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_led: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#include "../lv_obj/lv_obj.h"
/*********************
...
...
lv_objx/lv_list.h
View file @
3d399ad8
...
...
@@ -12,6 +12,19 @@
#include "lv_conf.h"
#if USE_LV_LIST != 0
/*Testing of dependencies*/
#if USE_LV_BTN == 0
#error "lv_list: lv_btn is required. Enable it in lv_conf.h (USE_LV_BTN 1) "
#endif
#if USE_LV_LABEL == 0
#error "lv_list: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
#endif
#if USE_LV_IMG == 0
#error "lv_list: lv_img is required. Enable it in lv_conf.h (USE_LV_IMG 1) "
#endif
#include "../lv_obj/lv_obj.h"
#include "lv_page.h"
#include "lv_btn.h"
...
...
lv_objx/lv_mbox.h
View file @
3d399ad8
...
...
@@ -12,6 +12,20 @@
#include "lv_conf.h"
#if USE_LV_MBOX != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_mbox: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#if USE_LV_BTN == 0
#error "lv_mbox: lv_btn is required. Enable it in lv_conf.h (USE_LV_BTN 1) "
#endif
#if USE_LV_LABEL == 0
#error "lv_mbox: lv_rlabel is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
#endif
#include "../lv_obj/lv_obj.h"
#include "lv_rect.h"
#include "lv_btn.h"
...
...
lv_objx/lv_page.h
View file @
3d399ad8
...
...
@@ -12,6 +12,11 @@
#include "lv_conf.h"
#if USE_LV_PAGE != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_page: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#include "../lv_obj/lv_obj.h"
#include "lv_rect.h"
...
...
lv_objx/lv_pb.h
View file @
3d399ad8
...
...
@@ -12,6 +12,15 @@
#include "lv_conf.h"
#if USE_LV_PB != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_pb: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#if USE_LV_LABEL == 0
#error "lv_pb: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
#endif
#include "../lv_obj/lv_obj.h"
#include "lv_rect.h"
#include "lv_label.h"
...
...
lv_objx/lv_ta.h
View file @
3d399ad8
...
...
@@ -12,6 +12,15 @@
#include "lv_conf.h"
#if USE_LV_TA != 0
/*Testing of dependencies*/
#if USE_LV_PAGE == 0
#error "lv_ta: lv_page is required. Enable it in lv_conf.h (USE_LV_PAGE 1) "
#endif
#if USE_LV_LABEL == 0
#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_page.h"
#include "lv_label.h"
...
...
lv_objx/lv_win.h
View file @
3d399ad8
...
...
@@ -12,6 +12,31 @@
#include "lv_conf.h"
#if USE_LV_WIN != 0
/*Testing of dependencies*/
#if USE_LV_RECT == 0
#error "lv_win: lv_rect is required. Enable it in lv_conf.h (USE_LV_RECT 1) "
#endif
#if USE_LV_BTN == 0
#error "lv_win: lv_btn is required. Enable it in lv_conf.h (USE_LV_BTN 1) "
#endif
#if USE_LV_LABEL == 0
#error "lv_win: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
#endif
#if USE_LV_IMG == 0
#error "lv_win: lv_img is required. Enable it in lv_conf.h (USE_LV_IMG 1) "
#endif
#if USE_LV_PAGE == 0
#error "lv_win: lv_page is required. Enable it in lv_conf.h (USE_LV_PAGE 1) "
#endif
#if USE_LV_PAGE == 0
#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_rect.h"
#include "lv_btn.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment