Lines Matching refs:index
41 …ic void lv_demo_smartwatch_add_watchface(const char * name, const lv_image_dsc_t * src, int index);
155 uint32_t index = (uint32_t)(intptr_t)lv_event_get_user_data(e); in lv_demo_smartwatch_face_selected_cb() local
157 if(index >= num_faces) { in lv_demo_smartwatch_face_selected_cb()
162 lv_obj_scroll_to_view(lv_obj_get_child(face_select, index), LV_ANIM_OFF); in lv_demo_smartwatch_face_selected_cb()
164 lv_demo_smartwatch_face_load(index); in lv_demo_smartwatch_face_selected_cb()
206 bool lv_demo_smartwatch_face_load(uint16_t index) in lv_demo_smartwatch_face_load() argument
208 LV_LOG_WARN("Loading watchface at index %d", index); in lv_demo_smartwatch_face_load()
210 if(index >= num_faces) { in lv_demo_smartwatch_face_load()
215 if(*faces[index].watchface == NULL) { in lv_demo_smartwatch_face_load()
219 lv_obj_scroll_to_view(lv_obj_get_child(face_select, index), LV_ANIM_OFF); in lv_demo_smartwatch_face_load()
220 if(current_face_index != index) { in lv_demo_smartwatch_face_load()
221 current_face_index = index; in lv_demo_smartwatch_face_load()
231 lv_obj_set_parent((lv_obj_t *)*faces[index].watchface, home_panel); in lv_demo_smartwatch_face_load()
274 …tic void lv_demo_smartwatch_add_watchface(const char * name, const lv_image_dsc_t * src, int index) in lv_demo_smartwatch_add_watchface() argument
312 …dd_event_cb(face_item, lv_demo_smartwatch_face_selected_cb, LV_EVENT_ALL, (void *)(intptr_t)index); in lv_demo_smartwatch_add_watchface()