1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

pressed date getter

A getter function added for pressed_date.
This commit is contained in:
Ali Rostami 2018-10-16 18:01:57 +03:30 committed by GitHub
parent 071b10f3f4
commit 6610929eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,6 +361,17 @@ lv_calendar_date_t * lv_calendar_get_showed_date(const lv_obj_t * calendar)
return &ext->showed_date; return &ext->showed_date;
} }
/**
* Get the the pressed date.
* @param calendar pointer to a calendar object
* @return pointer to an `lv_calendar_date_t` variable containing the pressed date.
*/
lv_calendar_date_t * lv_calendar_get_pressed_date(const lv_obj_t * calendar)
{
lv_calendar_ext_t * ext = lv_obj_get_ext_attr(calendar);
return &ext->pressed_date;
}
/** /**
* Get the the highlighted dates * Get the the highlighted dates
* @param calendar pointer to a calendar object * @param calendar pointer to a calendar object