Home
last modified time | relevance | path

Searched refs:bg_opa (Results 1 – 25 of 44) sorted by relevance

12

/lvgl-3.5.0/examples/widgets/table/
Dlv_example_table_1.c17 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
27 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
Dlv_example_table_1.py13 dsc.rect_dsc.bg_opa = lv.OPA.COVER
22 dsc.rect_dsc.bg_opa = lv.OPA.COVER
/lvgl-3.5.0/src/core/
Dlv_obj_draw.c45 draw_dsc->bg_opa = LV_OPA_TRANSP; in lv_obj_init_draw_rect_dsc()
59 if(draw_dsc->bg_opa != LV_OPA_TRANSP) { in lv_obj_init_draw_rect_dsc()
60 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc()
61 if(draw_dsc->bg_opa > LV_OPA_MIN) { in lv_obj_init_draw_rect_dsc()
136 if(draw_dsc->bg_opa != LV_OPA_TRANSP) { in lv_obj_init_draw_rect_dsc()
137 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc()
138 if(draw_dsc->bg_opa > LV_OPA_MIN) { in lv_obj_init_draw_rect_dsc()
186 draw_dsc->bg_opa = (opa * draw_dsc->shadow_opa) >> 8; in lv_obj_init_draw_rect_dsc()
Dlv_obj.c548 draw_dsc.bg_opa = LV_OPA_TRANSP; in lv_obj_draw()
578 draw_dsc.bg_opa = LV_OPA_TRANSP; in lv_obj_draw()
652 dsc->bg_opa = lv_obj_get_style_bg_opa(obj, LV_PART_SCROLLBAR); in scrollbar_init_draw_dsc()
653 if(dsc->bg_opa > LV_OPA_MIN) { in scrollbar_init_draw_dsc()
683 dsc->bg_opa = (dsc->bg_opa * opa) >> 8; in scrollbar_init_draw_dsc()
684 dsc->border_opa = (dsc->bg_opa * opa) >> 8; in scrollbar_init_draw_dsc()
685 dsc->shadow_opa = (dsc->bg_opa * opa) >> 8; in scrollbar_init_draw_dsc()
688 …if(dsc->bg_opa != LV_OPA_TRANSP || dsc->border_opa != LV_OPA_TRANSP || dsc->shadow_opa != LV_OPA_T… in scrollbar_init_draw_dsc()
696 if(dsc->bg_opa != LV_OPA_TRANSP || dsc->border_opa != LV_OPA_TRANSP) return LV_RES_OK; in scrollbar_init_draw_dsc()
Dlv_refr.c154 draw_dsc.bg_opa = LV_OPA_20; in lv_obj_redraw()
660 dsc.bg_img_opa = disp_refr->bg_opa; in refr_area_part()
662 dsc.bg_opa = disp_refr->bg_opa; in refr_area_part()
671 dsc.opa = disp_refr->bg_opa; in refr_area_part()
682 dsc.bg_opa = disp_refr->bg_opa; in refr_area_part()
/lvgl-3.5.0/src/misc/
Dlv_color.h531 …ATTRIBUTE_FAST_MEM static inline void lv_color_mix_with_alpha(lv_color_t bg_color, lv_opa_t bg_opa, in lv_color_mix_with_alpha() argument
536 if(fg_opa >= LV_OPA_MAX || bg_opa <= LV_OPA_MIN) { in lv_color_mix_with_alpha()
543 *res_opa = bg_opa; in lv_color_mix_with_alpha()
546 else if(bg_opa >= LV_OPA_MAX) { in lv_color_mix_with_alpha()
560 if(fg_opa != fg_opa_save || bg_opa != bg_opa_save || fg_color.full != fg_color_save.full || in lv_color_mix_with_alpha()
563 bg_opa_save = bg_opa; in lv_color_mix_with_alpha()
568 res_opa_saved = 255 - ((uint16_t)((uint16_t)(255 - fg_opa) * (255 - bg_opa)) >> 8); in lv_color_mix_with_alpha()
/lvgl-3.5.0/src/draw/
Dlv_draw_rect.c48 dsc->bg_opa = LV_OPA_COVER; in lv_draw_rect_dsc_init()
Dlv_draw_rect.h37 lv_opa_t bg_opa; member
/lvgl-3.5.0/src/hal/
Dlv_hal_disp.c203 disp->bg_opa = LV_OPA_TRANSP; in lv_disp_drv_register()
205 disp->bg_opa = LV_OPA_COVER; in lv_disp_drv_register()
692 lv_opa_t bg_opa = buf_px[LV_IMG_PX_SIZE_ALPHA_BYTE - 1]; in set_px_true_color_alpha() local
695 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[2]); in set_px_true_color_alpha()
700 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[2]); in set_px_true_color_alpha()
706 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[3]); in set_px_true_color_alpha()
/lvgl-3.5.0/src/extra/widgets/calendar/
Dlv_calendar.c298 dsc->rect_dsc->bg_opa = LV_OPA_TRANSP; in draw_part_begin_event_cb()
302 dsc->rect_dsc->bg_opa = LV_OPA_TRANSP; in draw_part_begin_event_cb()
308 dsc->rect_dsc->bg_opa = LV_OPA_40; in draw_part_begin_event_cb()
311 dsc->rect_dsc->bg_opa = LV_OPA_70; in draw_part_begin_event_cb()
/lvgl-3.5.0/src/widgets/
Dlv_bar.c433 lv_opa_t bg_opa = draw_rect_dsc.bg_opa; in draw_indic() local
436 draw_rect_dsc.bg_opa = LV_OPA_TRANSP; in draw_indic()
442 draw_rect_dsc.bg_opa = bg_opa; in draw_indic()
493 draw_rect_dsc.bg_opa = LV_OPA_TRANSP; in draw_indic()
/lvgl-3.5.0/src/draw/nxp/vglite/
Dlv_draw_vglite.c321 vglite_dsc.bg_opa = 0; in lv_draw_vglite_rect()
332 vglite_dsc.bg_opa = dsc->bg_opa; in lv_draw_vglite_rect()
335 vglite_dsc.bg_opa = 0; in lv_draw_vglite_rect()
359 if(dsc->bg_opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_vglite_bg()
/lvgl-3.5.0/examples/event/
Dlv_example_event_4.c35 draw_dsc.bg_opa = LV_OPA_COVER; in event_cb()
/lvgl-3.5.0/examples/widgets/canvas/
Dlv_example_canvas_1.c13 rect_dsc.bg_opa = LV_OPA_COVER; in lv_example_canvas_1()
Dlv_example_canvas_1.py8 rect_dsc.bg_opa = lv.OPA.COVER
/lvgl-3.5.0/tests/src/test_cases/
Dtest_table.c137 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
147 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
/lvgl-3.5.0/src/draw/sdl/
Dlv_draw_sdl_bg.c83 SDL_SetRenderDrawColor(ctx->renderer, bg_color.r, bg_color.g, bg_color.b, dsc->bg_opa); in draw_bg_color()
Dlv_draw_sdl_polygon.c92 SDL_SetTextureAlphaMod(texture, draw_dsc->bg_opa); in lv_draw_sdl_polygon()
/lvgl-3.5.0/examples/widgets/chart/
Dlv_example_chart_7.c12 dsc->rect_dsc->bg_opa = (LV_OPA_COVER * dsc->id) / (cnt - 1); in draw_event_cb()
Dlv_example_chart_4.c37 draw_rect_dsc.bg_opa = LV_OPA_50; in event_cb()
Dlv_example_chart_7.py14 dsc.rect_dsc.bg_opa = (lv.OPA.COVER * dsc.id) // (cnt - 1)
Dlv_example_chart_4.py25 draw_rect_dsc.bg_opa = lv.OPA._50
Dlv_example_chart_2.py28 draw_rect_dsc.bg_opa = lv.OPA._20
Dlv_example_chart_8.c34 draw_rect_dsc.bg_opa = LV_OPA_COVER; in draw_event_cb()
Dlv_example_chart_8.py36 draw_rect_dsc.bg_opa = lv.OPA.COVER

12