Lines Matching refs:width
64 static lv_coord_t convert_indent_pct(lv_obj_t * spans, lv_coord_t width);
329 lv_coord_t width = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_spangroup_refr_mode() local
330 if(LV_COORD_IS_PCT(width)) { in lv_spangroup_refr_mode()
331 width = 100; in lv_spangroup_refr_mode()
333 lv_coord_t height = lv_spangroup_get_expand_height(obj, width); in lv_spangroup_refr_mode()
368 uint32_t width = LV_COORD_IS_PCT(spans->indent) ? 0 : spans->indent; in lv_spangroup_get_expand_width() local
378 if(max_width > 0 && width >= max_width) { in lv_spangroup_get_expand_width()
384 width = width + letter_w + letter_space; in lv_spangroup_get_expand_width()
388 return width - letter_space; in lv_spangroup_get_expand_width()
391 lv_coord_t lv_spangroup_get_expand_height(lv_obj_t * obj, lv_coord_t width) in lv_spangroup_get_expand_height() argument
395 if(_lv_ll_get_head(&spans->child_ll) == NULL || width <= 0) { in lv_spangroup_get_expand_height()
402 lv_coord_t max_width = width; in lv_spangroup_get_expand_height()
552 lv_coord_t width = 0; in lv_spangroup_event() local
562 width = spans->cache_w; in lv_spangroup_event()
566 width = lv_obj_get_content_width(obj); in lv_spangroup_event()
568 if(width != spans->cache_w || spans->refresh) { in lv_spangroup_event()
569 height = lv_spangroup_get_expand_height(obj, width); in lv_spangroup_event()
570 spans->cache_w = width; in lv_spangroup_event()
580 width = self_size->x >= 0 ? lv_obj_get_content_width(obj) : 0; in lv_spangroup_event()
583 self_size->x = LV_MAX(self_size->x, width); in lv_spangroup_event()
734 static lv_coord_t convert_indent_pct(lv_obj_t * obj, lv_coord_t width) in convert_indent_pct() argument
744 indent = (width * LV_COORD_GET_PCT(spans->indent)) / 100; in convert_indent_pct()
992 … line_dsc.width = label_draw_dsc.font->underline_thickness ? pinfo->font->underline_thickness : 1; in lv_draw_span()
1000 p1.y = pos.y + ((pinfo->line_h - line_space) >> 1) + (line_dsc.width >> 1); in lv_draw_span()