fix(group): make lv_obj_get_group return lv_group_t * instead of void *

This commit is contained in:
Gabor Kiss-Vamosi
2022-09-10 08:41:06 +02:00
parent eb54353f00
commit 61475e5a5f
2 changed files with 2 additions and 2 deletions

View File

@@ -397,7 +397,7 @@ bool lv_obj_has_state(const lv_obj_t * obj, lv_state_t state)
return obj->state & state ? true : false; return obj->state & state ? true : false;
} }
void * lv_obj_get_group(const lv_obj_t * obj) lv_group_t * lv_obj_get_group(const lv_obj_t * obj)
{ {
LV_ASSERT_OBJ(obj, MY_CLASS); LV_ASSERT_OBJ(obj, MY_CLASS);

View File

@@ -311,7 +311,7 @@ bool lv_obj_has_state(const lv_obj_t * obj, lv_state_t state);
* @param obj pointer to an object * @param obj pointer to an object
* @return the pointer to group of the object * @return the pointer to group of the object
*/ */
void * lv_obj_get_group(const lv_obj_t * obj); lv_group_t * lv_obj_get_group(const lv_obj_t * obj);
/** /**
* Get the user_data field of the object * Get the user_data field of the object