Home
last modified time | relevance | path

Searched refs:snapshot_obj (Results 1 – 2 of 2) sorted by relevance

/lvgl-3.7.0/examples/others/snapshot/
Dlv_example_snapshot_1.c6 lv_obj_t * snapshot_obj = lv_event_get_user_data(e); in event_cb() local
9 if(snapshot_obj) { in event_cb()
10 lv_img_dsc_t * snapshot = (void *)lv_img_get_src(snapshot_obj); in event_cb()
19 lv_img_set_src(snapshot_obj, snapshot); in event_cb()
30 lv_obj_t * snapshot_obj = lv_img_create(root); in lv_example_snapshot_1() local
31 lv_obj_set_style_bg_color(snapshot_obj, lv_palette_main(LV_PALETTE_PURPLE), 0); in lv_example_snapshot_1()
32 lv_obj_set_style_bg_opa(snapshot_obj, LV_OPA_100, 0); in lv_example_snapshot_1()
33 lv_img_set_zoom(snapshot_obj, 128); in lv_example_snapshot_1()
34 lv_img_set_angle(snapshot_obj, 300); in lv_example_snapshot_1()
53 lv_obj_add_event_cb(img, event_cb, LV_EVENT_PRESSED, snapshot_obj); in lv_example_snapshot_1()
[all …]
Dlv_example_snapshot_1.py32 def event_cb(e, snapshot_obj): argument
35 if snapshot_obj:
40 snapshot_obj.set_src(dsc)
50 snapshot_obj = lv.img(root) variable
51 snapshot_obj.set_style_bg_color(lv.palette_main(lv.PALETTE.PURPLE), 0)
52 snapshot_obj.set_style_bg_opa(lv.OPA.COVER, 0)
53 snapshot_obj.set_zoom(128)
70 img.add_event_cb(lambda e: event_cb(e, snapshot_obj), lv.EVENT.PRESSED, None)
71 img.add_event_cb(lambda e: event_cb(e, snapshot_obj), lv.EVENT.RELEASED, None)