Searched refs:spans (Results 1 – 4 of 4) sorted by relevance
/lvgl-latest/examples/widgets/span/ |
D | lv_example_span_1.c | 15 lv_obj_t * spans = lv_spangroup_create(lv_scr_act()); in lv_example_span_1() local 16 lv_obj_set_width(spans, 300); in lv_example_span_1() 17 lv_obj_set_height(spans, 300); in lv_example_span_1() 18 lv_obj_center(spans); in lv_example_span_1() 19 lv_obj_add_style(spans, &style, 0); in lv_example_span_1() 21 lv_spangroup_set_align(spans, LV_TEXT_ALIGN_LEFT); in lv_example_span_1() 22 lv_spangroup_set_overflow(spans, LV_SPAN_OVERFLOW_CLIP); in lv_example_span_1() 23 lv_spangroup_set_indent(spans, 20); in lv_example_span_1() 24 lv_spangroup_set_mode(spans, LV_SPAN_MODE_BREAK); in lv_example_span_1() 26 lv_span_t * span = lv_spangroup_new_span(spans); in lv_example_span_1() [all …]
|
D | lv_example_span_1.py | 10 spans = lv.spangroup(lv.scr_act()) variable 11 spans.set_width(300) 12 spans.set_height(300) 13 spans.center() 14 spans.add_style(style, 0) 16 spans.set_align(lv.TEXT_ALIGN.LEFT) 17 spans.set_overflow(lv.SPAN_OVERFLOW.CLIP) 18 spans.set_indent(20) 19 spans.set_mode(lv.SPAN_MODE.BREAK) 21 span = spans.new_span() [all …]
|
/lvgl-latest/src/extra/widgets/span/ |
D | lv_span.c | 64 static lv_coord_t convert_indent_pct(lv_obj_t * spans, lv_coord_t width); 103 lv_spangroup_t * spans = (lv_spangroup_t *)obj; in lv_spangroup_new_span() local 104 lv_span_t * span = _lv_ll_ins_tail(&spans->child_ll); in lv_spangroup_new_span() 124 lv_spangroup_t * spans = (lv_spangroup_t *)obj; in lv_spangroup_del_span() local 126 _LV_LL_READ(&spans->child_ll, cur_span) { in lv_spangroup_del_span() 128 _lv_ll_remove(&spans->child_ll, cur_span); in lv_spangroup_del_span() 186 lv_spangroup_t * spans = (lv_spangroup_t *)obj; in lv_spangroup_set_overflow() local 187 if(spans->overflow == overflow) return; in lv_spangroup_set_overflow() 189 spans->overflow = overflow; in lv_spangroup_set_overflow() 196 lv_spangroup_t * spans = (lv_spangroup_t *)obj; in lv_spangroup_set_indent() local [all …]
|
/lvgl-latest/docs/widgets/extra/ |
D | span.md | 26 Use the function `lv_spangroup_get_child_cnt(spangroup)` to get back the number of spans the group …
|