Home
last modified time | relevance | path

Searched refs:lv_coord_t (Results 1 – 25 of 189) sorted by relevance

12345678

/lvgl-latest/src/core/
Dlv_obj_pos.h47 void lv_obj_set_pos(struct _lv_obj_t * obj, lv_coord_t x, lv_coord_t y);
58 void lv_obj_set_x(struct _lv_obj_t * obj, lv_coord_t x);
69 void lv_obj_set_y(struct _lv_obj_t * obj, lv_coord_t y);
82 void lv_obj_set_size(struct _lv_obj_t * obj, lv_coord_t w, lv_coord_t h);
101 void lv_obj_set_width(struct _lv_obj_t * obj, lv_coord_t w);
113 void lv_obj_set_height(struct _lv_obj_t * obj, lv_coord_t h);
120 void lv_obj_set_content_width(struct _lv_obj_t * obj, lv_coord_t w);
127 void lv_obj_set_content_height(struct _lv_obj_t * obj, lv_coord_t h);
180 void lv_obj_align(struct _lv_obj_t * obj, lv_align_t align, lv_coord_t x_ofs, lv_coord_t y_ofs);
191 …align_to(struct _lv_obj_t * obj, const struct _lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs,
[all …]
Dlv_obj_scroll.h125 lv_coord_t lv_obj_get_scroll_x(const struct _lv_obj_t * obj);
135 lv_coord_t lv_obj_get_scroll_y(const struct _lv_obj_t * obj);
144 lv_coord_t lv_obj_get_scroll_top(struct _lv_obj_t * obj);
153 lv_coord_t lv_obj_get_scroll_bottom(struct _lv_obj_t * obj);
162 lv_coord_t lv_obj_get_scroll_left(struct _lv_obj_t * obj);
171 lv_coord_t lv_obj_get_scroll_right(struct _lv_obj_t * obj);
194 void lv_obj_scroll_by(struct _lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_anim_enable_t anim_en);
205 void lv_obj_scroll_by_bounded(struct _lv_obj_t * obj, lv_coord_t dx, lv_coord_t dy, lv_anim_enable_…
215 void lv_obj_scroll_to(struct _lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_anim_enable_t anim_en);
224 void lv_obj_scroll_to_x(struct _lv_obj_t * obj, lv_coord_t x, lv_anim_enable_t anim_en);
[all …]
Dlv_obj_style_gen.h1 static inline lv_coord_t lv_obj_get_style_width(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_width()
4 return (lv_coord_t)v.num; in lv_obj_get_style_width()
7 static inline lv_coord_t lv_obj_get_style_min_width(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_min_width()
10 return (lv_coord_t)v.num; in lv_obj_get_style_min_width()
13 static inline lv_coord_t lv_obj_get_style_max_width(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_max_width()
16 return (lv_coord_t)v.num; in lv_obj_get_style_max_width()
19 static inline lv_coord_t lv_obj_get_style_height(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_height()
22 return (lv_coord_t)v.num; in lv_obj_get_style_height()
25 static inline lv_coord_t lv_obj_get_style_min_height(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_min_height()
28 return (lv_coord_t)v.num; in lv_obj_get_style_min_height()
[all …]
Dlv_indev_scroll.c26 static lv_coord_t find_snap_point_x(const lv_obj_t * obj, lv_coord_t min, lv_coord_t max, lv_coord_…
27 static lv_coord_t find_snap_point_y(const lv_obj_t * obj, lv_coord_t min, lv_coord_t max, lv_coord_…
28 static void scroll_limit_diff(_lv_indev_proc_t * proc, lv_coord_t * diff_x, lv_coord_t * diff_y);
29 static lv_coord_t scroll_throw_predict_y(_lv_indev_proc_t * proc);
30 static lv_coord_t scroll_throw_predict_x(_lv_indev_proc_t * proc);
31 static lv_coord_t elastic_diff(lv_obj_t * scroll_obj, lv_coord_t diff, lv_coord_t scroll_start, lv_…
81 lv_coord_t diff_x = 0; in _lv_indev_scroll_handler()
82 lv_coord_t diff_y = 0; in _lv_indev_scroll_handler()
84 lv_coord_t sr = lv_obj_get_scroll_right(scroll_obj); in _lv_indev_scroll_handler()
85 lv_coord_t sl = lv_obj_get_scroll_left(scroll_obj); in _lv_indev_scroll_handler()
[all …]
Dlv_obj_scroll.c116 lv_coord_t lv_obj_get_scroll_x(const lv_obj_t * obj) in lv_obj_get_scroll_x()
122 lv_coord_t lv_obj_get_scroll_y(const lv_obj_t * obj) in lv_obj_get_scroll_y()
128 lv_coord_t lv_obj_get_scroll_top(lv_obj_t * obj) in lv_obj_get_scroll_top()
134 lv_coord_t lv_obj_get_scroll_bottom(lv_obj_t * obj) in lv_obj_get_scroll_bottom()
138 lv_coord_t child_res = LV_COORD_MIN; in lv_obj_get_scroll_bottom()
147 lv_coord_t pad_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in lv_obj_get_scroll_bottom()
148 lv_coord_t pad_bottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN); in lv_obj_get_scroll_bottom()
149 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_scroll_bottom()
155 lv_coord_t self_h = lv_obj_get_self_height(obj); in lv_obj_get_scroll_bottom()
161 lv_coord_t lv_obj_get_scroll_left(lv_obj_t * obj) in lv_obj_get_scroll_left()
[all …]
Dlv_obj_pos.c26 static lv_coord_t calc_content_width(lv_obj_t * obj);
27 static lv_coord_t calc_content_height(lv_obj_t * obj);
44 void lv_obj_set_pos(lv_obj_t * obj, lv_coord_t x, lv_coord_t y) in lv_obj_set_pos()
52 void lv_obj_set_x(lv_obj_t * obj, lv_coord_t x) in lv_obj_set_x()
66 void lv_obj_set_y(lv_obj_t * obj, lv_coord_t y) in lv_obj_set_y()
90 lv_coord_t sl_ori = lv_obj_get_scroll_left(obj); in lv_obj_refr_size()
94 lv_coord_t w; in lv_obj_refr_size()
102 lv_coord_t parent_w = lv_obj_get_content_width(parent); in lv_obj_refr_size()
111 lv_coord_t border_w = lv_obj_get_style_border_width(obj, 0); in lv_obj_refr_size()
120 lv_coord_t minw = lv_obj_get_style_min_width(obj, LV_PART_MAIN); in lv_obj_refr_size()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_dither.h37 … (*lv_dither_func_t)(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w);
46 …TTRIBUTE_FAST_MEM */ lv_dither_none(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y,
47 lv_coord_t w);
49 …TTRIBUTE_FAST_MEM */ lv_dither_ordered_hor(struct _lv_gradient_cache_t * grad, const lv_coord_t xs,
50 const lv_coord_t y, const lv_coord_t w);
51 …TTRIBUTE_FAST_MEM */ lv_dither_ordered_ver(struct _lv_gradient_cache_t * grad, const lv_coord_t xs,
52 const lv_coord_t y, const lv_coord_t w);
55 …TRIBUTE_FAST_MEM */ lv_dither_err_diff_hor(struct _lv_gradient_cache_t * grad, const lv_coord_t xs,
56 const lv_coord_t y, const lv_coord_t w);
57 …TRIBUTE_FAST_MEM */ lv_dither_err_diff_ver(struct _lv_gradient_cache_t * grad, const lv_coord_t xs,
[all …]
Dlv_draw_sw_gradient.h48 lv_coord_t alloc_size; /**< The map allocated size in colors */
49 lv_coord_t size; /**< The computed gradient color map size, in colors */
56 lv_coord_t w; /**< The error array width in pixels */
70 …or_t /* LV_ATTRIBUTE_FAST_MEM */ lv_gradient_calculate(const lv_grad_dsc_t * dsc, lv_coord_t range,
71 lv_coord_t frac);
83 lv_grad_t * lv_gradient_get(const lv_grad_dsc_t * gradient, lv_coord_t w, lv_coord_t h);
/lvgl-latest/src/misc/
Dlv_area.h25 typedef int32_t lv_coord_t; typedef
27 typedef int16_t lv_coord_t;
38 lv_coord_t x;
39 lv_coord_t y;
44 lv_coord_t x1;
45 lv_coord_t y1;
46 lv_coord_t x2;
47 lv_coord_t y2;
103 void lv_area_set(lv_area_t * area_p, lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2);
123 static inline lv_coord_t lv_area_get_width(const lv_area_t * area_p) in lv_area_get_width()
[all …]
/lvgl-latest/src/widgets/
Dlv_canvas.h66 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf…
75 void lv_canvas_set_px_color(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_color_t c);
80 static inline void lv_canvas_set_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_color_t c) in lv_canvas_set_px()
92 void lv_canvas_set_px_opa(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_opa_t opa);
117 lv_color_t lv_canvas_get_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y);
140 …_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w,
141 lv_coord_t h);
158 …transform(lv_obj_t * canvas, lv_img_dsc_t * img, int16_t angle, uint16_t zoom, lv_coord_t offset_x,
159 lv_coord_t offset_y,
195 void lv_canvas_draw_rect(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h,
[all …]
Dlv_checkbox.c166 lv_coord_t font_h = lv_font_get_line_height(font); in lv_checkbox_event()
167 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_event()
168 lv_coord_t letter_space = lv_obj_get_style_text_letter_space(obj, LV_PART_MAIN); in lv_checkbox_event()
173 lv_coord_t bg_colp = lv_obj_get_style_pad_column(obj, LV_PART_MAIN); in lv_checkbox_event()
174 lv_coord_t marker_leftp = lv_obj_get_style_pad_left(obj, LV_PART_INDICATOR); in lv_checkbox_event()
175 lv_coord_t marker_rightp = lv_obj_get_style_pad_right(obj, LV_PART_INDICATOR); in lv_checkbox_event()
176 lv_coord_t marker_topp = lv_obj_get_style_pad_top(obj, LV_PART_INDICATOR); in lv_checkbox_event()
177 lv_coord_t marker_bottomp = lv_obj_get_style_pad_bottom(obj, LV_PART_INDICATOR); in lv_checkbox_event()
186 lv_coord_t * s = lv_event_get_param(e); in lv_checkbox_event()
187 lv_coord_t m = lv_obj_calculate_ext_draw_size(obj, LV_PART_INDICATOR); in lv_checkbox_event()
[all …]
/lvgl-latest/src/extra/layouts/grid/
Dlv_grid.h74 void lv_obj_set_grid_dsc_array(lv_obj_t * obj, const lv_coord_t col_dsc[], const lv_coord_t row_dsc…
94 static inline lv_coord_t lv_grid_fr(uint8_t x) in lv_grid_fr()
99 void lv_style_set_grid_row_dsc_array(lv_style_t * style, const lv_coord_t value[]);
100 void lv_style_set_grid_column_dsc_array(lv_style_t * style, const lv_coord_t value[]);
103 void lv_style_set_grid_cell_column_pos(lv_style_t * style, lv_coord_t value);
104 void lv_style_set_grid_cell_column_span(lv_style_t * style, lv_coord_t value);
105 void lv_style_set_grid_cell_row_pos(lv_style_t * style, lv_coord_t value);
106 void lv_style_set_grid_cell_row_span(lv_style_t * style, lv_coord_t value);
107 void lv_style_set_grid_cell_x_align(lv_style_t * style, lv_coord_t value);
108 void lv_style_set_grid_cell_y_align(lv_style_t * style, lv_coord_t value);
[all …]
Dlv_grid.c33 lv_coord_t * x;
34 lv_coord_t * y;
35 lv_coord_t * w;
36 lv_coord_t * h;
39 lv_coord_t grid_w;
40 lv_coord_t grid_h;
56 static lv_coord_t grid_align(lv_coord_t cont_size, bool auto_size, uint8_t align, lv_coord_t gap, …
57 lv_coord_t * size_array, lv_coord_t * pos_array, bool reverse);
58 static uint32_t count_tracks(const lv_coord_t * templ);
60 static inline const lv_coord_t * get_col_dsc(lv_obj_t * obj) in get_col_dsc()
[all …]
/lvgl-latest/src/draw/
Dlv_draw_mask.h89 typedef lv_draw_mask_res_t (*lv_draw_mask_xcb_t)(lv_opa_t * mask_buf, lv_coord_t abs_x, lv_coord_t
90 lv_coord_t len,
144 lv_coord_t start_angle;
145 lv_coord_t end_angle;
160 lv_coord_t radius; /*The radius of the entry*/
171 lv_coord_t radius;
185 lv_coord_t y_top;
186 lv_coord_t y_bottom;
238 lv_draw_mask_res_t /* LV_ATTRIBUTE_FAST_MEM */ lv_draw_mask_apply(lv_opa_t * mask_buf, lv_coord_t a…
239 lv_coord_t abs_y, lv_coord_t len);
[all …]
Dlv_img_buf.h157 lv_img_dsc_t * lv_img_buf_alloc(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf);
169 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…
179 lv_opa_t lv_img_buf_get_px_alpha(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y);
189 void lv_img_buf_set_px_color(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t c);
199 void lv_img_buf_set_px_alpha(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_opa_t opa);
226 uint32_t lv_img_buf_get_img_size(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf);
237 void _lv_img_buf_get_transformed_area(lv_area_t * res, lv_coord_t w, lv_coord_t h, int16_t angle, u…
Dlv_draw_rect.h33 lv_coord_t radius;
51 lv_coord_t border_width;
58 lv_coord_t outline_width;
59 lv_coord_t outline_pad;
64 lv_coord_t shadow_width;
65 lv_coord_t shadow_ofs_x;
66 lv_coord_t shadow_ofs_y;
67 lv_coord_t shadow_spread;
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.h72 lv_coord_t * x_points;
73 lv_coord_t * y_points;
85 lv_coord_t point_id;
93 lv_coord_t major_len;
94 lv_coord_t minor_len;
95 lv_coord_t draw_size;
106 lv_coord_t ymin[2];
107 lv_coord_t ymax[2];
108 lv_coord_t xmin[2];
109 lv_coord_t xmax[2];
[all …]
/lvgl-latest/src/extra/layouts/flex/
Dlv_flex.c31 lv_coord_t min_size;
32 lv_coord_t max_size;
33 lv_coord_t final_size;
39 lv_coord_t track_cross_size;
40 lv_coord_t track_main_size; /*For all items*/
41 lv_coord_t track_fix_main_size; /*For non grow items*/
56 static int32_t find_track_end(lv_obj_t * cont, flex_t * f, int32_t item_start_id, lv_coord_t max_ma…
57 lv_coord_t item_gap, track_t * t);
58 …n_repos(lv_obj_t * cont, flex_t * f, int32_t item_first_id, int32_t item_last_id, lv_coord_t abs_x,
59lv_coord_t abs_y, lv_coord_t max_main_size, lv_coord_t item_gap, track_t * t);
[all …]
/lvgl-latest/src/hal/
Dlv_hal_disp.h80 lv_coord_t hor_res; /**< Horizontal resolution.*/
81 lv_coord_t ver_res; /**< Vertical resolution.*/
83 lv_coord_t
85 lv_coord_t
87 lv_coord_t
89lv_coord_t offset_y; /**< Vertical offset from the full / physical display. Set to 0 f…
116 …x_cb)(struct _lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t
264 lv_coord_t lv_disp_get_hor_res(lv_disp_t * disp);
271 lv_coord_t lv_disp_get_ver_res(lv_disp_t * disp);
278 lv_coord_t lv_disp_get_physical_hor_res(lv_disp_t * disp);
[all …]
Dlv_hal_disp.c47 …id set_px_true_color_alpha(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x,
48 lv_coord_t y,
51 …_px_cb_alpha1(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t
54 …_px_cb_alpha2(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t
57 …_px_cb_alpha4(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t
60 …_px_cb_alpha8(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t
63 static void set_px_alpha_generic(lv_img_dsc_t * d, lv_coord_t x, lv_coord_t y, lv_color_t color, lv…
260 lv_coord_t w = lv_disp_get_hor_res(disp); in lv_disp_drv_update()
261 lv_coord_t h = lv_disp_get_ver_res(disp); in lv_disp_drv_update()
351 lv_coord_t lv_disp_get_hor_res(lv_disp_t * disp) in lv_disp_get_hor_res()
[all …]
/lvgl-latest/src/draw/stm32_dma2d/
Dlv_gpu_stm32_dma2d.h60 void _lv_draw_stm32_dma2d_copy_buffer(const lv_color_t * dest_buf, lv_coord_t dest_stride,
61 …const lv_area_t * draw_area, const lv_color_t * src_buf, lv_coord_t src_stride, const lv_point_t *…
64 void _lv_gpu_stm32_dma2d_invalidate_cache(uint32_t address, lv_coord_t offset,
65 lv_coord_t width, lv_coord_t height, uint8_t pixel_size);
66 void _lv_gpu_stm32_dma2d_clean_cache(uint32_t address, lv_coord_t offset, lv_coord_t width,
67 lv_coord_t height, uint8_t pixel_size);
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_rect.c38 lv_coord_t radius;
39 lv_coord_t size;
54 lv_coord_t w;
55 lv_coord_t h;
56 lv_coord_t radius;
61 lv_coord_t radius;
62 lv_coord_t size;
63 lv_coord_t blur;
68 lv_coord_t rout, rin;
98 … const lv_area_t * clip, lv_coord_t rout, lv_coord_t rin, lv_color_t color, lv_opa_t opa,
[all …]
/lvgl-latest/src/draw/nxp/pxp/
Dlv_draw_pxp_blend.h68 void lv_gpu_nxp_pxp_fill(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stride,
85 void lv_gpu_nxp_pxp_blit(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stride,
86 … const lv_color_t * src_buf, const lv_area_t * src_area, lv_coord_t src_stride,
102 void lv_gpu_nxp_pxp_blit_transform(lv_color_t * dest_buf, lv_area_t * dest_area, lv_coord_t dest_st…
103 … const lv_color_t * src_buf, const lv_area_t * src_area, lv_coord_t src_stride,
117 void lv_gpu_nxp_pxp_buffer_copy(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest…
118 … const lv_color_t * src_buf, const lv_area_t * src_area, lv_coord_t src_stride);
Dlv_draw_pxp_blend.c91 static void lv_pxp_blit_opa(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_str…
92 … const lv_color_t * src_buf, const lv_area_t * src_area, lv_coord_t src_stride,
108 static void lv_pxp_blit_cover(lv_color_t * dest_buf, lv_area_t * dest_area, lv_coord_t dest_stride,
109 … const lv_color_t * src_buf, const lv_area_t * src_area, lv_coord_t src_stride,
125 static void lv_pxp_blit_cf(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stri…
126 … const lv_color_t * src_buf, const lv_area_t * src_area, lv_coord_t src_stride,
141 void lv_gpu_nxp_pxp_fill(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stride, in lv_gpu_nxp_pxp_fill()
144 lv_coord_t dest_w = lv_area_get_width(dest_area); in lv_gpu_nxp_pxp_fill()
145 lv_coord_t dest_h = lv_area_get_height(dest_area); in lv_gpu_nxp_pxp_fill()
209 void lv_gpu_nxp_pxp_blit(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stride, in lv_gpu_nxp_pxp_blit()
[all …]
/lvgl-latest/src/extra/widgets/tileview/
Dlv_tileview.c80 lv_coord_t tx = lv_obj_get_x(tile_obj); in lv_obj_set_tile()
81 lv_coord_t ty = lv_obj_get_y(tile_obj); in lv_obj_set_tile()
95 lv_coord_t w = lv_obj_get_content_width(tv); in lv_obj_set_tile_id()
96 lv_coord_t h = lv_obj_get_content_height(tv); in lv_obj_set_tile_id()
98 lv_coord_t tx = col_id * w; in lv_obj_set_tile_id()
99 lv_coord_t ty = row_id * h; in lv_obj_set_tile_id()
104 lv_coord_t x = lv_obj_get_x(tile_obj); in lv_obj_set_tile_id()
105 lv_coord_t y = lv_obj_get_y(tile_obj); in lv_obj_set_tile_id()
166 lv_coord_t w = lv_obj_get_content_width(obj); in tileview_event_cb()
167 lv_coord_t h = lv_obj_get_content_height(obj); in tileview_event_cb()
[all …]

12345678