mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-20 21:35:19 +08:00
feat(xml): add support for ext_click_area
This commit is contained in:
committed by
Liam Howatt
parent
717301aaa6
commit
d91bdc58b0
@@ -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));
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user