feat(xml): add rotation in arc xml parser (#8899)

This commit is contained in:
Giovanni Bauermeister
2025-09-17 01:07:20 -03:00
committed by GitHub
parent 328fac2a0f
commit 3f74f2b00d
2 changed files with 2 additions and 0 deletions
@@ -58,6 +58,7 @@ void lv_xml_arc_apply(lv_xml_parser_state_t * state, const char ** attrs)
else if(lv_streq("end_angle", name)) lv_arc_set_end_angle(item, lv_xml_atoi(value));
else if(lv_streq("bg_start_angle", name)) lv_arc_set_bg_start_angle(item, lv_xml_atoi(value));
else if(lv_streq("bg_end_angle", name)) lv_arc_set_bg_end_angle(item, lv_xml_atoi(value));
else if(lv_streq("rotation", name)) lv_arc_set_rotation(item, lv_xml_atoi(value));
else if(lv_streq("value", name)) lv_arc_set_value(item, lv_xml_atoi(value));
else if(lv_streq("min_value", name)) lv_arc_set_min_value(item, lv_xml_atoi(value));
else if(lv_streq("max_value", name)) lv_arc_set_max_value(item, lv_xml_atoi(value));
+1
View File
@@ -15,6 +15,7 @@ Example
<prop name="end_angle" type="int" help="End angles of the indicator"/>
<prop name="bg_start_angle" type="int" help="Start angles of the background"/>
<prop name="bg_end_angle" type="int" help="End angles of the background"/>
<prop name="rotation" type="int" help="Rotation angle of the whole arc"/>
<prop name="min_value" type="int"/>
<prop name="max_value" type="int"/>
<prop name="value" type="int" help="The current value"/>