Home
last modified time | relevance | path

Searched refs:lv_color_t (Results 1 – 25 of 88) sorted by relevance

1234

/lvgl-3.4.0/src/misc/
Dlv_color.h99 #define _LV_COLOR_MAKE_TYPE_HELPER lv_color_t
101 #define _LV_COLOR_MAKE_TYPE_HELPER (lv_color_t)
239 typedef LV_CONCAT3(lv_color, LV_COLOR_DEPTH, _t) lv_color_t; typedef
254 typedef lv_color_t (*lv_color_filter_cb_t)(const struct _lv_color_filter_dsc_t *, lv_color_t, lv_op…
303 static inline uint8_t lv_color_to1(lv_color_t color) in lv_color_to1()
331 static inline uint8_t lv_color_to8(lv_color_t color) in lv_color_to8()
355 static inline uint16_t lv_color_to16(lv_color_t color) in lv_color_to16()
379 static inline uint32_t lv_color_to32(lv_color_t color) in lv_color_to32()
443 LV_ATTRIBUTE_FAST_MEM static inline lv_color_t lv_color_mix(lv_color_t c1, lv_color_t c2, uint8_t m… in lv_color_mix()
445 lv_color_t ret; in lv_color_mix()
[all …]
Dlv_color.c36 LV_ATTRIBUTE_FAST_MEM void lv_color_fill(lv_color_t * buf, lv_color_t color, uint32_t px_num) in lv_color_fill()
71 buf = (lv_color_t *)buf32; in lv_color_fill()
126 lv_color_t lv_color_lighten(lv_color_t c, lv_opa_t lvl) in lv_color_lighten()
131 lv_color_t lv_color_darken(lv_color_t c, lv_opa_t lvl) in lv_color_darken()
136 lv_color_t lv_color_change_lightness(lv_color_t c, lv_opa_t lvl) in lv_color_change_lightness()
151 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb()
205 lv_color_t result = lv_color_make(r, g, b); in lv_color_hsv_to_rgb()
267 lv_color_hsv_t lv_color_to_hsv(lv_color_t color) in lv_color_to_hsv()
274 lv_color_t lv_palette_main(lv_palette_t p) in lv_palette_main()
276 static const lv_color_t colors[] = { in lv_palette_main()
[all …]
Dlv_style_gen.h22 void lv_style_set_bg_color(lv_style_t * style, lv_color_t value);
23 void lv_style_set_bg_color_filtered(lv_style_t * style, lv_color_t value);
25 void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value);
26 void lv_style_set_bg_grad_color_filtered(lv_style_t * style, lv_color_t value);
34 void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value);
35 void lv_style_set_bg_img_recolor_filtered(lv_style_t * style, lv_color_t value);
38 void lv_style_set_border_color(lv_style_t * style, lv_color_t value);
39 void lv_style_set_border_color_filtered(lv_style_t * style, lv_color_t value);
45 void lv_style_set_outline_color(lv_style_t * style, lv_color_t value);
46 void lv_style_set_outline_color_filtered(lv_style_t * style, lv_color_t value);
[all …]
Dlv_style_gen.c171 void lv_style_set_bg_color(lv_style_t * style, lv_color_t value) in lv_style_set_bg_color()
179 void lv_style_set_bg_color_filtered(lv_style_t * style, lv_color_t value) in lv_style_set_bg_color_filtered()
195 void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value) in lv_style_set_bg_grad_color()
203 void lv_style_set_bg_grad_color_filtered(lv_style_t * style, lv_color_t value) in lv_style_set_bg_grad_color_filtered()
267 void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value) in lv_style_set_bg_img_recolor()
275 void lv_style_set_bg_img_recolor_filtered(lv_style_t * style, lv_color_t value) in lv_style_set_bg_img_recolor_filtered()
299 void lv_style_set_border_color(lv_style_t * style, lv_color_t value) in lv_style_set_border_color()
307 void lv_style_set_border_color_filtered(lv_style_t * style, lv_color_t value) in lv_style_set_border_color_filtered()
355 void lv_style_set_outline_color(lv_style_t * style, lv_color_t value) in lv_style_set_outline_color()
363 void lv_style_set_outline_color_filtered(lv_style_t * style, lv_color_t value) in lv_style_set_outline_color_filtered()
[all …]
/lvgl-3.4.0/src/extra/widgets/meter/
Dlv_meter.h34 lv_color_t tick_color;
39 lv_color_t tick_major_color;
76 lv_color_t color;
81 lv_color_t color;
86 lv_color_t color_start;
87 lv_color_t color_end;
146 lv_color_t color);
160 uint16_t len, lv_color_t color, int16_t label_gap);
188 lv_color_t color, int16_t r_mod);
212 …or_t * lv_meter_add_arc(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, lv_color_t color,
[all …]
/lvgl-3.4.0/zephyr/
Dlvgl_display.h24 const lv_area_t *area, lv_color_t *color_p);
26 const lv_area_t *area, lv_color_t *color_p);
28 const lv_area_t *area, lv_color_t *color_p);
30 const lv_area_t *area, lv_color_t *color_p);
34 lv_color_t color, lv_opa_t opa);
37 lv_color_t color, lv_opa_t opa);
40 lv_color_t color, lv_opa_t opa);
43 lv_color_t color, lv_opa_t opa);
Dlvgl_display_32bit.c12 const lv_area_t *area, lv_color_t *color_p) in lvgl_flush_cb_32bit()
33 lv_color_t color, lv_opa_t opa) in lvgl_set_px_cb_32bit()
41 lv_color_t bg_color = *((lv_color_t *)buf_xy); in lvgl_set_px_cb_32bit()
Dlvgl_display_24bit.c12 const lv_area_t *area, lv_color_t *color_p) in lvgl_flush_cb_24bit()
32 lv_color_t color, lv_opa_t opa) in lvgl_set_px_cb_24bit()
39 lv_color_t mix_color; in lvgl_set_px_cb_24bit()
/lvgl-3.4.0/examples/porting/
Dlv_port_disp_template.c28 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p);
78 static lv_color_t buf_1[MY_DISP_HOR_RES * 10]; /*A buffer for 10 rows*/
83 static lv_color_t buf_2_1[MY_DISP_HOR_RES * 10]; /*A buffer for 10 rows*/
84 …static lv_color_t buf_2_2[MY_DISP_HOR_RES * 10]; /*An other buffer for 10 r…
89 … static lv_color_t buf_3_1[MY_DISP_HOR_RES * MY_DISP_VER_RES]; /*A screen sized buffer*/
90 …static lv_color_t buf_3_2[MY_DISP_HOR_RES * MY_DISP_VER_RES]; /*Another screen sized bu…
137 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_blend.c26 static void fill_set_px(lv_color_t * dest_buf, const lv_area_t * blend_area, lv_coord_t dest_stride,
27lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_stide);
28 LV_ATTRIBUTE_FAST_MEM static void fill_normal(lv_color_t * dest_buf, const lv_area_t * dest_area,
29 …lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_str…
31 static void fill_blended(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stride…
35 static void map_set_px(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stride,
36 …const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t…
38 LV_ATTRIBUTE_FAST_MEM static void map_normal(lv_color_t * dest_buf, const lv_area_t * dest_area, lv…
39 …const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t…
42 static void map_blended(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_coord_t dest_stride,
[all …]
/lvgl-3.4.0/src/draw/nxp_pxp/
Dlv_gpu_nxp_pxp.c69 static void lv_gpu_nxp_pxp_blit_recolor(lv_color_t * dest, lv_coord_t dest_width, const lv_color_t
71 …lv_coord_t copy_width, lv_coord_t copy_height, lv_opa_t opa, lv_color_t recolor, lv_opa_t recolorO…
81 static lv_color_t recolor = {.full = 0x0};
142 void lv_gpu_nxp_pxp_fill(lv_color_t * dest_buf, lv_coord_t dest_width, const lv_area_t * fill_area,… in lv_gpu_nxp_pxp_fill()
155 .pitchBytes = dest_width * sizeof(lv_color_t), in lv_gpu_nxp_pxp_fill()
220 void lv_gpu_nxp_pxp_blit(lv_color_t * dest, lv_coord_t dest_width, const lv_color_t * src, lv_coord… in lv_gpu_nxp_pxp_blit()
255 .pitchBytes = dest_width * sizeof(lv_color_t) in lv_gpu_nxp_pxp_blit()
265 asBufferConfig.pitchBytes = src_width * sizeof(lv_color_t); in lv_gpu_nxp_pxp_blit()
280 outputBufferConfig.pitchBytes = dest_width * sizeof(lv_color_t); in lv_gpu_nxp_pxp_blit()
313 void lv_gpu_nxp_pxp_enable_recolor(lv_color_t color, lv_opa_t opa) in lv_gpu_nxp_pxp_enable_recolor()
[all …]
Dlv_gpu_nxp_pxp.h135 void lv_gpu_nxp_pxp_fill(lv_color_t * dest_buf, lv_coord_t dest_width, const lv_area_t * fill_area,…
154 void lv_gpu_nxp_pxp_blit(lv_color_t * dest, lv_coord_t dest_width, const lv_color_t * src, lv_coord…
176 void lv_gpu_nxp_pxp_enable_recolor(lv_color_t color, lv_opa_t opa);
/lvgl-3.4.0/src/draw/nxp_vglite/
Dlv_gpu_nxp_vglite.c101 const lv_color_t * ptr, bool source);
105 static void _align_x(lv_area_t * area, lv_color_t ** buf);
106 static void _align_y(lv_area_t * area, lv_color_t ** buf, uint32_t stridePx);
109 static void _draw_rectangle(lv_color_t * dest_buf, lv_coord_t dest_width, lv_coord_t dest_height,
110 lv_area_t * fill_area, lv_color_t color);
146 lv_res_t lv_gpu_nxp_vglite_fill(lv_color_t * dest_buf, lv_coord_t dest_width, lv_coord_t dest_heigh… in lv_gpu_nxp_vglite_fill()
147 const lv_area_t * fill_area, lv_color_t color, lv_opa_t opa) in lv_gpu_nxp_vglite_fill()
155 …buf(&rt, (uint32_t) dest_width, (uint32_t) dest_height, (uint32_t) dest_width * sizeof(lv_color_t), in lv_gpu_nxp_vglite_fill()
156 (const lv_color_t *) dest_buf, false) != LV_RES_OK) { in lv_gpu_nxp_vglite_fill()
293 _align_x(&blit->src_area, (lv_color_t **)&blit->src); in lv_gpu_nxp_vglite_blit()
[all …]
Dlv_gpu_nxp_vglite.h93 const lv_color_t * src; /**< Source buffer pointer (must be aligned on 32 bytes)*/
99 const lv_color_t * dst; /**< Destination buffer pointer (must be aligned on 32 bytes)*/
128 lv_res_t lv_gpu_nxp_vglite_fill(lv_color_t * dest_buf, lv_coord_t dest_width, lv_coord_t dest_heigh…
129 const lv_area_t * fill_area, lv_color_t color, lv_opa_t opa);
/lvgl-3.4.0/src/draw/
Dlv_draw_rect.h41lv_color_t bg_color; /**< First element of a gradient is a color, so it maps well here*/
50 lv_color_t bg_img_recolor;
56 lv_color_t border_color;
63 lv_color_t outline_color;
69 lv_color_t shadow_color;
Dlv_draw_label.h34 lv_color_t color;
35 lv_color_t sel_color;
36 lv_color_t sel_bg_color;
Dlv_img_buf.h150lv_color_t color; /*a color used for `LV_IMG_CF_INDEXED_1/2/4/8BIT` color formats*/
156 lv_color_t color;
207 lv_color_t lv_img_buf_get_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t color…
227 void lv_img_buf_set_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t c);
249 void lv_img_buf_set_palette(lv_img_dsc_t * dsc, uint8_t id, lv_color_t c);
/lvgl-3.4.0/docs/overview/
Dcolor.md9 The type `lv_color_t` is used to store a color. Its fields are set according to `LV_COLOR_DEPTH` in…
19 lv_color_t c = lv_color_make(red, green, blue);
22 lv_color_t c = lv_color_hex(0x123456);
25 lv_color_t c = lv_color_hex3(0x123);
33 lv_color_t c = lv_color_hsv_to_rgb(h, s, v);
39 //From lv_color_t variable
68 To get the main color use `lv_color_t c = lv_palette_main(LV_PALETTE_...)`.
70 For the lighter variants of a palette color use `lv_color_t c = lv_palette_lighten(LV_PALETTE_..., …
71 For the darker variants of a palette color use `lv_color_t c = lv_palette_darken(LV_PALETTE_..., v)…
77 lv_color_t c = lv_color_lighten(c, lvl);
[all …]
/lvgl-3.4.0/src/core/
Dlv_theme.h36 lv_color_t color_primary;
37 lv_color_t color_secondary;
103 lv_color_t lv_theme_get_color_primary(lv_obj_t * obj);
110 lv_color_t lv_theme_get_color_secondary(lv_obj_t * obj);
Dlv_obj_style_gen.h127 static inline lv_color_t lv_obj_get_style_bg_color(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_bg_color()
133 static inline lv_color_t lv_obj_get_style_bg_color_filtered(const struct _lv_obj_t * obj, uint32_t … in lv_obj_get_style_bg_color_filtered()
145 static inline lv_color_t lv_obj_get_style_bg_grad_color(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_bg_grad_color()
151 static inline lv_color_t lv_obj_get_style_bg_grad_color_filtered(const struct _lv_obj_t * obj, uint… in lv_obj_get_style_bg_grad_color_filtered()
199 static inline lv_color_t lv_obj_get_style_bg_img_recolor(const struct _lv_obj_t * obj, uint32_t par… in lv_obj_get_style_bg_img_recolor()
205 static inline lv_color_t lv_obj_get_style_bg_img_recolor_filtered(const struct _lv_obj_t * obj, uin… in lv_obj_get_style_bg_img_recolor_filtered()
223 static inline lv_color_t lv_obj_get_style_border_color(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_border_color()
229 static inline lv_color_t lv_obj_get_style_border_color_filtered(const struct _lv_obj_t * obj, uint3… in lv_obj_get_style_border_color_filtered()
265 static inline lv_color_t lv_obj_get_style_outline_color(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_outline_color()
271 static inline lv_color_t lv_obj_get_style_outline_color_filtered(const struct _lv_obj_t * obj, uint… in lv_obj_get_style_outline_color_filtered()
[all …]
/lvgl-3.4.0/src/draw/stm32_dma2d/
Dlv_gpu_stm32_dma2d.c45 static void lv_draw_stm32_dma2d_blend_fill(lv_color_t * dest_buf, lv_coord_t dest_stride, const lv_…
46 lv_color_t color);
49 static void lv_draw_stm32_dma2d_blend_map(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_co…
50 … const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa);
126 lv_color_t * dest_buf = draw_ctx->buf; in lv_draw_stm32_dma2d_blend()
129 const lv_color_t * src_buf = dsc->src_buf; in lv_draw_stm32_dma2d_blend()
158 static void lv_draw_stm32_dma2d_blend_fill(lv_color_t * dest_buf, lv_coord_t dest_stride, const lv_… in lv_draw_stm32_dma2d_blend_fill()
159 lv_color_t color) in lv_draw_stm32_dma2d_blend_fill()
179 static void lv_draw_stm32_dma2d_blend_map(lv_color_t * dest_buf, const lv_area_t * dest_area, lv_co… in lv_draw_stm32_dma2d_blend_map()
180 … const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa) in lv_draw_stm32_dma2d_blend_map()
/lvgl-3.4.0/examples/widgets/canvas/
Dlv_example_canvas_2.c16 static lv_color_t cbuf[LV_CANVAS_BUF_SIZE_INDEXED_1BIT(CANVAS_WIDTH, CANVAS_HEIGHT)]; in lv_example_canvas_2()
25 lv_color_t c0; in lv_example_canvas_2()
26 lv_color_t c1; in lv_example_canvas_2()
/lvgl-3.4.0/src/extra/themes/default/
Dlv_theme_default.h39 lv_theme_t * lv_theme_default_init(lv_disp_t * disp, lv_color_t color_primary, lv_color_t color_sec…
/lvgl-3.4.0/src/widgets/
Dlv_canvas.h75 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()
105 void lv_canvas_set_palette(lv_obj_t * canvas, uint8_t id, lv_color_t c);
118 lv_color_t lv_canvas_get_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y);
185 void lv_canvas_fill_bg(lv_obj_t * canvas, lv_color_t color, lv_opa_t opa);
/lvgl-3.4.0/tests/src/
Dlv_test_init.c13 static void dummy_flush_cb(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p);
19 lv_color_t test_fb[HOR_RES * VER_RES];
20 static lv_color_t disp_buf1[HOR_RES * VER_RES];
138 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()
143 memcpy(test_fb, color_p, lv_area_get_size(area) * sizeof(lv_color_t)); in dummy_flush_cb()

1234