refactor: scr -> screen, act->active, del->delete, remove in obj_clear_flag/state
This commit is contained in:
@@ -9,11 +9,11 @@ void lv_example_lodepng_1(void)
|
||||
LV_IMAGE_DECLARE(img_wink_png);
|
||||
lv_obj_t * img;
|
||||
|
||||
img = lv_image_create(lv_scr_act());
|
||||
img = lv_image_create(lv_screen_active());
|
||||
lv_image_set_src(img, &img_wink_png);
|
||||
lv_obj_align(img, LV_ALIGN_LEFT_MID, 20, 0);
|
||||
|
||||
img = lv_image_create(lv_scr_act());
|
||||
img = lv_image_create(lv_screen_active());
|
||||
/* Assuming a File system is attached to letter 'A'
|
||||
* E.g. set LV_USE_FS_STDIO 'A' in lv_conf.h */
|
||||
lv_image_set_src(img, "A:lvgl/examples/libs/lodepng/wink.png");
|
||||
|
||||
@@ -10,7 +10,7 @@ image_wink_png = lv.image_dsc_t(
|
||||
"data": img_wink_png_map,
|
||||
}
|
||||
)
|
||||
image1 = lv.image(lv.scr_act())
|
||||
image1 = lv.image(lv.screen_active())
|
||||
image1.set_src(image_wink_png)
|
||||
image1.align(lv.ALIGN.RIGHT_MID, -250, 0)
|
||||
|
||||
@@ -27,6 +27,6 @@ wink_argb = lv.image_dsc_t({
|
||||
'data': png_data
|
||||
})
|
||||
|
||||
image2 = lv.image(lv.scr_act())
|
||||
image2 = lv.image(lv.screen_active())
|
||||
image2.set_src(wink_argb)
|
||||
image2.align(lv.ALIGN.RIGHT_MID, -150, 0)
|
||||
|
||||
Reference in New Issue
Block a user