chore(xml): add API docs to lv_xml_update_from_data (#8967)

Co-authored-by: Liam Howatt <30486941+liamHowatt@users.noreply.github.com>
This commit is contained in:
Gabor Kiss-Vamosi
2025-09-30 20:26:37 +02:00
committed by GitHub
parent 0fe7013124
commit 89d7d11a13
+4 -2
View File
@@ -25,8 +25,10 @@ extern "C" {
**********************/
/**
* Load the styles, constants, another data of the component. It needs to be called only once for each component.
* @param xml_def the XML definition of the component as a NULL terminated string
* Change the properties of a given widget by processing XML snippets.
* For example `<lv_slider name="my_slider_1" min_value="30" "style_bg_color="0xff0000"/>`
* Note that the tag should be the underlying widget's name and the component's name.
* @param xml_def the XML to process as a string
* @return LV_RESULT_OK: loaded successfully, LV_RES_INVALID: otherwise
*/
lv_result_t lv_xml_update_from_data(const char * xml_def);