mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-21 05:51:45 +08:00
feat(xml): add rotation in arc xml parser (#8899)
This commit is contained in:
committed by
GitHub
parent
328fac2a0f
commit
3f74f2b00d
@@ -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));
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user