1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(lv_obj_style): move lv_obj_remove_style_all implementation to c file (#3709)

This commit is contained in:
tripathiu 2022-09-29 10:27:37 +05:30 committed by GitHub
parent 2888b450f2
commit 2ce16a4392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -152,6 +152,11 @@ void lv_obj_remove_style(lv_obj_t * obj, const lv_style_t * style, lv_style_sele
}
}
void lv_obj_remove_style_all(struct _lv_obj_t * obj)
{
lv_obj_remove_style(obj, NULL, LV_PART_ANY | LV_STATE_ANY);
}
void lv_obj_report_style_change(lv_style_t * style)
{
if(!style_refr) return;

View File

@ -89,10 +89,7 @@ void lv_obj_remove_style(struct _lv_obj_t * obj, const lv_style_t * style, lv_st
* Remove all styles from an object
* @param obj pointer to an object
*/
static inline void lv_obj_remove_style_all(struct _lv_obj_t * obj)
{
lv_obj_remove_style(obj, NULL, LV_PART_ANY | LV_STATE_ANY);
}
void lv_obj_remove_style_all(struct _lv_obj_t * obj);
/**
* Notify all object if a style is modified