Home
last modified time | relevance | path

Searched refs:day (Results 1 – 14 of 14) sorted by relevance

/lvgl-latest/tests/src/test_cases/widgets/
Dtest_calendar.c51 today.day = 21; 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()
59 TEST_ASSERT_EQUAL_INT16(today.day, date_after_test->day); in test_calendar_set_today_date()
68 today.day = 21; 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()
89 highlighted_days[0].day = 6; in test_calendar_set_highlighted_dates()
93 highlighted_days[1].day = 11; in test_calendar_set_highlighted_dates()
97 highlighted_days[2].day = 22; in test_calendar_set_highlighted_dates()
106 TEST_ASSERT_EQUAL_INT16(highlighted_days[i].day, highlighted_days_after_test[i].day); in test_calendar_set_highlighted_dates()
116 highlighted_days[0].day = 6; in test_calendar_set_highlighted_dates_gui()
[all …]
/lvgl-latest/src/widgets/calendar/
Dlv_calendar_chinese.c23 uint8_t day; member
134 (chinese_calendar.today.day == festivals_base_chinese[i].day) && in lv_calendar_get_day_name()
136 if(chinese_calendar.today.month == 12 && chinese_calendar.today.day == 29) { in lv_calendar_get_day_name()
157 (gregorian->day == festivals_base_gregorian[i].day)) in lv_calendar_get_day_name()
161 if(chinese_calendar.today.day == 1) { in lv_calendar_get_day_name()
169 return (char *)chinese_calendar_day_name[chinese_calendar.today.day - 1]; in lv_calendar_get_day_name()
176 uint8_t day = gregorian_time->day; in lv_calendar_gregorian_to_chinese() local
198 chinese_time->today.day = 1; in lv_calendar_gregorian_to_chinese()
207 by_gregorian = month_total_day[month - 1] + day - 1; in lv_calendar_gregorian_to_chinese()
240 day = by_gregorian + 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);
43 static void chinese_calendar_set_day_name(lv_obj_t * calendar, uint8_t index, uint8_t day,
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
102 calendar->today.day = day; in lv_calendar_set_today_date()
127 calendar->showed_date.day = 1; in lv_calendar_set_month_shown()
132 d.day = calendar->showed_date.day; in lv_calendar_set_month_shown()
154 gregorian_time.day = c; in lv_calendar_set_month_shown()
171 gregorian_time.day = c; in lv_calendar_set_month_shown()
187 gregorian_time.day = c; in lv_calendar_set_month_shown()
267 date->day = 0; in lv_calendar_get_pressed_date()
[all …]
Dlv_calendar.h34 int8_t day; /**< 1..31 */ member
65 void lv_calendar_set_today_date(lv_obj_t * obj, uint32_t year, uint32_t month, uint32_t day);
/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()
31 highlighted_days[0].day = 6; in lv_example_calendar_1()
35 highlighted_days[1].day = 11; in lv_example_calendar_1()
39 highlighted_days[2].day = 22; in lv_example_calendar_1()
/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch_weather.c30 static void set_weather_icon(lv_obj_t * obj, uint8_t id, bool day);
31 static const lv_img_dsc_t * get_weather_icon(uint8_t id, bool day);
104 void lv_demo_smartwatch_set_weather(int temp, uint8_t icon, bool day, int hour, int minute, const c… in lv_demo_smartwatch_set_weather() argument
110 set_weather_icon(weather_current_icon, icon, day); in lv_demo_smartwatch_set_weather()
113 lv_demo_smartwatch_home_set_weather(temp, get_weather_icon(icon, day)); in lv_demo_smartwatch_set_weather()
128 void lv_demo_smartwatch_weather_add_daily(int day, int temp, int id) in lv_demo_smartwatch_weather_add_daily() argument
156 lv_label_set_text(label_day, week_days[day % 7]); in lv_demo_smartwatch_weather_add_daily()
452 static void set_weather_icon(lv_obj_t * obj, uint8_t id, bool day) in set_weather_icon() argument
454 lv_image_set_src(obj, day ? weather_day_icons[id % 8] : weather_night_icons[id % 8]); in set_weather_icon()
457 static const lv_img_dsc_t * get_weather_icon(uint8_t id, bool day) in get_weather_icon() argument
[all …]
Dlv_demo_smartwatch.h203 void lv_demo_smartwatch_set_weather(int temp, uint8_t icon, bool day, int hour, int minute, const c…
221 void lv_demo_smartwatch_weather_add_daily(int day, int temp, int id);
Dlv_demo_smartwatch_weather.h68 void lv_demo_smartwatch_weather_add_daily(int day, int temp, int id);
/lvgl-latest/docs/details/widgets/
Dcalendar.rst14 - highlight the current day (today);
36 - :cpp:enumerator:`LV_PART_ITEMS` Refers to dates and day names. Button matrix
40 - day names have no border, no background and are drawn with a gray color
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.
81 pointer of the day names is saved so the array should have static or
/lvgl-latest/demos/ebike/
Dlv_demo_ebike_stats.c215 int32_t day = lv_subject_get_int(&subject_day); in current_data_objserver_cb() local
218 lv_label_set_text_fmt(label, "%dkm/h", avg_speed_values[day]); in current_data_objserver_cb()
221 lv_label_set_text_fmt(label, "%dkm/h", top_speed_values[day]); in current_data_objserver_cb()
224 lv_label_set_text_fmt(label, "%dkm", distance_values[day]); in current_data_objserver_cb()
305 uint32_t day = lv_subject_get_int(&subject_day); in chart_draw_event_cb() local
308 lv_chart_get_point_pos_by_id(chart, lv_chart_get_series_next(chart, NULL), day, &p); in chart_draw_event_cb()
459 int32_t day = lv_subject_get_int(&subject_day); in chart_day_observer_cb() local
461 lv_subject_set_int(&subject_avg_speed, avg_speed_values[day]); in chart_day_observer_cb()
462 lv_subject_set_int(&subject_distance, distance_values[day]); in chart_day_observer_cb()
463 lv_subject_set_int(&subject_top_speed, top_speed_values[day]); in chart_day_observer_cb()
/lvgl-latest/src/libs/lodepng/
Dlodepng.h475 unsigned day; /*1-31*/ member
Dlodepng.c5375 info->time.day = data[3]; in readChunk_tIME()
6203 chunk[11] = (unsigned char)time->day; 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()
/lvgl-latest/docs/_static/css/
Dfontawesome.min.css5 …ore{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f7…