Home
last modified time | relevance | path

Searched refs:year (Results 1 – 13 of 13) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/calendar/
Dlv_calendar.c33 static uint8_t get_day_of_week(uint32_t year, uint32_t month, uint32_t day);
34 static uint8_t get_month_length(int32_t year, int32_t month);
35 static uint8_t is_leap_year(uint32_t year);
84 void lv_calendar_set_today_date(lv_obj_t * obj, uint32_t year, uint32_t month, uint32_t day) in lv_calendar_set_today_date() argument
89 calendar->today.year = year; in lv_calendar_set_today_date()
109 void lv_calendar_set_showed_date(lv_obj_t * obj, uint32_t year, uint32_t month) in lv_calendar_set_showed_date() argument
114 calendar->showed_date.year = year; in lv_calendar_set_showed_date()
119 d.year = calendar->showed_date.year; in lv_calendar_set_showed_date()
131 uint8_t act_mo_len = get_month_length(d.year, d.month); in lv_calendar_set_showed_date()
132 uint8_t day_first = get_day_of_week(d.year, d.month, 1); in lv_calendar_set_showed_date()
[all …]
Dlv_calendar_header_dropdown.c149 lv_calendar_set_showed_date(calendar, newd.year, newd.month); in month_event_cb()
166 …const uint32_t year = (year_p[0] - '0') * 1000 + (year_p[1] - '0') * 100 + (year_p[2] - '0') * 10 + in year_event_cb() local
169 newd.year = year - sel; in year_event_cb()
171 lv_calendar_set_showed_date(calendar, newd.year, newd.month); in year_event_cb()
185 …const uint32_t year = (year_p[0] - '0') * 1000 + (year_p[1] - '0') * 100 + (year_p[2] - '0') * 10 + in value_changed_event_cb() local
188 lv_dropdown_set_selected(year_dd, year - cur_date->year); in value_changed_event_cb()
Dlv_calendar_header_arrow.c116 newd.year --; in month_event_cb()
125 newd.year ++; in month_event_cb()
132 lv_calendar_set_showed_date(calendar, newd.year, newd.month); in month_event_cb()
135 lv_label_set_text_fmt(label, "%d %s", newd.year, month_names_def[newd.month - 1]); in month_event_cb()
145 lv_label_set_text_fmt(label, "%d %s", cur_date->year, month_names_def[cur_date->month - 1]); in value_changed_event_cb()
Dlv_calendar.h32 uint16_t year; member
74 void lv_calendar_set_today_date(lv_obj_t * obj, uint32_t year, uint32_t month, uint32_t day);
82 void lv_calendar_set_showed_date(lv_obj_t * obj, uint32_t year, uint32_t month);
/lvgl-3.7.0/examples/widgets/calendar/
Dlv_example_calendar_1.c12 LV_LOG_USER("Clicked date: %02d.%02d.%d", date.day, date.month, date.year); in event_handler()
29 highlighted_days[0].year = 2021; in lv_example_calendar_1()
33 highlighted_days[1].year = 2021; in lv_example_calendar_1()
37 highlighted_days[2].year = 2022; in lv_example_calendar_1()
Dlv_example_calendar_1.py9 calendar.set_today_date(date.year, date.month, date.day)
10 print("Clicked date: %02d.%02d.%02d"%(date.day, date.month, date.year))
/lvgl-3.7.0/docs/widgets/extra/
Dcalendar.md15 To make the Calendar flexible, by default it doesn't show the current year or month. Instead, there…
31 Some functions use the `lv_calendar_date_t` type which is a structure with `year`, `month` and `day…
34 To set the current date (today), use the `lv_calendar_set_today_date(calendar, year, month, day)` f…
37 To set the shown date, use `lv_calendar_set_shown_date(calendar, year, month)`;
48 ### Custom year list
50 Sets a custom year list with `lv_calendar_header_dropdown_set_year_list(calendar, years_list)`
70 … contains a left and right arrow on the sides and a text with the current year and month between t…
74 …calendar)` creates a header that contains 2 drop-drown lists: one for the year and another for the…
/lvgl-3.7.0/docs/intro/
Dindex.md98 Before v8 the last minor release of each major series was supported for 1 year.
99 Starting from v8, every minor release is supported for 1 year.
/lvgl-3.7.0/src/extra/libs/png/
Dlodepng.h421 unsigned year; /*2 bytes used (0-65535)*/ member
Dlodepng.c4611 info->time.year = 256u * data[0] + data[1]; in readChunk_tIME()
5305 chunk[8] = (unsigned char)(time->year >> 8); in addChunk_tIME()
5306 chunk[9] = (unsigned char)(time->year & 255); in addChunk_tIME()
/lvgl-3.7.0/docs/
DCONTRIBUTING.md296 - If there is no activity in a repo for 1 year it will be archived
DCHANGELOG.md1333 - docs update company name and year [`2476`](https://github.com/lvgl/lvgl/pull/2476)
1390 - docs(license) update company name and year [`7c1eb00`](https://github.com/lvgl/lvgl/commit/7c1eb0…
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c1274 lv_snprintf(buf, sizeof(buf), "%02d.%02d.%d", d.day, d.month, d.year); in calendar_event_cb()