refactor(draw_hook): rename lv_obj_draw_hook_dsc_t to lv_obj_draw_dsc_t

Based on #2142
This commit is contained in:
Gabor Kiss-Vamosi
2021-03-17 09:27:19 +01:00
parent 7f32ffe203
commit 85f21a1345
14 changed files with 170 additions and 170 deletions

View File

@@ -5,7 +5,7 @@
static void event_cb(lv_obj_t * obj, lv_event_t e)
{
if(e == LV_EVENT_DRAW_PART_BEGIN) {
lv_obj_draw_hook_dsc_t * dsc = lv_event_get_param();
lv_obj_draw_dsc_t * dsc = lv_event_get_param();
/*Change the draw descriptor the 2nd button */
if(dsc->id == 1) {
@@ -32,7 +32,7 @@ static void event_cb(lv_obj_t * obj, lv_event_t e)
}
}
if(e == LV_EVENT_DRAW_PART_END) {
lv_obj_draw_hook_dsc_t * dsc = lv_event_get_param();
lv_obj_draw_dsc_t * dsc = lv_event_get_param();
/*Add custom content to the 4th button when the button itself was drawn*/
if(dsc->id == 3) {