/lvgl-3.7.0/src/extra/widgets/led/ |
D | lv_led.c | 176 lv_draw_rect_dsc_t rect_dsc; in lv_led_event() local 177 lv_draw_rect_dsc_init(&rect_dsc); in lv_led_event() 178 lv_obj_init_draw_rect_dsc(obj, LV_PART_MAIN, &rect_dsc); in lv_led_event() 181 …rect_dsc.bg_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.bg_col… in lv_led_event() 182 rect_dsc.bg_grad.stops[0].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event() 183 … lv_color_brightness(rect_dsc.bg_grad.stops[0].color)); in lv_led_event() 184 rect_dsc.bg_grad.stops[1].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event() 185 … lv_color_brightness(rect_dsc.bg_grad.stops[1].color)); in lv_led_event() 186 …rect_dsc.shadow_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.sh… in lv_led_event() 187 …rect_dsc.border_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.bo… in lv_led_event() [all …]
|
/lvgl-3.7.0/examples/widgets/canvas/ |
D | lv_example_canvas_1.c | 9 lv_draw_rect_dsc_t rect_dsc; in lv_example_canvas_1() local 10 lv_draw_rect_dsc_init(&rect_dsc); in lv_example_canvas_1() 11 rect_dsc.radius = 10; in lv_example_canvas_1() 12 rect_dsc.bg_opa = LV_OPA_COVER; in lv_example_canvas_1() 13 rect_dsc.bg_grad.dir = LV_GRAD_DIR_HOR; in lv_example_canvas_1() 14 rect_dsc.bg_grad.stops[0].color = lv_palette_main(LV_PALETTE_RED); in lv_example_canvas_1() 15 rect_dsc.bg_grad.stops[1].color = lv_palette_main(LV_PALETTE_BLUE); in lv_example_canvas_1() 16 rect_dsc.border_width = 2; in lv_example_canvas_1() 17 rect_dsc.border_opa = LV_OPA_90; in lv_example_canvas_1() 18 rect_dsc.border_color = lv_color_white(); in lv_example_canvas_1() [all …]
|
D | lv_example_canvas_1.py | 5 rect_dsc = lv.draw_rect_dsc_t() variable 6 rect_dsc.init() 7 rect_dsc.radius = 10 8 rect_dsc.bg_opa = lv.OPA.COVER 9 rect_dsc.bg_grad.dir = lv.GRAD_DIR.HOR 10 rect_dsc.bg_grad.stops[0].color = lv.palette_main(lv.PALETTE.RED) 11 rect_dsc.bg_grad.stops[1].color = lv.palette_main(lv.PALETTE.BLUE) 12 rect_dsc.border_width = 2 13 rect_dsc.border_opa = lv.OPA._90 14 rect_dsc.border_color = lv.color_white() [all …]
|
/lvgl-3.7.0/examples/widgets/btnmatrix/ |
D | lv_example_btnmatrix_2.c | 15 dsc->rect_dsc->radius = 0; in event_cb() 16 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb() 17 else dsc->rect_dsc->bg_color = lv_palette_main(LV_PALETTE_BLUE); in event_cb() 19 dsc->rect_dsc->shadow_width = 6; in event_cb() 20 dsc->rect_dsc->shadow_ofs_x = 3; in event_cb() 21 dsc->rect_dsc->shadow_ofs_y = 3; in event_cb() 26 dsc->rect_dsc->radius = LV_RADIUS_CIRCLE; in event_cb() 27 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb() 28 else dsc->rect_dsc->bg_color = lv_palette_main(LV_PALETTE_RED); in event_cb()
|
D | lv_example_btnmatrix_2.py | 28 dsc.rect_dsc.radius = 0 30 dsc.rect_dsc.bg_color = lv.palette_darken(lv.PALETTE.GREY, 3) 32 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.BLUE) 34 dsc.rect_dsc.shadow_width = 6 35 dsc.rect_dsc.shadow_ofs_x = 3 36 dsc.rect_dsc.shadow_ofs_y = 3 42 dsc.rect_dsc.radius = lv.RADIUS.CIRCLE 44 dsc.rect_dsc.bg_color = lv.palette_darken(lv.PALETTE.RED, 3) 46 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.RED)
|
/lvgl-3.7.0/examples/widgets/table/ |
D | lv_example_table_1.c | 16 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_BLUE), dsc->rect_dsc->bg_color, … in draw_part_event_cb() 17 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb() 26 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_GREY), dsc->rect_dsc->bg_color, … in draw_part_event_cb() 27 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
|
D | lv_example_table_1.py | 12 …dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.BLUE).color_mix(dsc.rect_dsc.bg_color, lv.OPA._… 13 dsc.rect_dsc.bg_opa = lv.OPA.COVER 21 …dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.GREY).color_mix(dsc.rect_dsc.bg_color, lv.OPA._… 22 dsc.rect_dsc.bg_opa = lv.OPA.COVER
|
D | lv_example_table_2.c | 14 lv_draw_rect_dsc_t rect_dsc; in draw_event_cb() local 15 lv_draw_rect_dsc_init(&rect_dsc); in draw_event_cb() 16 …rect_dsc.bg_color = chk ? lv_theme_get_color_primary(obj) : lv_palette_lighten(LV_PALETTE_GREY, 2); in draw_event_cb() 17 rect_dsc.radius = LV_RADIUS_CIRCLE; in draw_event_cb() 24 lv_draw_rect(dsc->draw_ctx, &rect_dsc, &sw_area); in draw_event_cb() 26 rect_dsc.bg_color = lv_color_white(); in draw_event_cb() 37 lv_draw_rect(dsc->draw_ctx, &rect_dsc, &sw_area); in draw_event_cb()
|
D | lv_example_table_2.py | 13 rect_dsc = lv.draw_rect_dsc_t() 14 rect_dsc.init() 17 rect_dsc.bg_color = lv.theme_get_color_primary(obj) 19 rect_dsc.bg_color = lv.palette_lighten(lv.PALETTE.GREY, 2) 21 rect_dsc.radius = lv.RADIUS.CIRCLE 28 dsc.draw_ctx.rect(rect_dsc, sw_area) 30 rect_dsc.bg_color = lv.color_white() 40 dsc.draw_ctx.rect(rect_dsc, sw_area)
|
/lvgl-3.7.0/tests/src/test_cases/ |
D | test_table.c | 136 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_BLUE), dsc->rect_dsc->bg_color, … in draw_part_event_cb() 137 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb() 146 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_RED), dsc->rect_dsc->bg_color, L… in draw_part_event_cb() 147 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
|
/lvgl-3.7.0/src/extra/widgets/calendar/ |
D | lv_calendar.c | 297 dsc->rect_dsc->bg_opa = LV_OPA_TRANSP; in draw_part_begin_event_cb() 298 dsc->rect_dsc->border_opa = LV_OPA_TRANSP; in draw_part_begin_event_cb() 301 dsc->rect_dsc->bg_opa = LV_OPA_TRANSP; in draw_part_begin_event_cb() 302 dsc->rect_dsc->border_opa = LV_OPA_TRANSP; in draw_part_begin_event_cb() 307 dsc->rect_dsc->bg_opa = LV_OPA_40; in draw_part_begin_event_cb() 308 dsc->rect_dsc->bg_color = lv_theme_get_color_primary(obj); in draw_part_begin_event_cb() 310 dsc->rect_dsc->bg_opa = LV_OPA_70; in draw_part_begin_event_cb() 315 dsc->rect_dsc->border_opa = LV_OPA_COVER; in draw_part_begin_event_cb() 316 dsc->rect_dsc->border_color = lv_theme_get_color_primary(obj); in draw_part_begin_event_cb() 317 dsc->rect_dsc->border_width += 1; in draw_part_begin_event_cb()
|
/lvgl-3.7.0/examples/widgets/chart/ |
D | lv_example_chart_7.c | 12 dsc->rect_dsc->bg_opa = (LV_OPA_COVER * dsc->id) / (cnt - 1); in draw_event_cb() 23 dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_RED), in draw_event_cb()
|
D | lv_example_chart_7.py | 14 dsc.rect_dsc.bg_opa = (lv.OPA.COVER * dsc.id) // (cnt - 1) 27 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.RED).color_mix(
|
/lvgl-3.7.0/src/draw/ |
D | lv_draw_img.c | 356 lv_draw_rect_dsc_t rect_dsc; local 357 lv_draw_rect_dsc_init(&rect_dsc); 358 rect_dsc.bg_color = lv_color_white(); 359 lv_draw_rect(draw_ctx, &rect_dsc, coords);
|
/lvgl-3.7.0/demos/widgets/ |
D | lv_demo_widgets.c | 1314 lv_draw_rect_dsc_t rect_dsc; in slider_event_cb() local 1315 lv_draw_rect_dsc_init(&rect_dsc); in slider_event_cb() 1316 rect_dsc.bg_color = lv_palette_darken(LV_PALETTE_GREY, 3); in slider_event_cb() 1317 rect_dsc.radius = LV_DPX(5); in slider_event_cb() 1318 lv_draw_rect(dsc->draw_ctx, &rect_dsc, &bg_area); in slider_event_cb() 1395 dsc->rect_dsc->outline_color = lv_color_white(); in chart_event_cb() 1396 dsc->rect_dsc->outline_width = 2; in chart_event_cb() 1399 dsc->rect_dsc->shadow_color = ser->color; in chart_event_cb() 1400 dsc->rect_dsc->shadow_width = 15; in chart_event_cb() 1401 dsc->rect_dsc->shadow_spread = 0; in chart_event_cb() [all …]
|
/lvgl-3.7.0/src/core/ |
D | lv_obj_draw.h | 48 …rect_dsc; /**< A draw descriptor that can be modified to changed what LVGL will draw. Set onl… member
|
D | lv_obj.c | 547 part_dsc.rect_dsc = &draw_dsc; in lv_obj_draw() 620 part_dsc.rect_dsc = &draw_dsc; in lv_obj_draw() 648 part_dsc.rect_dsc = &draw_dsc; in draw_scrollbar()
|
/lvgl-3.7.0/docs/widgets/core/ |
D | slider.md | 41 - `rect_dsc` 46 - `rect_dsc`
|
D | bar.md | 36 - `rect_dsc`
|
D | checkbox.md | 39 - `rect_dsc`
|
D | table.md | 54 - `rect_dsc`
|
/lvgl-3.7.0/docs/widgets/extra/ |
D | led.md | 26 - `rect_dsc`
|
D | chart.md | 146 - `rect_dsc` 153 - `rect_dsc`: 159 - `rect_dsc`
|
/lvgl-3.7.0/docs/widgets/ |
D | obj.md | 162 - `rect_dsc` 166 - `rect_dsc` 170 - `rect_dsc`
|
/lvgl-3.7.0/src/widgets/ |
D | lv_slider.c | 373 part_draw_dsc.rect_dsc = &knob_rect_dsc; in draw_knob() 403 part_draw_dsc.rect_dsc = &knob_rect_dsc; in draw_knob()
|