Searched refs:anim_obj (Results 1 – 2 of 2) sorted by relevance
/lvgl-latest/examples/anim/ |
D | lv_example_anim_3.c | 14 lv_obj_t * anim_obj; member 54 lv_anim_set_var(&ginfo.a, ginfo.anim_obj); in lv_example_anim_3() 56 lv_obj_get_style_width(ginfo.anim_obj, LV_PART_MAIN) - 10; in lv_example_anim_3() 122 ginfo.anim_obj = lv_obj_create(par); in page_obj_init() 123 lv_obj_set_size(ginfo.anim_obj, 30, 30); in page_obj_init() 124 lv_obj_set_align(ginfo.anim_obj, LV_ALIGN_TOP_LEFT); in page_obj_init() 125 lv_obj_clear_flag(ginfo.anim_obj, LV_OBJ_FLAG_SCROLLABLE); in page_obj_init() 126 lv_obj_set_style_bg_color(ginfo.anim_obj, lv_palette_main(LV_PALETTE_RED), LV_PART_MAIN); in page_obj_init() 127 lv_obj_set_grid_cell(ginfo.anim_obj, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_START, 0, 1); in page_obj_init()
|
D | lv_example_anim_3.py | 33 self.a.set_var(self.anim_obj) 34 … end = self.cont.get_style_width(lv.PART.MAIN) - self.anim_obj.get_style_width(lv.PART.MAIN) - 10 37 self.a.set_custom_exec_cb(lambda a,val: self.anim_x_cb(self.anim_obj,val)) 42 self.anim_obj = lv.obj(par) 43 self.anim_obj.set_size(30, 30) 44 self.anim_obj.set_align(lv.ALIGN.TOP_LEFT) 45 self.anim_obj.clear_flag(lv.obj.FLAG.SCROLLABLE) 46 self.anim_obj.set_style_bg_color(lv.palette_main(lv.PALETTE.RED), lv.PART.MAIN) 47 self.anim_obj.set_grid_cell(lv.GRID_ALIGN.START, 0, 1,lv.GRID_ALIGN.START, 0, 1)
|