Lines Matching refs:prop_cnt
154 if(style->sentinel == LV_STYLE_SENTINEL_VALUE && style->prop_cnt > 1) { in lv_style_init()
174 if(style->prop_cnt > 1) lv_mem_free(style->v_p.values_and_props); in lv_style_reset()
231 if(style->prop_cnt == 0) return false; in lv_style_remove_prop()
233 if(style->prop_cnt == 1) { in lv_style_remove_prop()
236 style->prop_cnt = 0; in lv_style_remove_prop()
242 uint8_t * tmp = style->v_p.values_and_props + style->prop_cnt * sizeof(lv_style_value_t); in lv_style_remove_prop()
245 for(i = 0; i < style->prop_cnt; i++) { in lv_style_remove_prop()
249 if(style->prop_cnt == 2) { in lv_style_remove_prop()
250 style->prop_cnt = 1; in lv_style_remove_prop()
255 size_t size = (style->prop_cnt - 1) * (sizeof(lv_style_value_t) + sizeof(uint16_t)); in lv_style_remove_prop()
259 style->prop_cnt--; in lv_style_remove_prop()
261 tmp = new_values_and_props + style->prop_cnt * sizeof(lv_style_value_t); in lv_style_remove_prop()
266 for(i = j = 0; j <= style->prop_cnt; in lv_style_remove_prop()
371 return style->prop_cnt == 0 ? true : false; in lv_style_is_empty()
427 if(style->prop_cnt > 1) { in lv_style_set_prop_internal()
428 uint8_t * tmp = style->v_p.values_and_props + style->prop_cnt * sizeof(lv_style_value_t); in lv_style_set_prop_internal()
431 for(i = style->prop_cnt - 1; i >= 0; i--) { in lv_style_set_prop_internal()
439 size_t size = (style->prop_cnt + 1) * (sizeof(lv_style_value_t) + sizeof(uint16_t)); in lv_style_set_prop_internal()
444 tmp = values_and_props + style->prop_cnt * sizeof(lv_style_value_t); in lv_style_set_prop_internal()
447 for(i = style->prop_cnt - 1; i >= 0; i--) { in lv_style_set_prop_internal()
450 style->prop_cnt++; in lv_style_set_prop_internal()
453 tmp = values_and_props + style->prop_cnt * sizeof(lv_style_value_t); in lv_style_set_prop_internal()
458 …ue_adjustment_helper(prop_and_meta, value, &props[style->prop_cnt - 1], &values[style->prop_cnt - … in lv_style_set_prop_internal()
460 else if(style->prop_cnt == 1) { in lv_style_set_prop_internal()
465 size_t size = (style->prop_cnt + 1) * (sizeof(lv_style_value_t) + sizeof(uint16_t)); in lv_style_set_prop_internal()
470 style->prop_cnt++; in lv_style_set_prop_internal()
472 uint8_t * tmp = values_and_props + style->prop_cnt * sizeof(lv_style_value_t); in lv_style_set_prop_internal()
480 style->prop_cnt = 1; in lv_style_set_prop_internal()