Home
last modified time | relevance | path

Searched refs:newd (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/src/widgets/calendar/
Dlv_calendar_header_arrow.c114 lv_calendar_date_t newd = *d; in month_event_cb() local
116 LV_ASSERT_FORMAT_MSG(newd.year >= 0 && newd.month >= 1 && newd.month <= 12, in month_event_cb()
117 "Invalid date: %d-%d", newd.year, newd.month); in month_event_cb()
121 if(newd.month == 1) { in month_event_cb()
122 newd.month = 12; in month_event_cb()
123 newd.year --; in month_event_cb()
126 newd.month --; in month_event_cb()
130 if(newd.month == 12) { in month_event_cb()
131 newd.month = 1; in month_event_cb()
132 newd.year ++; in month_event_cb()
[all …]
Dlv_calendar_header_dropdown.c135 lv_calendar_date_t newd = *d; in month_event_cb() local
136 newd.month = sel + 1; in month_event_cb()
138 lv_calendar_set_month_shown(calendar, newd.year, newd.month); in month_event_cb()
157 lv_calendar_date_t newd = *d; in year_event_cb() local
158 newd.year = year - sel; in year_event_cb()
160 lv_calendar_set_month_shown(calendar, newd.year, newd.month); in year_event_cb()