Home
last modified time | relevance | path

Searched refs:bg (Results 1 – 25 of 41) sorted by relevance

12

/lvgl-latest/src/misc/
Dlv_color_op.c46 lv_color32_t lv_color_mix32(lv_color32_t fg, lv_color32_t bg) in lv_color_mix32() argument
49 fg.alpha = bg.alpha; in lv_color_mix32()
53 return bg; in lv_color_mix32()
55 bg.red = (uint32_t)((uint32_t)fg.red * fg.alpha + (uint32_t)bg.red * (255 - fg.alpha)) >> 8; in lv_color_mix32()
56bg.green = (uint32_t)((uint32_t)fg.green * fg.alpha + (uint32_t)bg.green * (255 - fg.alpha)) >> 8; in lv_color_mix32()
57 bg.blue = (uint32_t)((uint32_t)fg.blue * fg.alpha + (uint32_t)bg.blue * (255 - fg.alpha)) >> 8; in lv_color_mix32()
58 return bg; in lv_color_mix32()
Dlv_color_op.h59 lv_color32_t lv_color_mix32(lv_color32_t fg, lv_color32_t bg);
Dlv_color.c318 uint32_t bg = (uint32_t)(c2 | ((uint32_t)c2 << 16)) & 0x7E0F81F; in lv_color_16_16_mix() local
320 uint32_t result = ((((fg - bg) * mix) >> 5) + bg) & 0x7E0F81F; in lv_color_16_16_mix()
/lvgl-latest/demos/music/
Dlv_demo_music.c218 lv_obj_t * bg = lv_layer_top(); in auto_step_cb() local
219 lv_obj_set_style_bg_color(bg, lv_color_hex(0x6f8af6), 0); in auto_step_cb()
220 lv_obj_set_style_text_color(bg, lv_color_white(), 0); in auto_step_cb()
221 lv_obj_set_style_bg_opa(bg, LV_OPA_COVER, 0); in auto_step_cb()
222 lv_obj_fade_in(bg, 400, 0); in auto_step_cb()
223 lv_obj_t * dsc = lv_label_create(bg); in auto_step_cb()
228 lv_obj_t * num = lv_label_create(bg); in auto_step_cb()
237 lv_obj_t * attr = lv_label_create(bg); in auto_step_cb()
/lvgl-latest/src/libs/thorvg/
DtvgSaver.cpp44 Paint* bg = nullptr; member
49 delete(bg); in ~Impl()
151 delete(pImpl->bg); in background()
152 pImpl->bg = paint.release(); in background()
178 if (saveModule->save(a, pImpl->bg, path, quality, fps)) { in save()
DtvgSaveModule.h40 …virtual bool save(Animation* animation, Paint* bg, const string& path, uint32_t quality, uint32_t …
/lvgl-latest/demos/ebike/
Dlv_demo_ebike.c85 lv_obj_t * bg = lv_image_create(lv_screen_active()); in lv_demo_ebike() local
88 lv_image_set_src(bg, &img_ebike_bg_large); in lv_demo_ebike()
91 lv_image_set_src(bg, &img_ebike_bg); in lv_demo_ebike()
94 lv_obj_align(bg, LV_ALIGN_CENTER, 0, 0); in lv_demo_ebike()
95 lv_obj_add_flag(bg, LV_OBJ_FLAG_IGNORE_LAYOUT); in lv_demo_ebike()
/lvgl-latest/src/draw/sw/blend/
Dlv_draw_sw_blend_to_al88.c83 …line lv_color16a_t /* LV_ATTRIBUTE_FAST_MEM */ lv_color_mix16a(lv_color16a_t fg, lv_color16a_t bg);
934 …atic inline lv_color16a_t LV_ATTRIBUTE_FAST_MEM lv_color_mix16a(lv_color16a_t fg, lv_color16a_t bg) in lv_color_mix16a() argument
938 fg.alpha = bg.alpha; in lv_color_mix16a()
942 return bg; in lv_color_mix16a()
945 bg.lumi = (uint32_t)((uint32_t)fg.lumi * fg.alpha + (uint32_t)bg.lumi * (255 - fg.alpha)) >> 8; in lv_color_mix16a()
946 return bg; in lv_color_mix16a()
949 static inline void LV_ATTRIBUTE_FAST_MEM lv_color_16a_16a_mix(lv_color16a_t fg, lv_color16a_t * bg, in lv_color_16a_16a_mix() argument
953 if(fg.alpha >= LV_OPA_MAX || bg->alpha <= LV_OPA_MIN) { in lv_color_16a_16a_mix()
954 *bg = fg; in lv_color_16a_16a_mix()
961 else if(bg->alpha == 255) { in lv_color_16a_16a_mix()
[all …]
Dlv_draw_sw_blend_to_argb8888.c76 …nline lv_color32_t /* LV_ATTRIBUTE_FAST_MEM */ lv_color_32_32_mix(lv_color32_t fg, lv_color32_t bg,
971 …atic inline lv_color32_t LV_ATTRIBUTE_FAST_MEM lv_color_32_32_mix(lv_color32_t fg, lv_color32_t bg, in lv_color_32_32_mix() argument
975 if(fg.alpha >= LV_OPA_MAX || bg.alpha <= LV_OPA_MIN) { in lv_color_32_32_mix()
980 return bg; in lv_color_32_32_mix()
983 else if(bg.alpha == 255) { in lv_color_32_32_mix()
984 return lv_color_mix32(fg, bg); in lv_color_32_32_mix()
991 if(bg.alpha != cache->bg_saved.alpha || fg.alpha != cache->fg_saved.alpha) { in lv_color_32_32_mix()
994 cache->res_alpha_saved = 255 - LV_OPA_MIX2(255 - fg.alpha, 255 - bg.alpha); in lv_color_32_32_mix()
999 if(!lv_color32_eq(bg, cache->bg_saved) || !lv_color32_eq(fg, cache->fg_saved)) { in lv_color_32_32_mix()
1001 cache->bg_saved = bg; in lv_color_32_32_mix()
[all …]
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_app_about.c56 lv_obj_t * bg = base_obj; in lv_demo_high_res_app_about() local
57 lv_obj_remove_style_all(bg); in lv_demo_high_res_app_about()
58 lv_obj_set_size(bg, LV_PCT(100), LV_PCT(100)); in lv_demo_high_res_app_about()
60 lv_obj_t * bg_img = lv_image_create(bg); in lv_demo_high_res_app_about()
64 lv_obj_t * bg_cont = lv_obj_create(bg); in lv_demo_high_res_app_about()
Dlv_demo_high_res_home.c59 lv_obj_t * bg = base_obj; in lv_demo_high_res_home() local
60 lv_obj_remove_style_all(bg); in lv_demo_high_res_home()
61 lv_obj_set_size(bg, LV_PCT(100), LV_PCT(100)); in lv_demo_high_res_home()
63 lv_obj_t * bg_img = lv_image_create(bg); in lv_demo_high_res_home()
66 lv_obj_t * bg_cont = lv_obj_create(bg); in lv_demo_high_res_home()
Dlv_demo_high_res_app_smart_home.c61 lv_obj_t * bg = base_obj; in lv_demo_high_res_app_smart_home() local
62 lv_obj_remove_style_all(bg); in lv_demo_high_res_app_smart_home()
63 lv_obj_set_size(bg, LV_PCT(100), LV_PCT(100)); in lv_demo_high_res_app_smart_home()
65 lv_obj_t * bg_img = lv_image_create(bg); in lv_demo_high_res_app_smart_home()
69 lv_obj_t * bg_cont = lv_obj_create(bg); in lv_demo_high_res_app_smart_home()
Dlv_demo_high_res_app_ev_charging.c81 lv_obj_t * bg = base_obj; in lv_demo_high_res_app_ev_charging() local
82 lv_obj_remove_style_all(bg); in lv_demo_high_res_app_ev_charging()
83 lv_obj_set_size(bg, LV_PCT(100), LV_PCT(100)); in lv_demo_high_res_app_ev_charging()
85 lv_obj_t * bg_img = lv_image_create(bg); in lv_demo_high_res_app_ev_charging()
89 lv_obj_t * bg_cont = lv_obj_create(bg); in lv_demo_high_res_app_ev_charging()
/lvgl-latest/demos/keypad_encoder/
Dlv_demo_keypad_encoder.c177 lv_obj_t * bg = lv_obj_get_parent(mbox); in msgbox_create() local
178 lv_obj_set_style_bg_opa(bg, LV_OPA_70, 0); in msgbox_create()
179 lv_obj_set_style_bg_color(bg, lv_palette_main(LV_PALETTE_GREY), 0); in msgbox_create()
/lvgl-latest/docs/details/widgets/
Dswitch.rst25 background style properties <typical bg props>`. ``padding`` makes the indicator smaller
28 the Switch; also uses the :ref:`typical background style properties <typical bg props>`.
31 <typical bg props>` to modify the knob's appearance. By default, the knob is round
Dcheckbox.rst20 the text and the :ref:`typical background style properties <typical bg props>`.
23 :ref:`typical background style properties <typical bg props>`. By default, its
Dslider.rst24 :ref:`typical background style properties <typical bg props>`. ``padding`` makes
27 the Slider; also uses the :ref:`typical background style properties <typical bg props>`.
29 also uses the :ref:`typical background style properties <typical bg props>` to
Dbar.rst25 background style properties <typical bg props>`. Adding padding makes the indicator
29 background style properties <typical bg props>`.
Dtable.rst28 background style properties <typical bg props>`.
30 :ref:`typical background style properties <typical bg props>` as well as text
Ddropdown.rst34 background <typical bg props>` and text style properties for its text.
44 style properties <typical bg props>`. ``max_height`` can be used to limit the
51 <typical bg props>`.
Dbutton.rst25 background style properties <typical bg props>`.
Dled.rst19 properties <typical bg props>`.
Danimimg.rst22 background style properties <typical bg props>` and the image itself using the image
/lvgl-latest/src/libs/gif/
Dgifdec.h43 uint8_t fg, uint8_t bg
/lvgl-latest/src/draw/sw/blend/helium/
Dlv_blend_helium.S391 cbnz TMP, 90f @ || bg.alpha == 0)
400 itt le @ return bg;
404 vabav.u8 TMP, D_A, S_B @ if (bg.alpha == 255)
405 cbnz TMP, 89f @ return lv_color_mix32(fg, bg);
419 vmvn D_A, D_A @ D_A = 255 - LV_OPA_MIX2(255 - fg.alpha, 255 - bg.alpha)

12