Lines Matching refs:newd
114 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()
135 newd.month ++; in month_event_cb()
139 lv_calendar_set_month_shown(calendar, newd.year, newd.month); in month_event_cb()
142 lv_label_set_text_fmt(label, "%d %s", newd.year, month_names_def[newd.month - 1]); in month_event_cb()