Home
last modified time | relevance | path

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

12

/lvgl-latest/src/core/
Dlv_obj_draw.c44 draw_dsc->bg_opa = LV_OPA_TRANSP; in lv_obj_init_draw_rect_dsc()
58 if(draw_dsc->bg_opa != LV_OPA_TRANSP) { in lv_obj_init_draw_rect_dsc()
59 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc()
60 if(draw_dsc->bg_opa > LV_OPA_MIN) { in lv_obj_init_draw_rect_dsc()
135 if(draw_dsc->bg_opa != LV_OPA_TRANSP) { in lv_obj_init_draw_rect_dsc()
136 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc()
137 if(draw_dsc->bg_opa > LV_OPA_MIN) { in lv_obj_init_draw_rect_dsc()
183 draw_dsc->bg_opa = (opa * draw_dsc->bg_opa) >> 8; in lv_obj_init_draw_rect_dsc()
Dlv_obj.c571 draw_dsc.bg_opa = LV_OPA_TRANSP; in lv_obj_draw()
601 draw_dsc.bg_opa = LV_OPA_TRANSP; in lv_obj_draw()
675 dsc->bg_opa = lv_obj_get_style_bg_opa(obj, LV_PART_SCROLLBAR); in scrollbar_init_draw_dsc()
676 if(dsc->bg_opa > LV_OPA_MIN) { in scrollbar_init_draw_dsc()
706 dsc->bg_opa = (dsc->bg_opa * opa) >> 8; in scrollbar_init_draw_dsc()
707 dsc->border_opa = (dsc->bg_opa * opa) >> 8; in scrollbar_init_draw_dsc()
708 dsc->shadow_opa = (dsc->bg_opa * opa) >> 8; in scrollbar_init_draw_dsc()
711 …if(dsc->bg_opa != LV_OPA_TRANSP || dsc->border_opa != LV_OPA_TRANSP || dsc->shadow_opa != LV_OPA_T… in scrollbar_init_draw_dsc()
719 if(dsc->bg_opa != LV_OPA_TRANSP || dsc->border_opa != LV_OPA_TRANSP) return LV_RES_OK; in scrollbar_init_draw_dsc()
Dlv_refr.c155 draw_dsc.bg_opa = LV_OPA_20; in lv_obj_redraw()
744 dsc.bg_img_opa = disp_refr->bg_opa; in refr_area_part()
746 dsc.bg_opa = disp_refr->bg_opa; in refr_area_part()
755 dsc.opa = disp_refr->bg_opa; in refr_area_part()
766 dsc.bg_opa = disp_refr->bg_opa; in refr_area_part()
/lvgl-latest/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-latest/src/misc/
Dlv_color.h530 …tic inline void LV_ATTRIBUTE_FAST_MEM lv_color_mix_with_alpha(lv_color_t bg_color, lv_opa_t bg_opa, in lv_color_mix_with_alpha() argument
535 if(fg_opa >= LV_OPA_MAX || bg_opa <= LV_OPA_MIN) { in lv_color_mix_with_alpha()
542 *res_opa = bg_opa; in lv_color_mix_with_alpha()
545 else if(bg_opa >= LV_OPA_MAX) { in lv_color_mix_with_alpha()
559 if(fg_opa != fg_opa_save || bg_opa != bg_opa_save || fg_color.full != fg_color_save.full || in lv_color_mix_with_alpha()
562 bg_opa_save = bg_opa; in lv_color_mix_with_alpha()
567 res_opa_saved = 255 - ((uint16_t)((uint16_t)(255 - fg_opa) * (255 - bg_opa)) >> 8); in lv_color_mix_with_alpha()
/lvgl-latest/src/hal/
Dlv_hal_disp.c209 disp->bg_opa = LV_OPA_TRANSP; in lv_disp_drv_register()
211 disp->bg_opa = LV_OPA_COVER; in lv_disp_drv_register()
699 lv_opa_t bg_opa = buf_px[LV_IMG_PX_SIZE_ALPHA_BYTE - 1]; in set_px_true_color_alpha() local
702 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[2]); in set_px_true_color_alpha()
707 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[2]); in set_px_true_color_alpha()
713 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[3]); in set_px_true_color_alpha()
/lvgl-latest/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-latest/src/extra/widgets/calendar/
Dlv_calendar.c297 dsc->rect_dsc->bg_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()
307 dsc->rect_dsc->bg_opa = LV_OPA_40; in draw_part_begin_event_cb()
310 dsc->rect_dsc->bg_opa = LV_OPA_70; in draw_part_begin_event_cb()
/lvgl-latest/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-latest/src/draw/nxp/vglite/
Dlv_draw_vglite.c362 vglite_dsc.bg_opa = 0; in lv_draw_vglite_rect()
373 vglite_dsc.bg_opa = dsc->bg_opa; in lv_draw_vglite_rect()
376 vglite_dsc.bg_opa = 0; in lv_draw_vglite_rect()
400 if(dsc->bg_opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_vglite_bg()
/lvgl-latest/examples/event/
Dlv_example_event_4.c35 draw_dsc.bg_opa = LV_OPA_COVER; in event_cb()
/lvgl-latest/examples/widgets/canvas/
Dlv_example_canvas_1.c12 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-latest/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-latest/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.c94 SDL_SetTextureAlphaMod(texture, draw_dsc->bg_opa); in lv_draw_sdl_polygon()
/lvgl-latest/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.c36 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_2.c33 draw_rect_dsc.bg_opa = LV_OPA_20; in draw_event_cb()

12