Home
last modified time | relevance | path

Searched refs:month (Results 1 – 16 of 16) sorted by relevance

/lvgl-latest/src/widgets/calendar/
Dlv_calendar_chinese.c22 uint8_t month; member
119 lv_calendar_set_month_shown(obj, calendar->today.year, calendar->today.month); in lv_calendar_set_chinese_mode()
133 if((chinese_calendar.today.month == festivals_base_chinese[i].month) && in lv_calendar_get_day_name()
136 if(chinese_calendar.today.month == 12 && chinese_calendar.today.day == 29) { in lv_calendar_get_day_name()
156 if((gregorian->month == festivals_base_gregorian[i].month) && in lv_calendar_get_day_name()
163 return chinese_calendar_month_name[chinese_calendar.today.month - 1]; in lv_calendar_get_day_name()
165 return chinese_calendar_leep_month_name[chinese_calendar.today.month - 1]; in lv_calendar_get_day_name()
175 uint8_t month = gregorian_time->month; in lv_calendar_gregorian_to_chinese() local
197 chinese_time->today.month = 1; in lv_calendar_gregorian_to_chinese()
207 by_gregorian = month_total_day[month - 1] + day - 1; in lv_calendar_gregorian_to_chinese()
[all …]
Dlv_calendar.c35 static uint8_t get_day_of_week(uint32_t year, uint32_t month, uint32_t day);
36 static uint8_t get_month_length(int32_t year, int32_t month);
95 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
101 calendar->today.month = month; in lv_calendar_set_today_date()
120 void lv_calendar_set_month_shown(lv_obj_t * obj, uint32_t year, uint32_t month) in lv_calendar_set_month_shown() argument
126 calendar->showed_date.month = month; in lv_calendar_set_month_shown()
131 d.month = calendar->showed_date.month; in lv_calendar_set_month_shown()
142 uint8_t act_mo_len = get_month_length(d.year, d.month); in lv_calendar_set_month_shown()
143 uint8_t day_first = get_day_of_week(d.year, d.month, 1); in lv_calendar_set_month_shown()
162 uint8_t prev_mo_len = get_month_length(d.year, d.month - 1); in lv_calendar_set_month_shown()
[all …]
Dlv_calendar_header_arrow.c116 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()
126 newd.month --; in month_event_cb()
130 if(newd.month == 12) { in month_event_cb()
131 newd.month = 1; 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()
[all …]
Dlv_calendar.h33 int8_t month; /**< 1..12 */ member
65 void lv_calendar_set_today_date(lv_obj_t * obj, uint32_t year, uint32_t month, uint32_t day);
73 void lv_calendar_set_month_shown(lv_obj_t * obj, uint32_t year, uint32_t month);
Dlv_calendar_header_dropdown.c136 newd.month = sel + 1; in month_event_cb()
138 lv_calendar_set_month_shown(calendar, newd.year, newd.month); in month_event_cb()
160 lv_calendar_set_month_shown(calendar, newd.year, newd.month); in year_event_cb()
180 lv_dropdown_set_selected(month_dd, cur_date->month - 1, LV_ANIM_OFF); in value_changed_event_cb()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_calendar.c50 today.month = 9; in test_calendar_set_today_date()
53 lv_calendar_set_today_date(g_calendar, today.year, today.month, today.day); in test_calendar_set_today_date()
58 TEST_ASSERT_EQUAL_INT16(today.month, date_after_test->month); in test_calendar_set_today_date()
67 today.month = 9; in test_calendar_set_today_date_gui()
70 lv_calendar_set_today_date(g_calendar, today.year, today.month, today.day); in test_calendar_set_today_date_gui()
88 highlighted_days[0].month = 2; in test_calendar_set_highlighted_dates()
92 highlighted_days[1].month = 2; in test_calendar_set_highlighted_dates()
96 highlighted_days[2].month = 2; in test_calendar_set_highlighted_dates()
105 TEST_ASSERT_EQUAL_INT16(highlighted_days[i].month, highlighted_days_after_test[i].month); in test_calendar_set_highlighted_dates()
115 highlighted_days[0].month = 2; in test_calendar_set_highlighted_dates_gui()
[all …]
/lvgl-latest/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()
30 highlighted_days[0].month = 02; in lv_example_calendar_1()
34 highlighted_days[1].month = 02; in lv_example_calendar_1()
38 highlighted_days[2].month = 02; in lv_example_calendar_1()
/lvgl-latest/docs/details/widgets/
Dcalendar.rst12 - show the days of any month in a 7x7 matrix;
22 year or month. Instead, there are optional "headers" that can be
41 …- days of the previous and next month have the :cpp:enumerator:`LV_BUTTONMATRIX_CTRL_DISABLED` flag
51 with ``year``, ``month`` and ``day`` fields.
57 :cpp:expr:`lv_calendar_set_today_date(calendar, year, month, day)` function.
58 ``month`` needs to be in 1..12 range and ``day`` in 1..31 range.
64 :cpp:expr:`lv_calendar_set_month_shown(calendar, year, month)`
159 current year and month.
165 contains 2 Drop-Drown List Widgets for the year and month.
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_2.c40 …static const char * month[] = {"Jan", "Febr", "March", "Apr", "May", "Jun", "July", "Aug", "Sept",… in lv_example_chart_2() local
41 lv_scale_set_text_src(scale_bottom, month); in lv_example_chart_2()
/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch_home.h95 …mo_smartwatch_home_set_time(int minute, int hour, const char * am_pm, int date, const char * month,
Dlv_demo_smartwatch.h122 …mo_smartwatch_home_set_time(int minute, int hour, const char * am_pm, int date, const char * month,
Dlv_demo_smartwatch_home.c174 …mo_smartwatch_home_set_time(int minute, int hour, const char * am_pm, int date, const char * month, in lv_demo_smartwatch_home_set_time() argument
180 lv_label_set_text_fmt(date_label, "%02d\n%s", date, month); in lv_demo_smartwatch_home_set_time()
/lvgl-latest/docs/details/integration/framework/
Dtasmota-berry.rst12 each month, and has an active and growing community.
/lvgl-latest/src/libs/lodepng/
Dlodepng.h474 unsigned month; /*1-12*/ member
Dlodepng.c5374 info->time.month = data[2]; in readChunk_tIME()
6202 chunk[10] = (unsigned char)time->month; in addChunk_tIME()
/lvgl-latest/demos/widgets/
Dlv_demo_widgets.c1346 lv_snprintf(buf, sizeof(buf), "%02d.%02d.%d", d.day, d.month, d.year); in calendar_event_cb()