/lvgl-latest/src/extra/widgets/calendar/ |
D | lv_calendar.c | 36 static void highlight_update(lv_obj_t * calendar); 75 lv_calendar_t * calendar = (lv_calendar_t *)obj; in lv_calendar_set_day_names() local 79 calendar->map[i] = day_names[i]; in lv_calendar_set_day_names() 87 lv_calendar_t * calendar = (lv_calendar_t *)obj; in lv_calendar_set_today_date() local 89 calendar->today.year = year; in lv_calendar_set_today_date() 90 calendar->today.month = month; in lv_calendar_set_today_date() 91 calendar->today.day = day; in lv_calendar_set_today_date() 101 lv_calendar_t * calendar = (lv_calendar_t *)obj; in lv_calendar_set_highlighted_dates() local 103 calendar->highlighted_dates = highlighted; in lv_calendar_set_highlighted_dates() 104 calendar->highlighted_dates_num = date_num; in lv_calendar_set_highlighted_dates() [all …]
|
D | lv_calendar_header_dropdown.c | 118 lv_obj_t * calendar = lv_obj_get_parent(obj); in my_constructor() local 124 lv_obj_add_event_cb(year_dd, year_event_cb, LV_EVENT_VALUE_CHANGED, calendar); in my_constructor() 129 lv_obj_add_event_cb(month_dd, month_event_cb, LV_EVENT_VALUE_CHANGED, calendar); in my_constructor() 140 lv_obj_t * calendar = lv_event_get_user_data(e); in month_event_cb() local 145 d = lv_calendar_get_showed_date(calendar); in month_event_cb() 149 lv_calendar_set_showed_date(calendar, newd.year, newd.month); in month_event_cb() 155 lv_obj_t * calendar = lv_event_get_user_data(e); in year_event_cb() local 160 d = lv_calendar_get_showed_date(calendar); in year_event_cb() 171 lv_calendar_set_showed_date(calendar, newd.year, newd.month); in year_event_cb() 177 lv_obj_t * calendar = lv_obj_get_parent(header); in value_changed_event_cb() local [all …]
|
D | lv_calendar.h | 119 const lv_calendar_date_t * lv_calendar_get_today_date(const lv_obj_t * calendar); 126 const lv_calendar_date_t * lv_calendar_get_showed_date(const lv_obj_t * calendar); 133 lv_calendar_date_t * lv_calendar_get_highlighted_dates(const lv_obj_t * calendar); 140 uint16_t lv_calendar_get_highlighted_dates_num(const lv_obj_t * calendar); 148 lv_res_t lv_calendar_get_pressed_date(const lv_obj_t * calendar, lv_calendar_date_t * date);
|
D | lv_calendar_header_arrow.c | 106 lv_obj_t * calendar = lv_obj_get_parent(header); in month_event_cb() local 109 d = lv_calendar_get_showed_date(calendar); in month_event_cb() 132 lv_calendar_set_showed_date(calendar, newd.year, newd.month); in month_event_cb() 141 lv_obj_t * calendar = lv_obj_get_parent(header); in value_changed_event_cb() local 143 const lv_calendar_date_t * cur_date = lv_calendar_get_showed_date(calendar); in value_changed_event_cb()
|
/lvgl-latest/examples/widgets/calendar/ |
D | lv_example_calendar_1.py | 9 calendar.set_today_date(date.year, date.month, date.day) 13 calendar = lv.calendar(lv.scr_act()) variable 14 calendar.set_size(200, 200) 15 calendar.align(lv.ALIGN.CENTER, 0, 20) 16 calendar.add_event_cb(event_handler, lv.EVENT.ALL, None) 18 calendar.set_today_date(2021, 02, 23) 19 calendar.set_showed_date(2021, 02) 28 calendar.set_highlighted_dates(highlighted_days, len(highlighted_days)) 30 lv.calendar_header_dropdown(calendar)
|
D | lv_example_calendar_1.c | 19 lv_obj_t * calendar = lv_calendar_create(lv_scr_act()); in lv_example_calendar_1() local 20 lv_obj_set_size(calendar, 185, 185); in lv_example_calendar_1() 21 lv_obj_align(calendar, LV_ALIGN_CENTER, 0, 27); in lv_example_calendar_1() 22 lv_obj_add_event_cb(calendar, event_handler, LV_EVENT_ALL, NULL); in lv_example_calendar_1() 24 lv_calendar_set_today_date(calendar, 2021, 02, 23); in lv_example_calendar_1() 25 lv_calendar_set_showed_date(calendar, 2021, 02); in lv_example_calendar_1() 41 lv_calendar_set_highlighted_dates(calendar, highlighted_days, 3); in lv_example_calendar_1() 44 lv_calendar_header_dropdown_create(calendar); in lv_example_calendar_1() 46 lv_calendar_header_arrow_create(calendar); in lv_example_calendar_1() 48 lv_calendar_set_showed_date(calendar, 2021, 10); in lv_example_calendar_1()
|
D | index.rst | 5 .. lv_example:: widgets/calendar/lv_example_calendar_1
|
/lvgl-latest/docs/widgets/extra/ |
D | calendar.md | 7 The Calendar object is a classic calendar which can: 15 … current year or month. Instead, there are optional "headers" that can be attached to the calendar. 20 … the hood to arrange the days into a matrix. `lv_calendar_get_btnmatrix(calendar)` can be used to … 21 … - `LV_PART_MAIN` The background of the calendar. Uses all the background related style properties. 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)`; 41 …`lv_calendar_date_t` array loaded by `lv_calendar_set_highlighted_dates(calendar, highlighted_date… 45 The name of the days can be adjusted with `lv_calendar_set_day_names(calendar, day_names)` where `d… 50 Sets a custom year list with `lv_calendar_header_dropdown_set_year_list(calendar, years_list)` 56 - `LV_EVENT_VALUE_CHANGED` Sent if a date is clicked. `lv_calendar_get_pressed_date(calendar, &date… [all …]
|
D | index.md | 9 calendar
|
/lvgl-latest/ |
D | component.mk | 19 src/extra/widgets/calendar \
|
D | Kconfig | 824 bool "Use calendar header arrow" 828 bool "Use calendar header dropdown"
|
/lvgl-latest/demos/widgets/ |
D | lv_demo_widgets.c | 63 static lv_obj_t * calendar; variable 1247 if(calendar == NULL) { in birthday_event_cb() 1249 calendar = lv_calendar_create(lv_layer_top()); in birthday_event_cb() 1252 if(disp_size == DISP_SMALL) lv_obj_set_size(calendar, 180, 200); in birthday_event_cb() 1253 else if(disp_size == DISP_MEDIUM) lv_obj_set_size(calendar, 200, 220); in birthday_event_cb() 1254 else lv_obj_set_size(calendar, 300, 330); in birthday_event_cb() 1255 lv_calendar_set_showed_date(calendar, 1990, 01); in birthday_event_cb() 1256 lv_obj_align(calendar, LV_ALIGN_CENTER, 0, 30); in birthday_event_cb() 1257 lv_obj_add_event_cb(calendar, calendar_event_cb, LV_EVENT_ALL, ta); in birthday_event_cb() 1259 lv_calendar_header_dropdown_create(calendar); in birthday_event_cb() [all …]
|
D | lv_demo_widgets.py | 470 cal = lv.calendar(parent, None)
|
/lvgl-latest/src/extra/ |
D | README.md | 20 - New [Calendar headers](https://github.com/lvgl/lvgl/tree/master/src/extra/widgets/calendar)
|
/lvgl-latest/docs/_static/css/ |
D | fontawesome.min.css | 5 …calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{…
|
/lvgl-latest/docs/ |
D | CHANGELOG.md | 69 - docs(calendar): update according to v8.2 changes [`a296456`](https://github.com/lvgl/lvgl/commit/… 473 - fix(calendar): fix infinite loop caused by loop variable type mismatch [`3230`](https://github.co… 485 - fix(calendar): fix possible array access out of bounds [`3223`](https://github.com/lvgl/lvgl/pull… 921 - :warning: feat(calendar): add the header directly into the calendar widget [`2e08f80`](https://gi… 960 - feat(calendar) improve MicroPython example [`2366`](https://github.com/lvgl/lvgl/pull/2366) 1153 - fix(calendar) update the MP example [`0bab4a7`](https://github.com/lvgl/lvgl/commit/0bab4a72cf769… 1180 - fix(calendar) fix calculation today and highlighted day [`8f0b5ab`](https://github.com/lvgl/lvgl/… 1224 - fix(calendar) fix the position calculation today [`ad05e19`](https://github.com/lvgl/lvgl/commit/… 1261 - fix(calendar) fix incorrect highlight of today [`adbac52`](https://github.com/lvgl/lvgl/commit/ad… 1572 - fix(calendar) fix the position calculation today <a href="https://github.com/lvgl/lvgl/commit/ad0… [all …]
|