/lvgl-latest/src/libs/thorvg/ |
D | tvgFill.cpp | 92 Result Fill::colorStops(const ColorStop* colorStops, uint32_t cnt) noexcept in colorStops() argument 94 if ((!colorStops && cnt > 0) || (colorStops && cnt == 0)) return Result::InvalidArguments; in colorStops() 96 if (cnt == 0) { in colorStops() 100 pImpl->cnt = 0; in colorStops() 105 if (pImpl->cnt != cnt) { in colorStops() 106 … pImpl->colorStops = static_cast<ColorStop*>(realloc(pImpl->colorStops, cnt * sizeof(ColorStop))); in colorStops() 109 pImpl->cnt = cnt; in colorStops() 110 memcpy(pImpl->colorStops, colorStops, cnt * sizeof(ColorStop)); in colorStops() 120 return pImpl->cnt; in colorStops()
|
D | tvgFill.h | 58 uint32_t cnt = 0; member 79 ret->pImpl->cnt = cnt; in duplicate() 81 ret->pImpl->colorStops = static_cast<ColorStop*>(malloc(sizeof(ColorStop) * cnt)); in duplicate() 82 memcpy(ret->pImpl->colorStops, colorStops, sizeof(ColorStop) * cnt); in duplicate()
|
D | tvgCapi.cpp | 343 … Tvg_Result tvg_shape_get_path_coords(const Tvg_Paint* paint, const Tvg_Point** pts, uint32_t* cnt) in tvg_shape_get_path_coords() argument 345 if (!paint || !pts || !cnt) return TVG_RESULT_INVALID_ARGUMENT; in tvg_shape_get_path_coords() 346 *cnt = reinterpret_cast<const Shape*>(paint)->pathCoords((const Point**)pts); in tvg_shape_get_path_coords() 351 …t tvg_shape_get_path_commands(const Tvg_Paint* paint, const Tvg_Path_Command** cmds, uint32_t* cnt) in tvg_shape_get_path_commands() argument 353 if (!paint || !cmds || !cnt) return TVG_RESULT_INVALID_ARGUMENT; in tvg_shape_get_path_commands() 354 *cnt = reinterpret_cast<const Shape*>(paint)->pathCommands((const PathCommand**)cmds); in tvg_shape_get_path_commands() 410 …_API Tvg_Result tvg_shape_set_stroke_dash(Tvg_Paint* paint, const float* dashPattern, uint32_t cnt) in tvg_shape_set_stroke_dash() argument 413 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->stroke(dashPattern, cnt); in tvg_shape_set_stroke_dash() 417 …_Result tvg_shape_get_stroke_dash(const Tvg_Paint* paint, const float** dashPattern, uint32_t* cnt) in tvg_shape_get_stroke_dash() argument 419 if (!paint || !cnt || !dashPattern) return TVG_RESULT_INVALID_ARGUMENT; in tvg_shape_get_stroke_dash() [all …]
|
D | tvgSwShape.cpp | 138 dash.curIdx = (dash.curIdx + 1) % dash.cnt; in _dashLineTo() 156 dash.curIdx = (dash.curIdx + 1) % dash.cnt; in _dashLineTo() 199 dash.curIdx = (dash.curIdx + 1) % dash.cnt; in _dashCubicTo() 217 dash.curIdx = (dash.curIdx + 1) % dash.cnt; in _dashCubicTo() 242 dash.curIdx = offIdx % dash.cnt; in _dashMoveTo() 257 if (begin > 0.0f) dash->cnt = 4; in _trimPattern() 258 else dash->cnt = 2; in _trimPattern() 260 } else dash->cnt = 3; in _trimPattern() 262 if (dash->cnt == 2) { in _trimPattern() 265 } else if (dash->cnt == 3) { in _trimPattern() [all …]
|
D | tvgShape.h | 301 Result strokeDash(const float* pattern, uint32_t cnt, float offset) in strokeDash() 303 if ((cnt == 1) || (!pattern && cnt > 0) || (pattern && cnt == 0)) { in strokeDash() 307 for (uint32_t i = 0; i < cnt; i++) { in strokeDash() 312 if (!pattern && cnt == 0) { in strokeDash() 317 if (rs.stroke->dashCnt != cnt) { in strokeDash() 322 rs.stroke->dashPattern = static_cast<float*>(malloc(sizeof(float) * cnt)); in strokeDash() 325 for (uint32_t i = 0; i < cnt; ++i) { in strokeDash() 329 rs.stroke->dashCnt = cnt; in strokeDash()
|
D | thorvg_capi.h | 1285 …Tvg_Result tvg_shape_get_path_coords(const Tvg_Paint* paint, const Tvg_Point** pts, uint32_t* cnt); 1310 … tvg_shape_get_path_commands(const Tvg_Paint* paint, const Tvg_Path_Command** cmds, uint32_t* cnt); 1426 …API Tvg_Result tvg_shape_set_stroke_dash(Tvg_Paint* paint, const float* dashPattern, uint32_t cnt); 1441 …Result tvg_shape_get_stroke_dash(const Tvg_Paint* paint, const float** dashPattern, uint32_t* cnt); 1837 …t tvg_gradient_set_color_stops(Tvg_Gradient* grad, const Tvg_Color_Stop* color_stop, uint32_t cnt); 1852 …adient_get_color_stops(const Tvg_Gradient* grad, const Tvg_Color_Stop** color_stop, uint32_t* cnt); 2493 TVG_API Tvg_Result tvg_animation_get_total_frame(Tvg_Animation* animation, float* cnt); 2655 TVG_API Tvg_Result tvg_lottie_animation_get_markers_cnt(Tvg_Animation* animation, uint32_t* cnt);
|
/lvgl-latest/examples/event/ |
D | lv_example_event_click.c | 8 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()
|
D | lv_example_event_streak.c | 10 uint8_t cnt = lv_indev_get_short_click_streak(indev); in short_click_event_cb() local 11 lv_label_set_text_fmt(info_label, "Short click streak: %u", cnt); in short_click_event_cb()
|
/lvgl-latest/examples/get_started/ |
D | lv_example_get_started_2.c | 9 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()
|
/lvgl-latest/src/draw/nema_gfx/ |
D | lv_draw_nema_gfx_utils.c | 117 uint32_t cnt = LV_MAX(lv_grad.stops_count, LV_GRADIENT_MAX_STOPS); in lv_nemagfx_grad_set() local 119 for(uint8_t i = 0; i < cnt; i++) { in lv_nemagfx_grad_set() 127 nema_vg_grad_set(gradient, cnt, stops, colors); in lv_nemagfx_grad_set()
|
D | lv_draw_nema_gfx_fill.c | 105 uint32_t cnt = LV_MAX(dsc->grad.stops_count, LV_GRADIENT_MAX_STOPS); in lv_draw_nema_gfx_fill() local 107 for(uint8_t i = 0; i < cnt; i++) { in lv_draw_nema_gfx_fill() 115 nema_vg_grad_set(draw_nema_gfx_unit->gradient, cnt, stops, colors); in lv_draw_nema_gfx_fill()
|
D | lv_draw_nema_gfx_triangle.c | 106 uint32_t cnt = LV_MAX(dsc->bg_grad.stops_count, LV_GRADIENT_MAX_STOPS); in lv_draw_nema_gfx_triangle() local 108 for(uint8_t i = 0; i < cnt; i++) { in lv_draw_nema_gfx_triangle() 116 nema_vg_grad_set(draw_nema_gfx_unit->gradient, cnt, stops, colors); in lv_draw_nema_gfx_triangle()
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_7.c | 12 uint32_t cnt = lv_chart_get_point_count(obj); in draw_event_cb() local 15 rect_draw_dsc->bg_opa = (LV_OPA_COVER * base_dsc->id2) / (cnt - 1); in draw_event_cb() 22 …uint32_t p_act = (start_point + base_dsc->id2) % cnt; /*Consider start point to get the index of t… in draw_event_cb()
|
/lvgl-latest/demos/flex_layout/ |
D | lv_demo_flex_layout_view_child_node.c | 46 uint32_t cnt = lv_obj_get_child_count(par); in obj_child_node_create() local 53 lv_label_set_text_fmt(label, "%" LV_PRIu32, cnt); in obj_child_node_create()
|
/lvgl-latest/examples/widgets/list/ |
D | lv_example_list_2.c | 100 uint32_t cnt = lv_obj_get_child_count(list1); in event_handler_swap() local 102 if(cnt > 1) { in event_handler_swap() 103 lv_obj_t * obj = lv_obj_get_child(list1, lv_rand(0, cnt)); in event_handler_swap() 104 lv_obj_move_to_index(obj, lv_rand(0, cnt)); in event_handler_swap()
|
/lvgl-latest/src/core/ |
D | lv_obj_tree.c | 97 uint32_t cnt = lv_obj_get_child_count(obj); in lv_obj_clean() local 110 if(lv_obj_get_child_count(obj) < cnt) { in lv_obj_clean() 358 int32_t cnt = (int32_t)obj->spec_attr->child_cnt; in lv_obj_get_child_by_type() local 360 for(i = 0; i < cnt; i++) { in lv_obj_get_child_by_type() 369 for(i = cnt - 1; i >= 0; i--) { in lv_obj_get_child_by_type() 412 uint32_t cnt = 0; in lv_obj_get_child_count_by_type() local 414 if(obj->spec_attr->children[i]->class_p == class_p) cnt++; in lv_obj_get_child_count_by_type() 416 return cnt; in lv_obj_get_child_count_by_type() 654 int32_t cnt = (int32_t)obj->spec_attr->child_cnt; in lv_obj_get_first_not_deleting_child() local 655 for(i = 0; i < cnt; i++) { in lv_obj_get_first_not_deleting_child()
|
/lvgl-latest/tests/src/test_cases/ |
D | test_fs.c | 51 uint32_t cnt = 0; in test_read() local 56 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read() 60 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read() 61 cnt += br; in test_read()
|
/lvgl-latest/demos/benchmark/ |
D | lv_demo_benchmark.c | 680 int32_t cnt = scenes[i].measurement_cnt - 1; in summary_create() local 681 … lv_table_set_cell_value_fmt(table, i + 2, 1, "%"LV_PRIu32" %%", scenes[i].cpu_avg_usage / cnt); in summary_create() 682 … lv_table_set_cell_value_fmt(table, i + 2, 2, "%"LV_PRIu32" FPS", scenes[i].fps_avg / cnt); in summary_create() 684 uint32_t render_time = scenes[i].render_avg_time / cnt; in summary_create() 685 uint32_t flush_time = scenes[i].flush_avg_time / cnt; in summary_create() 692 scenes[i].cpu_avg_usage / cnt, in summary_create() 693 scenes[i].fps_avg / cnt, in summary_create() 699 total_avg_cpu += scenes[i].cpu_avg_usage / cnt; in summary_create() 700 total_avg_fps += scenes[i].fps_avg / cnt; in summary_create() 701 total_avg_render_time += scenes[i].render_avg_time / cnt; in summary_create() [all …]
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_obj_flags.c | 26 uint32_t * cnt = lv_event_get_user_data(e); in btn_clicked_event_cb() local 27 (*cnt)++; in btn_clicked_event_cb()
|
/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_draw_vglite_triangle.c | 133 vg_lite_uint32_t cnt = LV_MAX(dsc->bg_grad.stops_count, LV_GRADIENT_MAX_STOPS); in _vglite_draw_triangle() local 136 for(uint8_t i = 0; i < cnt; i++) { in _vglite_draw_triangle() 148 VGLITE_CHECK_ERROR(vg_lite_set_grad(&gradient, cnt, colors, stops)); in _vglite_draw_triangle()
|
D | lv_draw_vglite_fill.c | 184 vg_lite_uint32_t cnt = LV_MAX(dsc->grad.stops_count, LV_GRADIENT_MAX_STOPS); in _vglite_draw_rect() local 187 for(uint8_t i = 0; i < cnt; i++) { in _vglite_draw_rect() 200 VGLITE_CHECK_ERROR(vg_lite_set_grad(&gradient, cnt, colors, stops)); in _vglite_draw_rect()
|
/lvgl-latest/src/misc/ |
D | lv_anim_timeline.h | 79 void lv_anim_timeline_set_repeat_count(lv_anim_timeline_t * at, uint32_t cnt);
|
/lvgl-latest/src/widgets/chart/ |
D | lv_chart.c | 46 static void new_points_alloc(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t cnt, int32_t ** a); 108 void lv_chart_set_point_count(lv_obj_t * obj, uint32_t cnt) in lv_chart_set_point_count() argument 113 if(chart->point_cnt == cnt) return; in lv_chart_set_point_count() 117 if(cnt < 1) cnt = 1; in lv_chart_set_point_count() 121 if(!ser->x_ext_buf_assigned) new_points_alloc(obj, ser, cnt, &ser->x_points); in lv_chart_set_point_count() 123 if(!ser->y_ext_buf_assigned) new_points_alloc(obj, ser, cnt, &ser->y_points); in lv_chart_set_point_count() 127 chart->point_cnt = cnt; in lv_chart_set_point_count() 1346 static void new_points_alloc(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t cnt, int32_t ** a) in new_points_alloc() argument 1355 int32_t * new_points = lv_malloc(sizeof(int32_t) * cnt); in new_points_alloc() 1359 if(cnt >= point_cnt_old) { in new_points_alloc() [all …]
|
/lvgl-latest/demos/ebike/ |
D | lv_demo_ebike_home.c | 356 uint32_t cnt = lv_obj_get_child_count(bullet_cont); in bullet_scroll_event_cb() local 357 for(i = 0; i < cnt; i++) { in bullet_scroll_event_cb() 374 uint32_t cnt = lv_obj_get_child_count(parent); in bullets_create() local 388 for(i = 0; i < cnt; i++) { in bullets_create()
|
/lvgl-latest/src/widgets/label/ |
D | lv_label.h | 226 void lv_label_cut_text(lv_obj_t * obj, uint32_t pos, uint32_t cnt);
|