Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 26) sorted by relevance

12

/lvgl-3.7.0/tests/src/test_cases/
Dtest_fs.c35 uint32_t cnt = 0; in test_read() local
40 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read()
44 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read()
45 cnt += br; in test_read()
/lvgl-3.7.0/examples/event/
Dlv_example_event_1.c8 static uint32_t cnt = 1; in event_cb() local
11 lv_label_set_text_fmt(label, "%"LV_PRIu32, cnt); in event_cb()
12 cnt++; in event_cb()
Dlv_example_event_1.py3 self.cnt = 1
22 label.set_text(str(self.cnt))
23 self.cnt += 1
/lvgl-3.7.0/examples/get_started/
Dlv_example_get_started_1.c9 static uint8_t cnt = 0; in btn_event_cb() local
10 cnt++; in btn_event_cb()
14 lv_label_set_text_fmt(label, "Button: %d", cnt); in btn_event_cb()
Dlv_example_get_started_1.py3 self.cnt = 0
21 self.cnt += 1
25 label.set_text("Button: " + str(self.cnt))
/lvgl-3.7.0/examples/widgets/chart/
Dlv_example_chart_7.c10 uint32_t cnt = lv_chart_get_point_count(obj); in draw_event_cb() local
12 dsc->rect_dsc->bg_opa = (LV_OPA_COVER * dsc->id) / (cnt - 1); in draw_event_cb()
19 …uint32_t p_act = (start_point + dsc->id) % cnt; /*Consider start point to get the index of the arr… in draw_event_cb()
Dlv_example_chart_7.py11 cnt = obj.get_point_count()
14 dsc.rect_dsc.bg_opa = (lv.OPA.COVER * dsc.id) // (cnt - 1)
22 p_act = (start_point + dsc.id) % cnt # Consider start point to get the index of the array
Dlv_example_chart_2.py47 cnt = 0
50 if cnt % 4 == 0:
53 cnt +=1
Dlv_example_chart_2.c93 static uint32_t cnt = 0; in add_data() local
96 if(cnt % 4 == 0) lv_chart_set_next_value(chart1, ser2, lv_rand(40, 60)); in add_data()
98 cnt++; in add_data()
/lvgl-3.7.0/examples/widgets/list/
Dlv_example_list_2.c102 uint32_t cnt = lv_obj_get_child_cnt(list1); in event_handler_swap() local
104 if(cnt > 1) { in event_handler_swap()
105 lv_obj_t * obj = lv_obj_get_child(list1, rand() % cnt); in event_handler_swap()
106 lv_obj_move_to_index(obj, rand() % cnt); in event_handler_swap()
Dlv_example_list_2.py85 cnt = list1.get_child_cnt()
87 if cnt > 1:
88 obj = list1.get_child(urandom.getrandbits(32) % cnt )
89 obj.move_to_index(urandom.getrandbits(32) % cnt)
/lvgl-3.7.0/src/extra/others/msg/
Dlv_msg.c99 uint32_t cnt = 0; in lv_msg_unsubscribe_obj() local
107 cnt++; in lv_msg_unsubscribe_obj()
113 return cnt; in lv_msg_unsubscribe_obj()
/lvgl-3.7.0/src/misc/
Dlv_anim.h267 static inline void lv_anim_set_repeat_count(lv_anim_t * a, uint16_t cnt) in lv_anim_set_repeat_count() argument
269 a->repeat_cnt = cnt; in lv_anim_set_repeat_count()
Dlv_anim.c187 uint16_t cnt = 0; in lv_anim_count_running() local
189 _LV_LL_READ(&LV_GC_ROOT(_lv_anim_ll), a) cnt++; in lv_anim_count_running()
191 return cnt; in lv_anim_count_running()
Dlv_txt.c669 uint8_t cnt = 0; in lv_txt_utf8_prev() local
674 if(cnt >= 4) return 0; /*No UTF-8 char found before the initial*/ in lv_txt_utf8_prev()
683 cnt++; in lv_txt_utf8_prev()
/lvgl-3.7.0/src/extra/libs/freetype/
Dlv_freetype.c33 int32_t cnt; /* reference count */ member
629 refer->cnt += 1; in name_refer_find()
645 refer->cnt -= 1; in name_refer_del()
646 if(refer->cnt <= 0) { in name_refer_del()
677 refer->cnt = 1; in name_refer_save()
/lvgl-3.7.0/src/extra/widgets/chart/
Dlv_chart.c43 static void new_points_alloc(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t cnt, lv_coord_t ** a…
104 void lv_chart_set_point_count(lv_obj_t * obj, uint16_t cnt) in lv_chart_set_point_count() argument
109 if(chart->point_cnt == cnt) return; in lv_chart_set_point_count()
113 if(cnt < 1) cnt = 1; in lv_chart_set_point_count()
117 if(!ser->x_ext_buf_assigned) new_points_alloc(obj, ser, cnt, &ser->x_points); in lv_chart_set_point_count()
119 if(!ser->y_ext_buf_assigned) new_points_alloc(obj, ser, cnt, &ser->y_points); in lv_chart_set_point_count()
123 chart->point_cnt = cnt; in lv_chart_set_point_count()
1743 static void new_points_alloc(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t cnt, lv_coord_t ** a) in new_points_alloc() argument
1752 lv_coord_t * new_points = lv_mem_alloc(sizeof(lv_coord_t) * cnt); in new_points_alloc()
1756 if(cnt >= point_cnt_old) { in new_points_alloc()
[all …]
Dlv_chart.h158 void lv_chart_set_point_count(lv_obj_t * obj, uint16_t cnt);
/lvgl-3.7.0/src/widgets/
Dlv_label.h234 void lv_label_cut_text(lv_obj_t * obj, uint32_t pos, uint32_t cnt);
Dlv_roller.c109 uint32_t cnt; in lv_roller_set_options() local
110 for(cnt = 0; options[cnt] != '\0'; cnt++) { in lv_roller_set_options()
111 if(options[cnt] == '\n') roller->option_cnt++; in lv_roller_set_options()
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_rect.c130 uint8_t cnt = LV_MAX(dsc->bg_grad.stops_count, 2); in lv_gpu_nxp_vglite_draw_bg() local
131 for(uint8_t i = 0; i < cnt; i++) { in lv_gpu_nxp_vglite_draw_bg()
145 err = vg_lite_set_grad(&gradient, cnt, colors, stops); in lv_gpu_nxp_vglite_draw_bg()
/lvgl-3.7.0/src/extra/widgets/meter/
Dlv_meter.h144 void lv_meter_set_scale_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t widt…
Dlv_meter.c87 void lv_meter_set_scale_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t widt… in lv_meter_set_scale_ticks() argument
90 scale->tick_cnt = cnt; in lv_meter_set_scale_ticks()
/lvgl-3.7.0/docs/overview/
Danimation.md64 lv_anim_set_repeat_count(&a, cnt);
/lvgl-3.7.0/src/draw/
Dlv_draw_mask.c249 uint8_t cnt = 0; in lv_draw_mask_get_cnt() local
252 if(LV_GC_ROOT(_lv_draw_mask_list[i]).param) cnt++; in lv_draw_mask_get_cnt()
254 return cnt; in lv_draw_mask_get_cnt()

12