Home
last modified time | relevance | path

Searched refs:dsc (Results 1 – 25 of 143) sorted by relevance

123456

/lvgl-3.6.0/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_2.c10 lv_obj_draw_part_dsc_t * dsc = lv_event_get_draw_part_dsc(e); in event_cb() local
13 if(dsc->class_p == &lv_btnmatrix_class && dsc->type == LV_BTNMATRIX_DRAW_PART_BTN) { in event_cb()
15 if(dsc->id == 1) { in event_cb()
16 dsc->rect_dsc->radius = 0; in event_cb()
17 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb()
18 else dsc->rect_dsc->bg_color = lv_palette_main(LV_PALETTE_BLUE); in event_cb()
20 dsc->rect_dsc->shadow_width = 6; in event_cb()
21 dsc->rect_dsc->shadow_ofs_x = 3; in event_cb()
22 dsc->rect_dsc->shadow_ofs_y = 3; in event_cb()
23 dsc->label_dsc->color = lv_color_white(); in event_cb()
[all …]
Dlv_example_btnmatrix_2.py24 dsc = lv.obj_draw_part_dsc_t.__cast__(e.get_param())
27 if dsc.id == 1:
28 dsc.rect_dsc.radius = 0
29 if obj.get_selected_btn() == dsc.id:
30 dsc.rect_dsc.bg_color = lv.palette_darken(lv.PALETTE.GREY, 3)
32 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.BLUE)
34 dsc.rect_dsc.shadow_width = 6
35 dsc.rect_dsc.shadow_ofs_x = 3
36 dsc.rect_dsc.shadow_ofs_y = 3
37 dsc.label_dsc.color = lv.color_white()
[all …]
/lvgl-3.6.0/examples/widgets/chart/
Dlv_example_chart_2.c13 lv_obj_draw_part_dsc_t * dsc = lv_event_get_draw_part_dsc(e); in draw_event_cb() local
14 if(dsc->part == LV_PART_ITEMS) { in draw_event_cb()
15 if(!dsc->p1 || !dsc->p2) return; in draw_event_cb()
19 … lv_draw_mask_line_points_init(&line_mask_param, dsc->p1->x, dsc->p1->y, dsc->p2->x, dsc->p2->y, in draw_event_cb()
34 draw_rect_dsc.bg_color = dsc->line_dsc->color; in draw_event_cb()
37 a.x1 = dsc->p1->x; in draw_event_cb()
38 a.x2 = dsc->p2->x - 1; in draw_event_cb()
39 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
41 lv_draw_rect(dsc->draw_ctx, &draw_rect_dsc, &a); in draw_event_cb()
50 else if(dsc->part == LV_PART_MAIN) { in draw_event_cb()
[all …]
Dlv_example_chart_2.py6 dsc = lv.obj_draw_part_dsc_t.__cast__(e.get_param())
7 if dsc.part != lv.PART.ITEMS:
9 if not dsc.p1 or not dsc.p2:
14 … line_mask_param.points_init(dsc.p1.x, dsc.p1.y, dsc.p2.x, dsc.p2.y, lv.DRAW_MASK_LINE_SIDE.BOTTOM)
29 draw_rect_dsc.bg_color = dsc.line_dsc.color
32 a.x1 = dsc.p1.x
33 a.x2 = dsc.p2.x - 1
34 a.y1 = min(dsc.p1.y, dsc.p2.y)
38 dsc.draw_ctx.rect(draw_rect_dsc, a)
Dlv_example_chart_8.c20 lv_obj_draw_part_dsc_t * dsc = lv_event_get_draw_part_dsc(e); in draw_event_cb() local
21 if(dsc->part == LV_PART_ITEMS) { in draw_event_cb()
22 if(!dsc->p1 || !dsc->p2) in draw_event_cb()
27 … lv_draw_mask_line_points_init(&line_mask_param, dsc->p1->x, dsc->p1->y, dsc->p2->x, dsc->p2->y, in draw_event_cb()
35 draw_rect_dsc.bg_color = dsc->line_dsc->color; in draw_event_cb()
38 a.x1 = dsc->p1->x; in draw_event_cb()
39 a.x2 = dsc->p2->x; in draw_event_cb()
40 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
43 lv_draw_rect(dsc->draw_ctx, &draw_rect_dsc, &a); in draw_event_cb()
/lvgl-3.6.0/src/draw/
Dlv_img_buf.c41 lv_color_t lv_img_buf_get_px_color(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t… in lv_img_buf_get_px_color() argument
44 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_get_px_color()
46 …if(dsc->header.cf == LV_IMG_CF_TRUE_COLOR || dsc->header.cf == LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED || in lv_img_buf_get_px_color()
47 dsc->header.cf == LV_IMG_CF_TRUE_COLOR_ALPHA || dsc->header.cf == LV_IMG_CF_RGB565A8) { in lv_img_buf_get_px_color()
48 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color()
49 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
55 else if(dsc->header.cf == LV_IMG_CF_INDEXED_1BIT) { in lv_img_buf_get_px_color()
63 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
66 else if(dsc->header.cf == LV_IMG_CF_INDEXED_2BIT) { in lv_img_buf_get_px_color()
74 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
[all …]
Dlv_draw_rect.c37 void LV_ATTRIBUTE_FAST_MEM lv_draw_rect_dsc_init(lv_draw_rect_dsc_t * dsc) in lv_draw_rect_dsc_init() argument
39 lv_memset_00(dsc, sizeof(lv_draw_rect_dsc_t)); in lv_draw_rect_dsc_init()
40 dsc->bg_color = lv_color_white(); in lv_draw_rect_dsc_init()
41 dsc->bg_grad.stops[0].color = lv_color_white(); in lv_draw_rect_dsc_init()
42 dsc->bg_grad.stops[1].color = lv_color_black(); in lv_draw_rect_dsc_init()
43 dsc->bg_grad.stops[1].frac = 0xFF; in lv_draw_rect_dsc_init()
44 dsc->bg_grad.stops_count = 2; in lv_draw_rect_dsc_init()
45 dsc->border_color = lv_color_black(); in lv_draw_rect_dsc_init()
46 dsc->shadow_color = lv_color_black(); in lv_draw_rect_dsc_init()
47 dsc->bg_img_symbol_font = LV_FONT_DEFAULT; in lv_draw_rect_dsc_init()
[all …]
Dlv_img_decoder.c34 static lv_res_t lv_img_decoder_built_in_line_true_color(lv_img_decoder_dsc_t * dsc, lv_coord_t x, l…
36 static lv_res_t lv_img_decoder_built_in_line_alpha(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coo…
38 static lv_res_t lv_img_decoder_built_in_line_indexed(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_c…
107 lv_res_t lv_img_decoder_open(lv_img_decoder_dsc_t * dsc, const void * src, lv_color_t color, int32_… in lv_img_decoder_open() argument
109 lv_memset_00(dsc, sizeof(lv_img_decoder_dsc_t)); in lv_img_decoder_open()
118 dsc->color = color; in lv_img_decoder_open()
119 dsc->src_type = src_type; in lv_img_decoder_open()
120 dsc->frame_id = frame_id; in lv_img_decoder_open()
122 if(dsc->src_type == LV_IMG_SRC_FILE) { in lv_img_decoder_open()
124 dsc->src = lv_mem_alloc(fnlen + 1); in lv_img_decoder_open()
[all …]
Dlv_draw_label.c55 void LV_ATTRIBUTE_FAST_MEM lv_draw_label_dsc_init(lv_draw_label_dsc_t * dsc) in lv_draw_label_dsc_init() argument
57 lv_memset_00(dsc, sizeof(lv_draw_label_dsc_t)); in lv_draw_label_dsc_init()
58 dsc->opa = LV_OPA_COVER; in lv_draw_label_dsc_init()
59 dsc->color = lv_color_black(); in lv_draw_label_dsc_init()
60 dsc->font = LV_FONT_DEFAULT; in lv_draw_label_dsc_init()
61 dsc->sel_start = LV_DRAW_LABEL_NO_TXT_SEL; in lv_draw_label_dsc_init()
62 dsc->sel_end = LV_DRAW_LABEL_NO_TXT_SEL; in lv_draw_label_dsc_init()
63 dsc->sel_color = lv_color_black(); in lv_draw_label_dsc_init()
64 dsc->sel_bg_color = lv_palette_main(LV_PALETTE_BLUE); in lv_draw_label_dsc_init()
65 dsc->bidi_dir = LV_BASE_DIR_LTR; in lv_draw_label_dsc_init()
[all …]
Dlv_draw_line.c37 void LV_ATTRIBUTE_FAST_MEM lv_draw_line_dsc_init(lv_draw_line_dsc_t * dsc) in lv_draw_line_dsc_init() argument
39 lv_memset_00(dsc, sizeof(lv_draw_line_dsc_t)); in lv_draw_line_dsc_init()
40 dsc->width = 1; in lv_draw_line_dsc_init()
41 dsc->opa = LV_OPA_COVER; in lv_draw_line_dsc_init()
42 dsc->color = lv_color_black(); in lv_draw_line_dsc_init()
45 …V_ATTRIBUTE_FAST_MEM lv_draw_line(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_line_dsc_t * dsc, in lv_draw_line() argument
48 if(dsc->width == 0) return; in lv_draw_line()
49 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_line()
51 draw_ctx->draw_line(draw_ctx, dsc, point1, point2); in lv_draw_line()
/lvgl-3.6.0/src/extra/others/gridnav/
Dlv_gridnav.c66 lv_gridnav_dsc_t * dsc = lv_mem_alloc(sizeof(lv_gridnav_dsc_t)); in lv_gridnav_add() local
67 LV_ASSERT_MALLOC(dsc); in lv_gridnav_add()
68 dsc->ctrl = ctrl; in lv_gridnav_add()
69 dsc->focused_obj = NULL; in lv_gridnav_add()
70 lv_obj_add_event_cb(obj, gridnav_event_cb, LV_EVENT_ALL, dsc); in lv_gridnav_add()
77 lv_gridnav_dsc_t * dsc = lv_obj_get_event_user_data(obj, gridnav_event_cb); in lv_gridnav_remove() local
78 if(dsc == NULL) return; /* no gridnav on this object */ in lv_gridnav_remove()
80 lv_mem_free(dsc); in lv_gridnav_remove()
87 lv_gridnav_dsc_t * dsc = lv_obj_get_event_user_data(cont, gridnav_event_cb); in lv_gridnav_set_focused() local
88 if(dsc == NULL) { in lv_gridnav_set_focused()
[all …]
/lvgl-3.6.0/src/extra/others/imgfont/
Dlv_imgfont.c55 imgfont_dsc_t * dsc = (imgfont_dsc_t *)lv_mem_alloc(size); in lv_imgfont_create() local
56 if(dsc == NULL) return NULL; in lv_imgfont_create()
57 lv_memset_00(dsc, size); in lv_imgfont_create()
59 dsc->font = (lv_font_t *)(((char *)dsc) + sizeof(imgfont_dsc_t)); in lv_imgfont_create()
60 dsc->path_cb = path_cb; in lv_imgfont_create()
62 lv_font_t * font = dsc->font; in lv_imgfont_create()
63 font->dsc = dsc; in lv_imgfont_create()
72 return dsc->font; in lv_imgfont_create()
81 imgfont_dsc_t * dsc = (imgfont_dsc_t *)font->dsc; in lv_imgfont_destroy() local
82 lv_mem_free(dsc); in lv_imgfont_destroy()
[all …]
/lvgl-3.6.0/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.c100 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_get_glyph_dsc_cb() local
101 int g1 = stbtt_FindGlyphIndex(&dsc->info, (int)unicode_letter); in ttf_get_glyph_dsc_cb()
108 stbtt_GetGlyphBitmapBox(&dsc->info, g1, dsc->scale, dsc->scale, &x1, &y1, &x2, &y2); in ttf_get_glyph_dsc_cb()
111 g2 = stbtt_FindGlyphIndex(&dsc->info, (int)unicode_letter_next); in ttf_get_glyph_dsc_cb()
114 stbtt_GetGlyphHMetrics(&dsc->info, g1, &advw, &lsb); in ttf_get_glyph_dsc_cb()
115 int k = stbtt_GetGlyphKernAdvance(&dsc->info, g1, g2); 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()
132 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_get_glyph_bitmap_cb() local
133 const stbtt_fontinfo * info = (const stbtt_fontinfo *)&dsc->info; in ttf_get_glyph_bitmap_cb()
[all …]
/lvgl-3.6.0/src/draw/nxp/vglite/
Dlv_draw_vglite.c69 static void lv_draw_vglite_img_decoded(lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * dsc,
76 static void lv_draw_vglite_blend(lv_draw_ctx_t * draw_ctx, const lv_draw_sw_blend_dsc_t * dsc);
78 static void lv_draw_vglite_line(lv_draw_ctx_t * draw_ctx, const lv_draw_line_dsc_t * dsc, const lv_…
81 static void lv_draw_vglite_rect(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_…
83 static lv_res_t lv_draw_vglite_bg(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const l…
85 static lv_res_t lv_draw_vglite_border(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc,
88 static lv_res_t lv_draw_vglite_outline(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc,
91 static void lv_draw_vglite_arc(lv_draw_ctx_t * draw_ctx, const lv_draw_arc_dsc_t * dsc, const lv_po…
163 static void lv_draw_vglite_blend(lv_draw_ctx_t * draw_ctx, const lv_draw_sw_blend_dsc_t * dsc) in lv_draw_vglite_blend() argument
165 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_vglite_blend()
[all …]
Dlv_draw_vglite_line.c65 const lv_area_t * clip_area, const lv_draw_line_dsc_t * dsc) in lv_gpu_nxp_vglite_draw_line() argument
71 …vg_lite_cap_style_t cap_style = (dsc->round_start || dsc->round_end) ? VG_LITE_CAP_ROUND : VG_LITE… in lv_gpu_nxp_vglite_draw_line()
72 …vg_lite_join_style_t join_style = (dsc->round_start || dsc->round_end) ? VG_LITE_JOIN_ROUND : VG_L… in lv_gpu_nxp_vglite_draw_line()
74 bool is_dashed = (dsc->dash_width && dsc->dash_gap); in lv_gpu_nxp_vglite_draw_line()
80 stroke_dash_pattern[0] = (vg_lite_float_t)dsc->dash_width; in lv_gpu_nxp_vglite_draw_line()
81 stroke_dash_pattern[1] = (vg_lite_float_t)dsc->dash_gap; in lv_gpu_nxp_vglite_draw_line()
83 stroke_dash_phase = (vg_lite_float_t)dsc->dash_width / 2; in lv_gpu_nxp_vglite_draw_line()
87 vg_lite_blend_t vglite_blend_mode = lv_vglite_get_blend_mode(dsc->blend_mode); in lv_gpu_nxp_vglite_draw_line()
90 lv_coord_t width = dsc->width; in lv_gpu_nxp_vglite_draw_line()
106 lv_color32_t col32 = { .full = lv_color_to32(dsc->color) }; /*Convert color to RGBA8888*/ in lv_gpu_nxp_vglite_draw_line()
[all …]
/lvgl-3.6.0/src/draw/sdl/
Dlv_draw_sdl_line.c47 static lv_draw_line_key_t line_key_create(const lv_draw_line_dsc_t * dsc, lv_coord_t length);
49 …atic SDL_Texture * line_texture_create(lv_draw_sdl_ctx_t * sdl_ctx, const lv_draw_line_dsc_t * dsc,
55 void lv_draw_sdl_draw_line(lv_draw_ctx_t * draw_ctx, const lv_draw_line_dsc_t * dsc, const lv_point… in lv_draw_sdl_draw_line() argument
67 lv_draw_line_key_t key = line_key_create(dsc, (lv_coord_t) length); in lv_draw_sdl_draw_line()
70 texture = line_texture_create(sdl_ctx, dsc, (lv_coord_t) length); in lv_draw_sdl_draw_line()
82 lv_area_t extension = {dsc->width / 2, dsc->width / 2, dsc->width / 2, dsc->width / 2}; in lv_draw_sdl_draw_line()
83 …lv_draw_sdl_composite_begin(sdl_ctx, &coords, clip, &extension, dsc->blend_mode, &t_coords, &t_cli… in lv_draw_sdl_draw_line()
87 lv_color_to_sdl_color(&dsc->color, &color); in lv_draw_sdl_draw_line()
90 SDL_SetTextureAlphaMod(texture, dsc->opa); in lv_draw_sdl_draw_line()
91 SDL_Rect srcrect = {0, 0, (int) length + dsc->width + 2, dsc->width + 2}, in lv_draw_sdl_draw_line()
[all …]
Dlv_draw_sdl_rect.c77 const lv_draw_rect_dsc_t * dsc);
83 const lv_draw_rect_dsc_t * dsc);
86 const lv_draw_rect_dsc_t * dsc);
89 const lv_draw_rect_dsc_t * dsc);
92 const lv_draw_rect_dsc_t * dsc);
95 const lv_draw_rect_dsc_t * dsc);
126 …fine SKIP_BORDER(dsc) ((dsc)->border_opa <= LV_OPA_MIN || (dsc)->border_width == 0 || (dsc)->borde… argument
127dsc) ((dsc)->shadow_width == 0 || (dsc)->shadow_opa <= LV_OPA_MIN || ((dsc)->shadow_width == 1 && … argument
128 #define SKIP_IMAGE(dsc) ((dsc)->bg_img_src == NULL || (dsc)->bg_img_opa <= LV_OPA_MIN) argument
129 #define SKIP_OUTLINE(dsc) ((dsc)->outline_opa <= LV_OPA_MIN || (dsc)->outline_width == 0) argument
[all …]
Dlv_draw_sdl_bg.c36 const lv_draw_rect_dsc_t * dsc);
39 const lv_draw_rect_dsc_t * dsc);
53 void lv_draw_sdl_draw_bg(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t … in lv_draw_sdl_draw_bg() argument
63 if(dsc->bg_img_src) { in lv_draw_sdl_draw_bg()
64 draw_bg_img(ctx, coords, &t_area, dsc); in lv_draw_sdl_draw_bg()
67 draw_bg_color(ctx, coords, &t_area, dsc); in lv_draw_sdl_draw_bg()
78 const lv_draw_rect_dsc_t * dsc) in draw_bg_color() argument
81 lv_color_to_sdl_color(&dsc->bg_color, &bg_color); in draw_bg_color()
83 SDL_SetRenderDrawColor(ctx->renderer, bg_color.r, bg_color.g, bg_color.b, dsc->bg_opa); in draw_bg_color()
93 const lv_draw_rect_dsc_t * dsc) in draw_bg_img() argument
[all …]
/lvgl-3.6.0/src/extra/libs/freetype/
Dlv_freetype.c190 lv_font_fmt_ft_dsc_t * dsc = (lv_font_fmt_ft_dsc_t *)face_id; in font_face_requester() local
192 if(dsc->mem) { in font_face_requester()
193 error = FT_New_Memory_Face(library, dsc->mem, dsc->mem_size, 0, aface); in font_face_requester()
196 error = FT_New_Face(library, dsc->name, 0, aface); in font_face_requester()
212 lv_font_fmt_ft_dsc_t * dsc = (lv_font_fmt_ft_dsc_t *)(font->dsc); in get_bold_glyph() local
214 if(dsc->style & FT_FONT_STYLE_BOLD) { in get_bold_glyph()
249 lv_font_fmt_ft_dsc_t * dsc = (lv_font_fmt_ft_dsc_t *)(font->dsc); in get_glyph_dsc_cb_cache() local
251 FTC_FaceID face_id = (FTC_FaceID)dsc; in get_glyph_dsc_cb_cache()
255 scaler.width = dsc->height; in get_glyph_dsc_cb_cache()
256 scaler.height = dsc->height; in get_glyph_dsc_cb_cache()
[all …]
/lvgl-3.6.0/src/widgets/
Dlv_canvas.c73 canvas->dsc.header.cf = cf; in lv_canvas_set_buffer()
74 canvas->dsc.header.w = w; in lv_canvas_set_buffer()
75 canvas->dsc.header.h = h; in lv_canvas_set_buffer()
76 canvas->dsc.data = buf; in lv_canvas_set_buffer()
78 lv_img_set_src(obj, &canvas->dsc); in lv_canvas_set_buffer()
79 lv_img_cache_invalidate_src(&canvas->dsc); in lv_canvas_set_buffer()
88 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_set_px_color()
98 lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_set_px_opa()
108 lv_img_buf_set_palette(&canvas->dsc, id, c); in lv_canvas_set_palette()
123 return lv_img_buf_get_px_color(&canvas->dsc, x, y, color); in lv_canvas_get_px()
[all …]
/lvgl-3.6.0/src/draw/nxp/pxp/
Dlv_draw_pxp.c62 static void lv_draw_pxp_blend(lv_draw_ctx_t * draw_ctx, const lv_draw_sw_blend_dsc_t * dsc);
64 static void lv_draw_pxp_img_decoded(lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * dsc,
131 static void lv_draw_pxp_blend(lv_draw_ctx_t * draw_ctx, const lv_draw_sw_blend_dsc_t * dsc) in lv_draw_pxp_blend() argument
133 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_pxp_blend()
137 lv_draw_sw_blend_basic(draw_ctx, dsc); in lv_draw_pxp_blend()
143 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) in lv_draw_pxp_blend()
148 if(dsc->mask_buf != NULL || dsc->blend_mode != LV_BLEND_MODE_NORMAL || in lv_draw_pxp_blend()
150 lv_draw_sw_blend_basic(draw_ctx, dsc); in lv_draw_pxp_blend()
157 const lv_color_t * src_buf = dsc->src_buf; in lv_draw_pxp_blend()
160 lv_gpu_nxp_pxp_fill(dest_buf, &blend_area, dest_stride, dsc->color, dsc->opa); in lv_draw_pxp_blend()
[all …]
/lvgl-3.6.0/examples/widgets/table/
Dlv_example_table_1.c7 lv_obj_draw_part_dsc_t * dsc = lv_event_get_draw_part_dsc(e); in draw_part_event_cb() local
9 if(dsc->part == LV_PART_ITEMS) { in draw_part_event_cb()
10 uint32_t row = dsc->id / lv_table_get_col_cnt(obj); in draw_part_event_cb()
11 uint32_t col = dsc->id - row * lv_table_get_col_cnt(obj); in draw_part_event_cb()
15 dsc->label_dsc->align = LV_TEXT_ALIGN_CENTER; in draw_part_event_cb()
16dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_BLUE), dsc->rect_dsc->bg_color, … in draw_part_event_cb()
17 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
21 dsc->label_dsc->align = LV_TEXT_ALIGN_RIGHT; in draw_part_event_cb()
26dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_GREY), dsc->rect_dsc->bg_color, … in draw_part_event_cb()
27 dsc->rect_dsc->bg_opa = LV_OPA_COVER; in draw_part_event_cb()
Dlv_example_table_1.py3 dsc = lv.obj_draw_part_dsc_t.__cast__(e.get_param())
5 if dsc.part == lv.PART.ITEMS:
6 row = dsc.id // obj.get_col_cnt()
7 col = dsc.id - row * obj.get_col_cnt()
11 dsc.label_dsc.align = lv.TEXT_ALIGN.CENTER
12dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.BLUE).color_mix(dsc.rect_dsc.bg_color, lv.OPA._…
13 dsc.rect_dsc.bg_opa = lv.OPA.COVER
17 dsc.label_dsc.flag = lv.TEXT_ALIGN.RIGHT
21dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.GREY).color_mix(dsc.rect_dsc.bg_color, lv.OPA._…
22 dsc.rect_dsc.bg_opa = lv.OPA.COVER
/lvgl-3.6.0/src/draw/sw/
Dlv_draw_sw_line.c26 …RIBUTE_FAST_MEM */ draw_line_skew(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_line_dsc_t * dsc,
28 …TRIBUTE_FAST_MEM */ draw_line_hor(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_line_dsc_t * dsc,
30 …TRIBUTE_FAST_MEM */ draw_line_ver(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_line_dsc_t * dsc,
52 …TTRIBUTE_FAST_MEM lv_draw_sw_line(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_line_dsc_t * dsc, in lv_draw_sw_line() argument
55 if(dsc->width == 0) return; in lv_draw_sw_line()
56 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_sw_line()
61 clip_line.x1 = LV_MIN(point1->x, point2->x) - dsc->width / 2; in lv_draw_sw_line()
62 clip_line.x2 = LV_MAX(point1->x, point2->x) + dsc->width / 2; in lv_draw_sw_line()
63 clip_line.y1 = LV_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_sw_line()
64 clip_line.y2 = LV_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_sw_line()
[all …]
/lvgl-3.6.0/src/extra/others/snapshot/
Dlv_snapshot.c84 lv_res_t lv_snapshot_take_to_buf(lv_obj_t * obj, lv_img_cf_t cf, lv_img_dsc_t * dsc, void * buf, ui… in lv_snapshot_take_to_buf() argument
87 LV_ASSERT_NULL(dsc); in lv_snapshot_take_to_buf()
117 lv_memset_00(dsc, sizeof(lv_img_dsc_t)); in lv_snapshot_take_to_buf()
150 dsc->data = buf; in lv_snapshot_take_to_buf()
151 dsc->header.w = w; in lv_snapshot_take_to_buf()
152 dsc->header.h = h; in lv_snapshot_take_to_buf()
153 dsc->header.cf = cf; in lv_snapshot_take_to_buf()
175 lv_img_dsc_t * dsc = lv_mem_alloc(sizeof(lv_img_dsc_t)); in lv_snapshot_take() local
177 if(dsc == NULL) { in lv_snapshot_take()
182 if(lv_snapshot_take_to_buf(obj, cf, dsc, buf, buff_size) == LV_RES_INV) { in lv_snapshot_take()
[all …]

123456