Home
last modified time | relevance | path

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

12

/lvgl-3.7.0/src/extra/widgets/meter/
Dlv_meter.c71 lv_meter_scale_t * scale = _lv_ll_ins_head(&meter->scale_ll); in lv_meter_add_scale() local
72 LV_ASSERT_MALLOC(scale); in lv_meter_add_scale()
73 lv_memset_00(scale, sizeof(lv_meter_scale_t)); in lv_meter_add_scale()
75 scale->angle_range = 270; in lv_meter_add_scale()
76 scale->rotation = 90 + (360 - scale->angle_range) / 2; in lv_meter_add_scale()
77 scale->min = 0; in lv_meter_add_scale()
78 scale->max = 100; in lv_meter_add_scale()
79 scale->tick_cnt = 6; in lv_meter_add_scale()
80 scale->tick_length = 8; in lv_meter_add_scale()
81 scale->tick_width = 2; in lv_meter_add_scale()
[all …]
Dlv_meter.h62 lv_meter_scale_t * scale; member
144 void lv_meter_set_scale_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t widt…
158 void lv_meter_set_scale_major_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t nth, uint16_…
170 void lv_meter_set_scale_range(lv_obj_t * obj, lv_meter_scale_t * scale, int32_t min, int32_t max, u…
186 lv_meter_indicator_t * lv_meter_add_needle_line(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t …
199 lv_meter_indicator_t * lv_meter_add_needle_img(lv_obj_t * obj, lv_meter_scale_t * scale, const void…
211 lv_meter_indicator_t * lv_meter_add_arc(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, l…
224 lv_meter_indicator_t * lv_meter_add_scale_lines(lv_obj_t * obj, lv_meter_scale_t * scale, lv_color_…
/lvgl-3.7.0/examples/widgets/meter/
Dlv_example_meter_1.c21 lv_meter_scale_t * scale = lv_meter_add_scale(meter); in lv_example_meter_1() local
22 lv_meter_set_scale_ticks(meter, scale, 41, 2, 10, lv_palette_main(LV_PALETTE_GREY)); in lv_example_meter_1()
23 lv_meter_set_scale_major_ticks(meter, scale, 8, 4, 15, lv_color_black(), 10); in lv_example_meter_1()
28 indic = lv_meter_add_arc(meter, scale, 3, lv_palette_main(LV_PALETTE_BLUE), 0); in lv_example_meter_1()
33 …indic = lv_meter_add_scale_lines(meter, scale, lv_palette_main(LV_PALETTE_BLUE), lv_palette_main(L… in lv_example_meter_1()
39 indic = lv_meter_add_arc(meter, scale, 3, lv_palette_main(LV_PALETTE_RED), 0); in lv_example_meter_1()
44 …indic = lv_meter_add_scale_lines(meter, scale, lv_palette_main(LV_PALETTE_RED), lv_palette_main(LV… in lv_example_meter_1()
50 indic = lv_meter_add_needle_line(meter, scale, 4, lv_palette_main(LV_PALETTE_GREY), -10); in lv_example_meter_1()
Dlv_example_meter_2.c24 lv_meter_scale_t * scale = lv_meter_add_scale(meter); in lv_example_meter_2() local
25 lv_meter_set_scale_ticks(meter, scale, 11, 2, 10, lv_palette_main(LV_PALETTE_GREY)); in lv_example_meter_2()
26 lv_meter_set_scale_major_ticks(meter, scale, 1, 2, 30, lv_color_hex3(0xeee), 15); in lv_example_meter_2()
27 lv_meter_set_scale_range(meter, scale, 0, 100, 270, 90); in lv_example_meter_2()
30 …lv_meter_indicator_t * indic1 = lv_meter_add_arc(meter, scale, 10, lv_palette_main(LV_PALETTE_RED)… in lv_example_meter_2()
31 …lv_meter_indicator_t * indic2 = lv_meter_add_arc(meter, scale, 10, lv_palette_main(LV_PALETTE_GREE… in lv_example_meter_2()
32 …lv_meter_indicator_t * indic3 = lv_meter_add_arc(meter, scale, 10, lv_palette_main(LV_PALETTE_BLUE… in lv_example_meter_2()
Dlv_example_meter_4.c19 lv_meter_scale_t * scale = lv_meter_add_scale(meter); in lv_example_meter_4() local
20 lv_meter_set_scale_ticks(meter, scale, 0, 0, 0, lv_color_black()); in lv_example_meter_4()
21 lv_meter_set_scale_range(meter, scale, 0, 100, 360, 0); in lv_example_meter_4()
25 …lv_meter_indicator_t * indic1 = lv_meter_add_arc(meter, scale, indic_w, lv_palette_main(LV_PALETTE… in lv_example_meter_4()
29 …lv_meter_indicator_t * indic2 = lv_meter_add_arc(meter, scale, indic_w, lv_palette_main(LV_PALETTE… in lv_example_meter_4()
33 …lv_meter_indicator_t * indic3 = lv_meter_add_arc(meter, scale, indic_w, lv_palette_main(LV_PALETTE… in lv_example_meter_4()
Dlv_example_meter_4.py15 scale = meter.add_scale() variable
16 meter.set_scale_ticks(scale, 0, 0, 0, lv.color_black())
17 meter.set_scale_range(scale, 0, 100, 360, 0)
21 indic1 = meter.add_arc(scale, indic_w,lv.palette_main(lv.PALETTE.ORANGE), 0)
25 indic2 = meter.add_arc(scale, indic_w, lv.palette_main(lv.PALETTE.YELLOW), 0)
29 indic3 = meter.add_arc(scale, indic_w, lv.palette_main(lv.PALETTE.DEEP_ORANGE), 0)
Dlv_example_meter_1.py17 scale = meter.add_scale() variable
18 meter.set_scale_ticks(scale, 51, 2, 10, lv.palette_main(lv.PALETTE.GREY))
19 meter.set_scale_major_ticks(scale, 10, 4, 15, lv.color_black(), 10)
24 indic = meter.add_arc(scale, 3, lv.palette_main(lv.PALETTE.BLUE), 0)
29 indic = meter.add_scale_lines(scale, lv.palette_main(lv.PALETTE.BLUE), lv.palette_main(lv.PALETTE.B…
34 indic = meter.add_arc(scale, 3, lv.palette_main(lv.PALETTE.RED), 0)
39 indic = meter.add_scale_lines(scale, lv.palette_main(lv.PALETTE.RED), lv.palette_main(lv.PALETTE.RE…
44 indic = meter.add_needle_line(scale, 4, lv.palette_main(lv.PALETTE.GREY), -10)
Dlv_example_meter_2.py21 scale = meter.add_scale() variable
22 meter.set_scale_ticks(scale, 11, 2, 10, lv.palette_main(lv.PALETTE.GREY))
23 meter.set_scale_major_ticks(scale, 1, 2, 30, lv.color_hex3(0xeee), 10)
24 meter.set_scale_range(scale, 0, 100, 270, 90)
27 indic1 = meter.add_arc(scale, 10, lv.palette_main(lv.PALETTE.RED), 0)
28 indic2 = meter.add_arc(scale, 10, lv.palette_main(lv.PALETTE.GREEN), -10)
29 indic3 = meter.add_arc(scale, 10, lv.palette_main(lv.PALETTE.BLUE), -20)
/lvgl-3.7.0/src/extra/libs/qrcode/
Dlv_qrcode.c93 int32_t scale = imgdsc->header.w / qr_size; in lv_qrcode_update() local
94 if(scale <= 0) return LV_RES_INV; in lv_qrcode_update()
98 uint32_t version_extend = remain / (scale << 2); in lv_qrcode_update()
123 scale = obj_w / qr_size; in lv_qrcode_update()
124 int scaled = qr_size * scale; in lv_qrcode_update()
133 for(y = margin; y < scaled + margin; y += scale) { in lv_qrcode_update()
139 bool a = qrcodegen_getModule(qr0, (x - margin) / scale, (y - margin) / scale); in lv_qrcode_update()
171 for(s = 1; s < scale; s++) { in lv_qrcode_update()
/lvgl-3.7.0/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.c74 float scale; member
108 stbtt_GetGlyphBitmapBox(&dsc->info, g1, dsc->scale, dsc->scale, &x1, &y1, &x2, &y2); in ttf_get_glyph_dsc_cb()
116 dsc_out->adv_w = (uint16_t)floor((((float)advw + (float)k) * dsc->scale) + in ttf_get_glyph_dsc_cb()
119 dsc_out->adv_w = (uint16_t)floor((((float)advw + (float)k) * dsc->scale) + in ttf_get_glyph_dsc_cb()
140 stbtt_GetGlyphBitmapBox(info, g1, dsc->scale, dsc->scale, &x1, &y1, &x2, &y2); in ttf_get_glyph_bitmap_cb()
170 stbtt_MakeGlyphBitmap(info, buffer, w, h, stride, dsc->scale, dsc->scale, g1); in ttf_get_glyph_bitmap_cb()
262 dsc->scale = stbtt_ScaleForMappingEmToPixels(&dsc->info, font_size); in lv_tiny_ttf_set_size()
265 font->line_height = (lv_coord_t)(dsc->scale * (dsc->ascent - dsc->descent + line_gap)); in lv_tiny_ttf_set_size()
266 font->base_line = (lv_coord_t)(dsc->scale * (line_gap - dsc->descent)); in lv_tiny_ttf_set_size()
Dstb_truetype_htcw.h384 float scale, xpos = 2; // leave a little padding in case the character extends left
390 scale = stbtt_ScaleForPixelHeight(&font, 15);
392 baseline = (int)(ascent * scale);
398 …stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale, scale, x_shift, 0, &x0, &y0, &x1, &y1);
399 …ntBitmapSubpixel(&font, &screen[baseline + y0][(int)xpos + x0], x1 - x0, y1 - y0, 79, scale, scale,
405 xpos += (advance * scale);
407 xpos += scale * stbtt_GetCodepointKernAdvance(&font, text[ch], text[ch + 1]);
991 STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo * info, float scale, int glyph, in…
993 STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo * info, float scale, int codep…
3990 float scale = scale_x > scale_y ? scale_y : scale_x; local
[all …]
/lvgl-3.7.0/docs/widgets/extra/
Dmeter.md14 ### Add a scale
16 First a *Scale* needs to be added to the Meter with `lv_meter_scale_t * scale = lv_meter_add_scale(…
21 The minor tick lines can be configured with: `lv_meter_set_scale_ticks(meter, scale, tick_count, li…
23 To add major tick lines use `lv_meter_set_scale_major_ticks(meter, scale, nth_major, tick_width, ti…
27 `lv_meter_set_scale_range(meter, scale, min, max, angle_range, rotation)` sets the value and angle …
37 …line(meter, scale, line_width, line_color, r_mod)` adds a needle line to a Scale. By default, the …
43 `indic = lv_meter_add_needle_img(meter, scale, img_src, pivot_x, pivot_y)` sets an image that will …
49 …r_add_arc(meter, scale, arc_width, arc_color, r_mod)` adds an arc indicator. By default, the radiu…
54 `indic = lv_meter_add_scale_lines(meter, scale, color_start, color_end, local, width_mod)` adds an …
56 …r_start` and `color_end` will be mapped to the start and end value of the scale and only a "slice"…
Dchart.md46 `axis` tells which axis's range should be used te scale the values.
/lvgl-3.7.0/src/extra/libs/sjpg/
Dtjpgd.h53 uint8_t scale; /* Output scaling ratio */ member
85 JRESULT jd_decomp (JDEC* jd, int (*outfunc)(JDEC*,void*,JRECT*), uint8_t scale);
Dtjpgd.c762 …if (z == 1 || (JD_USE_SCALE && jd->scale == 3)) { /* If no AC element or scale ratio is 1/8, IDCT … in mcu_load()
807 rx >>= jd->scale; ry >>= jd->scale; in mcu_output()
809 img_x >>= jd->scale; img_y >>= jd->scale; in mcu_output()
815 if (!JD_USE_SCALE || jd->scale != 3) { /* Not for 1/8 scaling */ in mcu_output()
859 if (JD_USE_SCALE && jd->scale) { in mcu_output()
864 s = jd->scale * 2; /* Number of shifts for averaging */ in mcu_output()
865 w = 1 << jd->scale; /* Width of square */ in mcu_output()
916 mx >>= jd->scale; in mcu_output()
1121 uint8_t scale /* Output de-scaling factor (0 to 3) */ in jd_decomp() argument
1129 if (scale > (JD_USE_SCALE ? 3 : 0)) return JDR_PAR; in jd_decomp()
[all …]
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c658 lv_meter_scale_t * scale; in analytics_create() local
662 scale = lv_meter_add_scale(meter1); in analytics_create()
663 lv_meter_set_scale_range(meter1, scale, 0, 100, 270, 90); in analytics_create()
664 lv_meter_set_scale_ticks(meter1, scale, 0, 0, 0, lv_color_black()); in analytics_create()
671 indic = lv_meter_add_arc(meter1, scale, 15, lv_palette_main(LV_PALETTE_BLUE), 0); in analytics_create()
678 indic = lv_meter_add_arc(meter1, scale, 15, lv_palette_main(LV_PALETTE_RED), -20); in analytics_create()
686 indic = lv_meter_add_arc(meter1, scale, 15, lv_palette_main(LV_PALETTE_GREEN), -40); in analytics_create()
695 scale = lv_meter_add_scale(meter2); in analytics_create()
696 lv_meter_set_scale_range(meter2, scale, 0, 100, 360, 90); in analytics_create()
697 lv_meter_set_scale_ticks(meter2, scale, 0, 0, 0, lv_color_black()); in analytics_create()
[all …]
/lvgl-3.7.0/src/extra/libs/freetype/
Dlv_freetype.c388 FT_Fixed scale = face_size->face->size->metrics.y_scale; in lv_ft_font_init_cache() local
389 int8_t thickness = FT_MulFix(scale, face_size->face->underline_thickness) >> 6; in lv_ft_font_init_cache()
390 font->underline_position = FT_MulFix(scale, face_size->face->underline_position) >> 6; in lv_ft_font_init_cache()
588 FT_Fixed scale = face->size->metrics.y_scale; in lv_ft_font_init_nocache() local
589 int8_t thickness = FT_MulFix(scale, face->underline_thickness) >> 6; in lv_ft_font_init_nocache()
590 font->underline_position = FT_MulFix(scale, face->underline_position) >> 6; in lv_ft_font_init_nocache()
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_blend.c595 vg_lite_float_t scale = 1.0f * dsc->zoom / LV_IMG_ZOOM_NONE; in lv_vglite_set_transformation_matrix() local
596 vg_lite_scale(scale, scale, &vgmatrix); in lv_vglite_set_transformation_matrix()
/lvgl-3.7.0/demos/stress/
Dlv_demo_stress.c255 lv_meter_scale_t * scale = lv_meter_add_scale(obj); in obj_test_timer_cb() local
256 lv_meter_add_needle_line(obj, scale, 3, lv_palette_main(LV_PALETTE_RED), -10); in obj_test_timer_cb()
/lvgl-3.7.0/docs/get-started/platforms/
Drenesas.md29 - Rotate and scale
/lvgl-3.7.0/docs/widgets/core/
Dcanvas.md58 `lv_canvas_transform()` can be used to rotate and/or scale the image of an image and store the resu…
Dimg.md76 Fractional scale works as well. E.g. `281` for 10% enlargement.
/lvgl-3.7.0/docs/intro/
Dindex.md138 - Gray-scale displays
/lvgl-3.7.0/docs/_static/css/
Dfontawesome.min.css5scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-9…
/lvgl-3.7.0/docs/overview/
Dstyle-props.md712 First draw the object on the layer, then scale down layer opacity factor. Value 0, `LV_OPA_0` or `L…

12