/lvgl-3.5.0/src/draw/ |
D | lv_draw_arc.c | 58 lv_coord_t w, bool rounded, lv_area_t * area) in lv_draw_arc_get_area() argument 64 area->x1 = x - rout; in lv_draw_arc_get_area() 65 area->y1 = y - rout; in lv_draw_arc_get_area() 66 area->x2 = x + rout; in lv_draw_arc_get_area() 67 area->y2 = y + rout; in lv_draw_arc_get_area() 85 area->y1 = y + ((lv_trigo_sin(start_angle) * rin) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area() 86 area->x2 = x + ((lv_trigo_sin(start_angle + 90) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area() 88 area->y2 = y + ((lv_trigo_sin(end_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area() 89 area->x1 = x + ((lv_trigo_sin(end_angle + 90) * rin) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area() 92 area->y2 = y + ((lv_trigo_sin(start_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area() [all …]
|
/lvgl-3.5.0/src/draw/nxp/vglite/ |
D | lv_vglite_buf.c | 58 static inline void lv_vglite_set_dest_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_… 61 const lv_area_t * area, lv_coord_t stride); 78 void lv_gpu_nxp_vglite_init_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride) in lv_gpu_nxp_vglite_init_buf() argument 80 lv_vglite_set_dest_buf(buf, area, stride); in lv_gpu_nxp_vglite_init_buf() 103 void lv_vglite_set_src_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride) in lv_vglite_set_src_buf() argument 106 lv_vglite_set_buf(&src_vgbuf, buf, area, stride); in lv_vglite_set_src_buf() 113 static inline void lv_vglite_set_dest_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_… in lv_vglite_set_dest_buf() argument 115 lv_vglite_set_buf(&dest_vgbuf, buf, area, stride); in lv_vglite_set_dest_buf() 125 const lv_area_t * area, lv_coord_t stride) in lv_vglite_set_buf() argument 132 vgbuf->width = (int32_t)lv_area_get_width(area); in lv_vglite_set_buf() [all …]
|
D | lv_draw_vglite_blend.c | 123 static void align_x(lv_area_t * area, lv_color_t ** buf); 132 static void align_y(lv_area_t * area, lv_color_t ** buf, lv_coord_t stride); 562 static void align_x(lv_area_t * area, lv_color_t ** buf) in align_x() argument 564 …int alignedAreaStartPx = area->x1 - (area->x1 % (LV_ATTRIBUTE_MEM_ALIGN_SIZE / sizeof(lv_color_t))… in align_x() 567 area->x1 -= alignedAreaStartPx; in align_x() 568 area->x2 -= alignedAreaStartPx; in align_x() 572 static void align_y(lv_area_t * area, lv_color_t ** buf, lv_coord_t stride) in align_y() argument 578 alignedAreaStartPy = area->y1; in align_y() 584 alignedAreaStartPy = area->y1 - (area->y1 % LineToAlignMem); in align_y() 588 area->y1 -= alignedAreaStartPy; in align_y() [all …]
|
D | lv_vglite_buf.h | 64 void lv_gpu_nxp_vglite_init_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride); 101 void lv_vglite_set_src_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride);
|
/lvgl-3.5.0/examples/porting/ |
D | lv_port_disp_template.c | 37 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p); 163 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p) 170 for(y = area->y1; y <= area->y2; y++) { 171 for(x = area->x1; x <= area->x2; x++) {
|
/lvgl-3.5.0/src/core/ |
D | lv_refr.c | 63 static void call_flush_cb(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_p); 732 info.area = area_p; in lv_refr_get_top_obj() 864 info.area = &layer_ctx->area_act; in layer_alpha_test() 903 info.area = &layer_area_full; in refr_obj() 1006 static void draw_buf_rotate_180(lv_disp_drv_t * drv, lv_area_t * area, lv_color_t * color_p) in draw_buf_rotate_180() argument 1008 lv_coord_t area_w = lv_area_get_width(area); in draw_buf_rotate_180() 1009 lv_coord_t area_h = lv_area_get_height(area); in draw_buf_rotate_180() 1022 tmp_coord = area->y2; in draw_buf_rotate_180() 1023 area->y2 = drv->ver_res - area->y1 - 1; in draw_buf_rotate_180() 1024 area->y1 = drv->ver_res - tmp_coord - 1; in draw_buf_rotate_180() [all …]
|
D | lv_obj_pos.c | 591 void lv_obj_get_content_coords(const lv_obj_t * obj, lv_area_t * area) in lv_obj_get_content_coords() argument 596 lv_obj_get_coords(obj, area); in lv_obj_get_content_coords() 597 lv_area_increase(area, -border_width, -border_width); in lv_obj_get_content_coords() 598 area->x1 += lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_obj_get_content_coords() 599 area->x2 -= lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in lv_obj_get_content_coords() 600 area->y1 += lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in lv_obj_get_content_coords() 601 area->y2 -= lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN); in lv_obj_get_content_coords() 814 void lv_obj_get_transformed_area(const lv_obj_t * obj, lv_area_t * area, bool recursive, in lv_obj_get_transformed_area() argument 818 {area->x1, area->y1}, in lv_obj_get_transformed_area() 819 {area->x1, area->y2}, in lv_obj_get_transformed_area() [all …]
|
D | lv_obj_pos.h | 317 void lv_obj_get_content_coords(const struct _lv_obj_t * obj, lv_area_t * area); 367 void lv_obj_get_transformed_area(const struct _lv_obj_t * obj, lv_area_t * area, bool recursive, bo… 375 void lv_obj_invalidate_area(const struct _lv_obj_t * obj, const lv_area_t * area); 389 bool lv_obj_area_is_visible(const struct _lv_obj_t * obj, lv_area_t * area); 411 void lv_obj_get_click_area(const struct _lv_obj_t * obj, lv_area_t * area);
|
/lvgl-3.5.0/src/draw/sdl/ |
D | lv_draw_sdl_layer.c | 129 lv_area_t * area = ctx->base_draw.buf_area; in lv_draw_sdl_transform_areas_offset() local 130 lv_area_move(coords, -area->x1, -area->y1); in lv_draw_sdl_transform_areas_offset() 131 lv_area_move(clip, -area->x1, -area->y1); in lv_draw_sdl_transform_areas_offset() 133 lv_area_move(apply_area, -area->x1, -area->y1); in lv_draw_sdl_transform_areas_offset()
|
D | lv_draw_sdl_rect.c | 560 lv_area_t area; in draw_bg_img() local 561 area.x1 = coords->x1 + lv_area_get_width(coords) / 2 - header.w / 2; in draw_bg_img() 562 area.y1 = coords->y1 + lv_area_get_height(coords) / 2 - header.h / 2; in draw_bg_img() 563 area.x2 = area.x1 + header.w - 1; in draw_bg_img() 564 area.y2 = area.y1 + header.h - 1; in draw_bg_img() 566 lv_draw_img((lv_draw_ctx_t *) ctx, &img_dsc, &area, dsc->bg_img_src); in draw_bg_img() 569 lv_area_t area; in draw_bg_img() local 570 area.y1 = coords->y1; in draw_bg_img() 571 area.y2 = area.y1 + header.h - 1; in draw_bg_img() 573 for(; area.y1 <= coords->y2; area.y1 += header.h, area.y2 += header.h) { in draw_bg_img() [all …]
|
/lvgl-3.5.0/src/misc/ |
D | lv_area.c | 26 static bool lv_point_within_circle(const lv_area_t * area, const lv_point_t * p); 106 void lv_area_increase(lv_area_t * area, lv_coord_t w_extra, lv_coord_t h_extra) in lv_area_increase() argument 108 area->x1 -= w_extra; in lv_area_increase() 109 area->x2 += w_extra; in lv_area_increase() 110 area->y1 -= h_extra; in lv_area_increase() 111 area->y2 += h_extra; in lv_area_increase() 114 void lv_area_move(lv_area_t * area, lv_coord_t x_ofs, lv_coord_t y_ofs) in lv_area_move() argument 116 area->x1 += x_ofs; in lv_area_move() 117 area->x2 += x_ofs; in lv_area_move() 118 area->y1 += y_ofs; in lv_area_move() [all …]
|
/lvgl-3.5.0/tests/src/ |
D | lv_test_init.c | 14 static void dummy_flush_cb(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p); 67 static void dummy_flush_cb(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p) in dummy_flush_cb() argument 69 LV_UNUSED(area); in dummy_flush_cb() 72 memcpy(test_fb, color_p, lv_area_get_size(area) * sizeof(lv_color_t)); in dummy_flush_cb()
|
/lvgl-3.5.0/docs/widgets/core/ |
D | textarea.md | 1 # Text area (lv_textarea) 7 Long lines are wrapped and when the text becomes long enough the Text area can be scrolled. 12 - `LV_PART_MAIN` The background of the text area. Uses all the typical background style properties … 14 …lor` style properties can be used. `bg_color` should be set directly on the label of the text area. 15 - `LV_PART_CURSOR` Marks the position where the characters are inserted. The cursor's area is alway… 35 A placeholder text can be specified - which is displayed when the Text area is empty - with `lv_tex… 54 …s(textarea, true)` is applied the cursor will jump to the position where the Text area was clicked. 60 The Text area can be configured to be on a single line with `lv_textarea_set_one_line(textarea, tru… 64 The text area supports password mode which can be enabled with `lv_textarea_set_password_mode(texta… 81 If there is a very long text in the Text area (e.g. > 20k characters), scrolling and drawing might … [all …]
|
D | slider.md | 32 The extended click area (set by `lv_obj_set_ext_click_area(slider, value)`) increases to knob's cli… 40 - `draw_area`: area of the indicator 45 - `draw_area`: area of the indicator
|
/lvgl-3.5.0/examples/widgets/textarea/ |
D | index.rst | 2 Simple Text area 9 Text area with password field
|
/lvgl-3.5.0/examples/arduino/LVGL_Arduino/ |
D | LVGL_Arduino.ino | 31 void my_disp_flush( lv_disp_t *disp, const lv_area_t *area, lv_color_t *color_p ) 33 uint32_t w = ( area->x2 - area->x1 + 1 ); 34 uint32_t h = ( area->y2 - area->y1 + 1 ); 37 tft.setAddrWindow( area->x1, area->y1, w, h );
|
/lvgl-3.5.0/docs/overview/ |
D | drawing.md | 27 2. LVGL saves the changed object's old and new area into a buffer, called an *Invalid area buffer*.… 30 - Areas partially out of the parent are cropped to the parent's area. 34 …- Takes the first joined area, if it's smaller than the *draw buffer*, then simply renders the are… 35 If the area doesn't fit into the buffer, draw as many lines as possible to the *draw buffer*. 36 - When the area is rendered, call `flush_cb` from the display driver to refresh the display. 37 - If the area was larger than the buffer, render the remaining parts too. 40 When an area is redrawn the library searches the top-most object which covers that area and starts … 113 …e used to get the current clip area. The clip area is required in draw functions to make them draw… 132 `lv_event_get_clip_area(event)` can be used to get the current clip area. 158 const lv_area_t * clip_area; // The current clip area, required if you need to draw somethin… [all …]
|
/lvgl-3.5.0/examples/widgets/chart/ |
D | index.rst | 9 Faded area line chart with custom division lines 45 Stacked area chart
|
/lvgl-3.5.0/docs/porting/ |
D | gpu.md | 12 …The current clip area with absolute coordinates, always the same or smaller than `buf_area`. All d… 53 /** Blend a color or image to an area*/ 67 …ons end up in the `blend` callback which can either fill an area or copy an image to an area by co… 70 - `const lv_area_t * blend_area` The area with absolute coordinates to draw on `draw_ctx->buf`. If … 75 - `const lv_area_t * mask_area` The area of `mask_buf` with absolute coordinates 86 As all draw callbacks call `blend` callback to fill an area in the end only the `blend` callback ne… 126 /*Let's get the blend area which is the intersection of the area to fill and the clip area.*/ 139 /*Make the blend area relative to the buffer*/
|
D | display.md | 28 If only a small area changes (e.g. a button is pressed) then only that area will be refreshed. 66 `disp->inv_area_joined[LV_INV_BUF_SIZE]` if 1 that area was joined into another one and should be i… 83 - `flush_cb` a callback function to copy a buffer's content to a specific area of the display. 105 …_t` can be smaller to hold only the required number of bits for the given area size. Note that ren… 111 - `gpu_fill_cb` fill an area in the memory with a color. 130 void my_flush_cb(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p) 135 for(y = area->y1; y <= area->y2; y++) { 136 for(x = area->x1; x <= area->x2; x++) { 162 void my_rounder_cb(lv_disp_drv_t * disp_drv, lv_area_t * area) 165 * For example it makes the area to start only on 8th rows and have Nx8 pixel height.*/ [all …]
|
/lvgl-3.5.0/src/widgets/ |
D | lv_line.c | 170 lv_area_t area; in lv_line_event() local 171 lv_obj_get_coords(obj, &area); in lv_line_event() 172 lv_coord_t x_ofs = area.x1 - lv_obj_get_scroll_x(obj); in lv_line_event() 173 lv_coord_t y_ofs = area.y1 - lv_obj_get_scroll_y(obj); in lv_line_event()
|
D | lv_table.c | 44 static void get_cell_area(lv_obj_t * obj, uint16_t row, uint16_t col, lv_area_t * area); 976 static void get_cell_area(lv_obj_t * obj, uint16_t row, uint16_t col, lv_area_t * area) in get_cell_area() argument 981 area->x1 = 0; in get_cell_area() 983 area->x1 += table->col_w[c]; in get_cell_area() 988 area->x1 += lv_obj_get_scroll_x(obj); in get_cell_area() 990 area->x2 = w - area->x1 - lv_obj_get_style_pad_right(obj, 0); in get_cell_area() 991 area->x1 = area->x2 - table->col_w[col]; in get_cell_area() 994 area->x1 -= lv_obj_get_scroll_x(obj); in get_cell_area() 995 area->x1 += lv_obj_get_style_pad_left(obj, 0); in get_cell_area() 996 area->x2 = area->x1 + table->col_w[col] - 1; in get_cell_area() [all …]
|
/lvgl-3.5.0/demos/benchmark/ |
D | README.md | 59 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p) 62 GLCD_DrawBitmap(area->x1, //!< x 63 area->y1, //!< y 64 area->x2 - area->x1 + 1, //!< width 65 area->y2 - area->y1 + 1, //!< height
|
/lvgl-3.5.0/docs/widgets/extra/ |
D | keyboard.md | 7 … other features to realize a virtual keyboard to write texts into a [Text area](/widgets/core/text… 28 ### Assign Text area 29 You can assign a [Text area](/widgets/core/textarea) to the Keyboard to automatically put the click… 30 To assign the text area, use `lv_keyboard_set_textarea(kb, ta)`. 58 …t_cb`, which handles the button pressing, map changing, the assigned text area, etc. You can remov…
|
/lvgl-3.5.0/examples/widgets/keyboard/ |
D | index.rst | 2 Keyboard with text area
|