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
a7a6812a
Commit
a7a6812a
authored
Oct 11, 2017
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename lv_top/sys_layer() to lv_layer_top/sys()
parent
af2b6f80
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
lv_indev.c
lv_obj/lv_indev.c
+5
-3
lv_obj.c
lv_obj/lv_obj.c
+4
-4
lv_obj.h
lv_obj/lv_obj.h
+2
-2
lv_refr.c
lv_obj/lv_refr.c
+2
-2
No files found.
lv_obj/lv_indev.c
View file @
a7a6812a
...
@@ -121,7 +121,7 @@ void lv_indev_enable(lv_hal_indev_type_t type, bool enable)
...
@@ -121,7 +121,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
)
{
{
indev
->
cursor
=
cur_obj
;
indev
->
cursor
=
cur_obj
;
lv_obj_set_parent
(
indev
->
cursor
,
lv_
sys_layer
());
lv_obj_set_parent
(
indev
->
cursor
,
lv_
layer_sys
());
lv_obj_set_pos
(
indev
->
cursor
,
indev
->
state
.
act_point
.
x
,
indev
->
state
.
act_point
.
y
);
lv_obj_set_pos
(
indev
->
cursor
,
indev
->
state
.
act_point
.
x
,
indev
->
state
.
act_point
.
y
);
}
}
...
@@ -262,11 +262,13 @@ static void indev_proc_press(lv_indev_state_t * state)
...
@@ -262,11 +262,13 @@ static void indev_proc_press(lv_indev_state_t * state)
/*If there is no last object then search*/
/*If there is no last object then search*/
if
(
state
->
act_obj
==
NULL
)
{
if
(
state
->
act_obj
==
NULL
)
{
pr_obj
=
indev_search_obj
(
state
,
lv_scr_act
());
pr_obj
=
indev_search_obj
(
state
,
lv_layer_top
());
if
(
pr_obj
==
NULL
)
pr_obj
=
indev_search_obj
(
state
,
lv_scr_act
());
}
}
/*If there is last object but it is not dragged also search*/
/*If there is last object but it is not dragged also search*/
else
if
(
state
->
drag_in_prog
==
0
)
{
/*Now act_obj != NULL*/
else
if
(
state
->
drag_in_prog
==
0
)
{
/*Now act_obj != NULL*/
pr_obj
=
indev_search_obj
(
state
,
lv_scr_act
());
pr_obj
=
indev_search_obj
(
state
,
lv_layer_top
());
if
(
pr_obj
==
NULL
)
pr_obj
=
indev_search_obj
(
state
,
lv_scr_act
());
}
}
/*If a dragable object was the last then keep it*/
/*If a dragable object was the last then keep it*/
else
{
else
{
...
...
lv_obj/lv_obj.c
View file @
a7a6812a
...
@@ -365,8 +365,8 @@ void lv_obj_inv(lv_obj_t * obj)
...
@@ -365,8 +365,8 @@ void lv_obj_inv(lv_obj_t * obj)
/*Invalidate the object only if it belongs to the 'act_scr'*/
/*Invalidate the object only if it belongs to the 'act_scr'*/
lv_obj_t
*
obj_scr
=
lv_obj_get_scr
(
obj
);
lv_obj_t
*
obj_scr
=
lv_obj_get_scr
(
obj
);
if
(
obj_scr
==
lv_scr_act
()
||
if
(
obj_scr
==
lv_scr_act
()
||
obj_scr
==
lv_
top_layer
()
||
obj_scr
==
lv_
layer_top
()
||
obj_scr
==
lv_
sys_layer
())
{
obj_scr
==
lv_
layer_sys
())
{
/*Truncate recursively to the parents*/
/*Truncate recursively to the parents*/
area_t
area_trunc
;
area_t
area_trunc
;
lv_obj_t
*
par
=
lv_obj_get_parent
(
obj
);
lv_obj_t
*
par
=
lv_obj_get_parent
(
obj
);
...
@@ -1115,7 +1115,7 @@ lv_obj_t * lv_scr_act(void)
...
@@ -1115,7 +1115,7 @@ lv_obj_t * lv_scr_act(void)
* Return with the top layer. (Same on every screen and it is above the normal screen layer)
* Return with the top layer. (Same on every screen and it is above the normal screen layer)
* @return pointer to the top layer object (transparent screen sized lv_obj)
* @return pointer to the top layer object (transparent screen sized lv_obj)
*/
*/
lv_obj_t
*
lv_
top_layer
(
void
)
lv_obj_t
*
lv_
layer_top
(
void
)
{
{
return
top_layer
;
return
top_layer
;
}
}
...
@@ -1125,7 +1125,7 @@ lv_obj_t * lv_top_layer(void)
...
@@ -1125,7 +1125,7 @@ lv_obj_t * lv_top_layer(void)
* It is used for example by the cursor
* It is used for example by the cursor
* @return pointer to the system layer object (transparent screen sized lv_obj)
* @return pointer to the system layer object (transparent screen sized lv_obj)
*/
*/
lv_obj_t
*
lv_
sys_layer
(
void
)
lv_obj_t
*
lv_
layer_sys
(
void
)
{
{
return
sys_layer
;
return
sys_layer
;
}
}
...
...
lv_obj/lv_obj.h
View file @
a7a6812a
...
@@ -491,14 +491,14 @@ void lv_obj_anim(lv_obj_t * obj, lv_anim_builtin_t type, uint16_t time, uint16_t
...
@@ -491,14 +491,14 @@ void lv_obj_anim(lv_obj_t * obj, lv_anim_builtin_t type, uint16_t time, uint16_t
* Return with the actual screen
* Return with the actual screen
* @return pointer to to the actual screen object
* @return pointer to to the actual screen object
*/
*/
lv_obj_t
*
lv_scr_act
(
void
);
lv_obj_t
*
lv_
top_layer
(
void
);
lv_obj_t
*
lv_scr_act
(
void
);
lv_obj_t
*
lv_
layer_top
(
void
);
/**
/**
* Return with the system layer. (Same on every screen and it is above the all other layers)
* Return with the system layer. (Same on every screen and it is above the all other layers)
* It is used for example by the cursor
* It is used for example by the cursor
* @return pointer to the system layer object (transparent screen sized lv_obj)
* @return pointer to the system layer object (transparent screen sized lv_obj)
*/
*/
lv_obj_t
*
lv_
sys_layer
(
void
);
lv_obj_t
*
lv_
layer_sys
(
void
);
/**
/**
* Return with the screen of an object
* Return with the screen of an object
...
...
lv_obj/lv_refr.c
View file @
a7a6812a
...
@@ -316,8 +316,8 @@ static void lv_refr_area_part_vdb(const area_t * area_p)
...
@@ -316,8 +316,8 @@ static void lv_refr_area_part_vdb(const area_t * area_p)
lv_refr_make
(
top_p
,
&
start_mask
);
lv_refr_make
(
top_p
,
&
start_mask
);
/*Also refresh top and sys layer unconditionally*/
/*Also refresh top and sys layer unconditionally*/
lv_refr_make
(
lv_
top_layer
(),
&
start_mask
);
lv_refr_make
(
lv_
layer_top
(),
&
start_mask
);
lv_refr_make
(
lv_
sys_layer
(),
&
start_mask
);
lv_refr_make
(
lv_
layer_sys
(),
&
start_mask
);
/*Flush the content of the VDB*/
/*Flush the content of the VDB*/
...
...
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