Searched refs:imgbtn1 (Results 1 – 2 of 2) sorted by relevance
/lvgl-3.7.0/examples/widgets/imgbtn/ |
D | lv_example_imgbtn_1.c | 28 lv_obj_t * imgbtn1 = lv_imgbtn_create(lv_scr_act()); in lv_example_imgbtn_1() local 29 lv_imgbtn_set_src(imgbtn1, LV_IMGBTN_STATE_RELEASED, &imgbtn_left, &imgbtn_mid, &imgbtn_right); in lv_example_imgbtn_1() 30 lv_obj_add_style(imgbtn1, &style_def, 0); in lv_example_imgbtn_1() 31 lv_obj_add_style(imgbtn1, &style_pr, LV_STATE_PRESSED); in lv_example_imgbtn_1() 33 lv_obj_align(imgbtn1, LV_ALIGN_CENTER, 0, 0); in lv_example_imgbtn_1() 36 lv_obj_t * label = lv_label_create(imgbtn1); in lv_example_imgbtn_1()
|
D | lv_example_imgbtn_1.py | 63 imgbtn1 = lv.imgbtn(lv.scr_act()) variable 64 imgbtn1.set_src(lv.imgbtn.STATE.RELEASED, imgbtn_left_dsc, imgbtn_mid_dsc, imgbtn_right_dsc) 65 imgbtn1.add_style(style_def, 0) 66 imgbtn1.add_style(style_pr, lv.STATE.PRESSED) 68 imgbtn1.align(lv.ALIGN.CENTER, 0, 0) 71 label = lv.label(imgbtn1)
|