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
aad9f76a
Unverified
Commit
aad9f76a
authored
Jan 30, 2018
by
upbeat27
Committed by
GitHub
Jan 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1 from littlevgl/beta
Beta
parents
177af6ca
ec19ceb2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
26 deletions
+36
-26
TODO_MAJOR.md
docs/TODO_MAJOR.md
+13
-0
lv_draw.c
lv_draw/lv_draw.c
+7
-3
lv_chart.c
lv_objx/lv_chart.c
+3
-3
lv_sw.h
lv_objx/lv_sw.h
+1
-1
lv_tabview.c
lv_objx/lv_tabview.c
+12
-12
lv_win.h
lv_objx/lv_win.h
+0
-7
No files found.
docs/TODO_MAJOR.md
View file @
aad9f76a
...
...
@@ -4,6 +4,19 @@ Major versions released typically when API changes are required
## Contributing
Please create an issue to suggest a new feature instead of adding pull request to this file.
## v6 (released at: in progrss)
-
[
]
Add the basic functions (e.g. lv_obj_set_width) to every object type as inline
-
[
]
Image storage with header (#65)
-
[
]
Font anti-alias: use 1 bit and grayscale fonts too (better result then downscaling)
-
[
]
LV_ANTIALIAS_FONT removal (use other font instead)
-
[
]
Store image anti-alias in header
-
[
]
lv_img_upscale removal (generate image with anti-alias flag instead)
-
[
]
LV_ANTIALIAS_LINE
-
[
]
LV_ANTIALAIS_RADIUS
-
[
]
LV_ANTIALIAS removal (use other specific anti-alias options)
-
[
]
web based image converter
-
[
]
web based font converter
## v5 (released at: 20.12.2017)
**Architectural changes**
-
[
x
]
Rename repository from
*proj_pc*
to
*pc_simulator*
...
...
lv_draw/lv_draw.c
View file @
aad9f76a
...
...
@@ -310,14 +310,18 @@ void lv_draw_label(const lv_area_t * coords,const lv_area_t * mask, const lv_sty
lv_color_t
recolor
;
lv_coord_t
letter_w
;
lv_coord_t
x_ofs
=
0
;
lv_coord_t
y_ofs
=
0
;
if
(
offset
!=
NULL
)
{
pos
.
y
+=
offset
->
y
;
x_ofs
=
offset
->
x
<<
LV_ANTIALIAS
<<
LV_FONT_ANTIALIAS
;
y_ofs
=
offset
->
y
<<
LV_ANTIALIAS
<<
LV_FONT_ANTIALIAS
;
pos
.
y
+=
y_ofs
;
}
/*Write out all lines*/
while
(
txt
[
line_start
]
!=
'\0'
)
{
if
(
offset
!=
NULL
)
{
pos
.
x
+=
offset
->
x
;
pos
.
x
+=
x_ofs
;
}
/*Write all letter of a line*/
cmd_state
=
CMD_STATE_WAIT
;
...
...
@@ -369,7 +373,7 @@ void lv_draw_label(const lv_area_t * coords,const lv_area_t * mask, const lv_sty
pos
.
x
+=
letter_w
+
(
style
->
text
.
letter_space
<<
LV_AA
);
/* Round error occurs in x position
* When odd widths are scaled down the last 1 is lost. So the letters seems shorter.
* Now calculate according to i
s
to be consequent */
* Now calculate according to i
t
to be consequent */
if
(
letter_w
&
0x01
)
pos
.
x
--
;
}
/*Go to next line*/
...
...
lv_objx/lv_chart.c
View file @
aad9f76a
...
...
@@ -514,7 +514,7 @@ static void lv_chart_draw_lines(lv_obj_t * chart, const lv_area_t * mask)
{
lv_chart_ext_t
*
ext
=
lv_obj_get_ext_attr
(
chart
);
uint
8
_t
i
;
uint
16
_t
i
;
lv_point_t
p1
;
lv_point_t
p2
;
lv_coord_t
w
=
lv_obj_get_width
(
chart
);
...
...
@@ -562,7 +562,7 @@ static void lv_chart_draw_points(lv_obj_t * chart, const lv_area_t * mask)
{
lv_chart_ext_t
*
ext
=
lv_obj_get_ext_attr
(
chart
);
uint
8
_t
i
;
uint
16
_t
i
;
lv_area_t
cir_a
;
lv_coord_t
w
=
lv_obj_get_width
(
chart
);
lv_coord_t
h
=
lv_obj_get_height
(
chart
);
...
...
@@ -611,7 +611,7 @@ static void lv_chart_draw_cols(lv_obj_t * chart, const lv_area_t * mask)
{
lv_chart_ext_t
*
ext
=
lv_obj_get_ext_attr
(
chart
);
uint
8
_t
i
;
uint
16
_t
i
;
lv_area_t
col_a
;
lv_area_t
col_mask
;
bool
mask_ret
;
...
...
lv_objx/lv_sw.h
View file @
aad9f76a
...
...
@@ -17,7 +17,7 @@ extern "C" {
#if USE_LV_SW != 0
/*Testing of dependencies*/
#if USE_LV_S
W
== 0
#if USE_LV_S
LIDER
== 0
#error "lv_sw: lv_slider is required. Enable it in lv_conf.h (USE_LV_SLIDER 1)"
#endif
...
...
lv_objx/lv_tabview.c
View file @
aad9f76a
...
...
@@ -37,9 +37,9 @@ static lv_res_t lv_tabview_signal(lv_obj_t * tabview, lv_signal_t sign, void * p
static
lv_res_t
tabpage_signal
(
lv_obj_t
*
tab_page
,
lv_signal_t
sign
,
void
*
param
);
static
lv_res_t
tabpage_scrl_signal
(
lv_obj_t
*
tab_scrl
,
lv_signal_t
sign
,
void
*
param
);
static
void
tabpage_pressed_hadler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
);
static
void
tabpage_pressing_hadler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
);
static
void
tabpage_press_lost_hadler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
);
static
void
tabpage_pressed_ha
n
dler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
);
static
void
tabpage_pressing_ha
n
dler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
);
static
void
tabpage_press_lost_ha
n
dler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
);
static
lv_res_t
tab_btnm_action
(
lv_obj_t
*
tab_btnm
,
const
char
*
tab_name
);
static
void
tabview_realign
(
lv_obj_t
*
tabview
);
...
...
@@ -542,13 +542,13 @@ static lv_res_t tabpage_signal(lv_obj_t * tab_page, lv_signal_t sign, void * par
if
(
lv_tabview_get_sliding
(
tabview
)
==
false
)
return
res
;
if
(
sign
==
LV_SIGNAL_PRESSED
)
{
tabpage_pressed_hadler
(
tabview
,
tab_page
);
tabpage_pressed_ha
n
dler
(
tabview
,
tab_page
);
}
else
if
(
sign
==
LV_SIGNAL_PRESSING
)
{
tabpage_pressing_hadler
(
tabview
,
tab_page
);
tabpage_pressing_ha
n
dler
(
tabview
,
tab_page
);
}
else
if
(
sign
==
LV_SIGNAL_RELEASED
||
sign
==
LV_SIGNAL_PRESS_LOST
)
{
tabpage_press_lost_hadler
(
tabview
,
tab_page
);
tabpage_press_lost_ha
n
dler
(
tabview
,
tab_page
);
}
return
res
;
...
...
@@ -575,13 +575,13 @@ static lv_res_t tabpage_scrl_signal(lv_obj_t * tab_scrl, lv_signal_t sign, void
if
(
lv_tabview_get_sliding
(
tabview
)
==
false
)
return
res
;
if
(
sign
==
LV_SIGNAL_PRESSED
)
{
tabpage_pressed_hadler
(
tabview
,
tab_page
);
tabpage_pressed_ha
n
dler
(
tabview
,
tab_page
);
}
else
if
(
sign
==
LV_SIGNAL_PRESSING
)
{
tabpage_pressing_hadler
(
tabview
,
tab_page
);
tabpage_pressing_ha
n
dler
(
tabview
,
tab_page
);
}
else
if
(
sign
==
LV_SIGNAL_RELEASED
||
sign
==
LV_SIGNAL_PRESS_LOST
)
{
tabpage_press_lost_hadler
(
tabview
,
tab_page
);
tabpage_press_lost_ha
n
dler
(
tabview
,
tab_page
);
}
return
res
;
...
...
@@ -592,7 +592,7 @@ static lv_res_t tabpage_scrl_signal(lv_obj_t * tab_scrl, lv_signal_t sign, void
* @param tabview pointer to the btn view object
* @param tabpage pointer to the page of a btn
*/
static
void
tabpage_pressed_hadler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
)
static
void
tabpage_pressed_ha
n
dler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
)
{
(
void
)
tabpage
;
...
...
@@ -606,7 +606,7 @@ static void tabpage_pressed_hadler(lv_obj_t * tabview, lv_obj_t * tabpage)
* @param tabview pointer to the btn view object
* @param tabpage pointer to the page of a btn
*/
static
void
tabpage_pressing_hadler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
)
static
void
tabpage_pressing_ha
n
dler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
)
{
lv_tabview_ext_t
*
ext
=
lv_obj_get_ext_attr
(
tabview
);
lv_indev_t
*
indev
=
lv_indev_get_act
();
...
...
@@ -645,7 +645,7 @@ static void tabpage_pressing_hadler(lv_obj_t * tabview, lv_obj_t * tabpage)
* @param tabview pointer to the btn view object
* @param tabpage pointer to the page of a btn
*/
static
void
tabpage_press_lost_hadler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
)
static
void
tabpage_press_lost_ha
n
dler
(
lv_obj_t
*
tabview
,
lv_obj_t
*
tabpage
)
{
lv_tabview_ext_t
*
ext
=
lv_obj_get_ext_attr
(
tabview
);
ext
->
drag_hor
=
0
;
...
...
lv_objx/lv_win.h
View file @
aad9f76a
...
...
@@ -125,13 +125,6 @@ void lv_win_set_title(lv_obj_t * win, const char * title);
void
lv_win_set_btn_size
(
lv_obj_t
*
win
,
lv_coord_t
size
);
/**
* Set the control button size of a window
* @param win pointer to a window object
* @param size control button size
*/
void
lv_win_set_btn_size
(
lv_obj_t
*
win
,
lv_coord_t
size
);
/**
* Set the scroll bar mode of a window
* @param win pointer to a window object
* @param sb_mode the new scroll bar mode from 'lv_sb_mode_t'
...
...
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