chore(property): use change API word order to make it consistent (#4941)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2023-12-06 16:16:26 +08:00
committed by GitHub
parent 9f0709888c
commit 888e043af1
2 changed files with 2 additions and 2 deletions

View File

@@ -71,4 +71,4 @@ all properties to an array now and set properties with a for loop.
{ .id = LV_STYLE_BG_COLOR, .color = (lv_color_t){.red = 0x11, .green = 0x22, .blue = 0x33}, },
}
LV_OBJ_PROPERTY_ARRAY_SET(obj, props);
LV_OBJ_SET_PROPERTY_ARRAY(obj, props);

View File

@@ -41,7 +41,7 @@ struct _lv_obj_t;
#define LV_PROPERTY_ID_INDEX(id) ((id) & 0xfffffff)
/*Set properties from an array of lv_property_t*/
#define LV_OBJ_PROPERTY_ARRAY_SET(obj, array) lv_obj_set_properties(obj, array, sizeof(array)/sizeof(array[0]))
#define LV_OBJ_SET_PROPERTY_ARRAY(obj, array) lv_obj_set_properties(obj, array, sizeof(array)/sizeof(array[0]))
/**
* Group of predefined widget ID start value.