feat(xml): add support for ext_click_area

This commit is contained in:
Gabor Kiss-Vamosi
2025-05-14 14:27:01 +02:00
committed by Liam Howatt
parent 717301aaa6
commit d91bdc58b0
2 changed files with 3 additions and 0 deletions
@@ -72,6 +72,7 @@ void lv_xml_obj_apply(lv_xml_parser_state_t * state, const char ** attrs)
else if(lv_streq("align", name)) lv_obj_set_align(item, lv_xml_align_to_enum(value));
else if(lv_streq("flex_flow", name)) lv_obj_set_flex_flow(item, lv_xml_flex_flow_to_enum(value));
else if(lv_streq("flex_grow", name)) lv_obj_set_flex_grow(item, lv_xml_atoi(value));
else if(lv_streq("ext_click_area", name)) lv_obj_set_ext_click_area(item, lv_xml_atoi(value));
else if(lv_streq("hidden", name)) lv_obj_set_flag(item, LV_OBJ_FLAG_HIDDEN, lv_xml_to_bool(value));
else if(lv_streq("clickable", name)) lv_obj_set_flag(item, LV_OBJ_FLAG_CLICKABLE, lv_xml_to_bool(value));
+2
View File
@@ -48,6 +48,8 @@ Example
<prop name="align" type="enum:lv_align"/>
<prop name="styles" type="styles[]"/>
<prop name="ext_click_area" type="int"/>
<prop name="style_x" type="coords"/>
<prop name="style_y" type="coords"/>
<prop name="style_height" type="coords"/>