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
c17df70f
Commit
c17df70f
authored
May 26, 2018
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_calendar_create: implement copy
parent
5d37d87c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
lv_calendar.c
lv_objx/lv_calendar.c
+19
-1
No files found.
lv_objx/lv_calendar.c
View file @
c17df70f
...
...
@@ -115,7 +115,25 @@ lv_obj_t * lv_calendar_create(lv_obj_t * par, lv_obj_t * copy)
/*Copy an existing calendar*/
else
{
lv_calendar_ext_t
*
copy_ext
=
lv_obj_get_ext_attr
(
copy
);
ext
->
today
.
year
=
copy_ext
->
today
.
year
;
ext
->
today
.
month
=
copy_ext
->
today
.
month
;
ext
->
today
.
day
=
copy_ext
->
today
.
day
;
ext
->
showed_date
.
year
=
copy_ext
->
showed_date
.
year
;
ext
->
showed_date
.
month
=
copy_ext
->
showed_date
.
month
;
ext
->
showed_date
.
day
=
copy_ext
->
showed_date
.
day
;
ext
->
highlighted_dates
=
copy_ext
->
highlighted_dates
;
ext
->
highlighted_dates_num
=
copy_ext
->
highlighted_dates_num
;
ext
->
day_names
=
copy_ext
->
day_names
;
ext
->
month_names
=
copy_ext
->
month_names
;
ext
->
style_header
=
copy_ext
->
style_header
;
ext
->
style_header_pr
=
copy_ext
->
style_header_pr
;
ext
->
style_highlighted
=
copy_ext
->
style_highlighted
;
ext
->
style_inactive_days
=
copy_ext
->
style_inactive_days
;
ext
->
style_week_box
=
copy_ext
->
style_week_box
;
ext
->
style_today_box
=
copy_ext
->
style_today_box
;
ext
->
style_day_names
=
copy_ext
->
style_day_names
;
/*Refresh the style with new signal function*/
lv_obj_refresh_style
(
new_calendar
);
}
...
...
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