Searched refs:SET_STYLE_IF (Results 1 – 2 of 2) sorted by relevance
/lvgl-latest/src/others/xml/ |
D | lv_xml_style.c | 45 #define SET_STYLE_IF(prop, value) if(lv_streq(name, #prop)) lv_style_set_##prop(style, value) macro 113 SET_STYLE_IF(width, lv_xml_to_size(value)); in lv_xml_style_register() 114 else SET_STYLE_IF(height, lv_xml_to_size(value)); in lv_xml_style_register() 115 else SET_STYLE_IF(length, lv_xml_to_size(value)); in lv_xml_style_register() 116 else SET_STYLE_IF(radius, lv_xml_to_size(value)); in lv_xml_style_register() 118 else SET_STYLE_IF(pad_left, lv_xml_atoi(value)); in lv_xml_style_register() 119 else SET_STYLE_IF(pad_right, lv_xml_atoi(value)); in lv_xml_style_register() 120 else SET_STYLE_IF(pad_top, lv_xml_atoi(value)); in lv_xml_style_register() 121 else SET_STYLE_IF(pad_bottom, lv_xml_atoi(value)); in lv_xml_style_register() 122 else SET_STYLE_IF(pad_hor, lv_xml_atoi(value)); in lv_xml_style_register() [all …]
|
/lvgl-latest/src/others/xml/parsers/ |
D | lv_xml_obj_parser.c | 39 #define SET_STYLE_IF(prop, value) if(lv_streq(prop_name, "style_" #prop)) lv_obj_set_style_##prop(o… macro 128 SET_STYLE_IF(width, lv_xml_to_size(value)); in apply_styles() 129 else SET_STYLE_IF(height, lv_xml_to_size(value)); in apply_styles() 130 else SET_STYLE_IF(length, lv_xml_to_size(value)); in apply_styles() 131 else SET_STYLE_IF(radius, lv_xml_to_size(value)); in apply_styles() 133 else SET_STYLE_IF(pad_left, lv_xml_atoi(value)); in apply_styles() 134 else SET_STYLE_IF(pad_right, lv_xml_atoi(value)); in apply_styles() 135 else SET_STYLE_IF(pad_top, lv_xml_atoi(value)); in apply_styles() 136 else SET_STYLE_IF(pad_bottom, lv_xml_atoi(value)); in apply_styles() 137 else SET_STYLE_IF(pad_hor, lv_xml_atoi(value)); in apply_styles() [all …]
|