Home
last modified time | relevance | path

Searched refs:disp (Results 1 – 25 of 40) sorted by relevance

12

/lvgl-latest/src/hal/
Dlv_hal_disp.c168 lv_disp_t * disp = _lv_ll_ins_head(&LV_GC_ROOT(_lv_disp_ll)); in lv_disp_drv_register() local
169 LV_ASSERT_MALLOC(disp); in lv_disp_drv_register()
170 if(!disp) { in lv_disp_drv_register()
183 lv_memset_00(disp, sizeof(lv_disp_t)); in lv_disp_drv_register()
185 disp->driver = driver; in lv_disp_drv_register()
187 disp->inv_en_cnt = 1; in lv_disp_drv_register()
189 _lv_ll_init(&disp->sync_areas, sizeof(lv_area_t)); in lv_disp_drv_register()
192 …disp_def = disp; /*Temporarily change the default screen to create the default scr… in lv_disp_drv_register()
195 disp->refr_timer = lv_timer_create(_lv_disp_refr_timer, LV_DISP_DEF_REFR_PERIOD, disp); in lv_disp_drv_register()
196 LV_ASSERT_MALLOC(disp->refr_timer); in lv_disp_drv_register()
[all …]
Dlv_hal_disp.h239 void lv_disp_drv_update(lv_disp_t * disp, lv_disp_drv_t * new_drv);
245 void lv_disp_remove(lv_disp_t * disp);
251 void lv_disp_set_default(lv_disp_t * disp);
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);
285 lv_coord_t lv_disp_get_physical_ver_res(lv_disp_t * disp);
292 lv_coord_t lv_disp_get_offset_x(lv_disp_t * disp);
299 lv_coord_t lv_disp_get_offset_y(lv_disp_t * disp);
306 bool lv_disp_get_antialiasing(lv_disp_t * disp);
[all …]
Dlv_hal_indev.c78 if(driver->disp == NULL) driver->disp = lv_disp_get_default(); in lv_indev_drv_register()
80 if(driver->disp == NULL) { in lv_indev_drv_register()
114 if(new_drv->disp == NULL) { in lv_indev_drv_update()
115 new_drv->disp = lv_disp_get_default(); in lv_indev_drv_update()
117 if(new_drv->disp == NULL) { in lv_indev_drv_update()
/lvgl-latest/src/core/
Dlv_disp.c50 lv_obj_t * lv_disp_get_scr_act(lv_disp_t * disp) in lv_disp_get_scr_act() argument
52 if(!disp) disp = lv_disp_get_default(); in lv_disp_get_scr_act()
53 if(!disp) { in lv_disp_get_scr_act()
58 return disp->act_scr; in lv_disp_get_scr_act()
67 lv_obj_t * lv_disp_get_scr_prev(lv_disp_t * disp) in lv_disp_get_scr_prev() argument
69 if(!disp) disp = lv_disp_get_default(); in lv_disp_get_scr_prev()
70 if(!disp) { in lv_disp_get_scr_prev()
75 return disp->prev_scr; in lv_disp_get_scr_prev()
92 lv_obj_t * lv_disp_get_layer_top(lv_disp_t * disp) in lv_disp_get_layer_top() argument
94 if(!disp) disp = lv_disp_get_default(); in lv_disp_get_layer_top()
[all …]
Dlv_disp.h57 lv_obj_t * lv_disp_get_scr_act(lv_disp_t * disp);
65 lv_obj_t * lv_disp_get_scr_prev(lv_disp_t * disp);
78 lv_obj_t * lv_disp_get_layer_top(lv_disp_t * disp);
86 lv_obj_t * lv_disp_get_layer_sys(lv_disp_t * disp);
92 void lv_disp_set_theme(lv_disp_t * disp, lv_theme_t * th);
99 lv_theme_t * lv_disp_get_theme(lv_disp_t * disp);
106 void lv_disp_set_bg_color(lv_disp_t * disp, lv_color_t color);
113 void lv_disp_set_bg_image(lv_disp_t * disp, const void * img_src);
120 void lv_disp_set_bg_opa(lv_disp_t * disp, lv_opa_t opa);
137 uint32_t lv_disp_get_inactive_time(const lv_disp_t * disp);
[all …]
Dlv_obj_class.c56 lv_disp_t * disp = lv_disp_get_default(); in lv_obj_class_create_obj() local
57 if(!disp) { in lv_obj_class_create_obj()
63 if(disp->screens == NULL) { in lv_obj_class_create_obj()
64 disp->screens = lv_mem_alloc(sizeof(lv_obj_t *)); in lv_obj_class_create_obj()
65 disp->screens[0] = obj; in lv_obj_class_create_obj()
66 disp->screen_cnt = 1; in lv_obj_class_create_obj()
69 disp->screen_cnt++; in lv_obj_class_create_obj()
70 disp->screens = lv_mem_realloc(disp->screens, sizeof(lv_obj_t *) * disp->screen_cnt); in lv_obj_class_create_obj()
71 disp->screens[disp->screen_cnt - 1] = obj; in lv_obj_class_create_obj()
Dlv_obj_tree.c53 lv_disp_t * disp = NULL; in lv_obj_del() local
56 disp = lv_obj_get_disp(obj); in lv_obj_del()
57 if(!disp) return; /*Shouldn't happen*/ in lv_obj_del()
58 if(disp->act_scr == obj) act_scr_del = true; in lv_obj_del()
73 disp->act_scr = NULL; in lv_obj_del()
389 lv_disp_t * disp = lv_obj_get_disp(obj); in obj_del_core() local
392 for(i = 0; i < disp->screen_cnt; i++) { in obj_del_core()
393 if(disp->screens[i] == obj) break; in obj_del_core()
397 for(i = id; i < disp->screen_cnt - 1; i++) { in obj_del_core()
398 disp->screens[i] = disp->screens[i + 1]; in obj_del_core()
[all …]
Dlv_refr.h57 void lv_refr_now(lv_disp_t * disp);
72 void _lv_inv_area(lv_disp_t * disp, const lv_area_t * area_p);
86 void _lv_refr_set_disp_refreshing(lv_disp_t * disp);
Dlv_refr.c62 static uint32_t get_max_row(lv_disp_t * disp, lv_coord_t area_w, lv_coord_t area_h);
63 static void draw_buf_flush(lv_disp_t * disp);
113 void lv_refr_now(lv_disp_t * disp) in lv_refr_now() argument
117 if(disp) { in lv_refr_now()
118 if(disp->refr_timer) _lv_disp_refr_timer(disp->refr_timer); in lv_refr_now()
205 void _lv_inv_area(lv_disp_t * disp, const lv_area_t * area_p) in _lv_inv_area() argument
207 if(!disp) disp = lv_disp_get_default(); in _lv_inv_area()
208 if(!disp) return; in _lv_inv_area()
209 if(!lv_disp_is_invalidation_enabled(disp)) return; in _lv_inv_area()
211 if(disp->rendering_in_progress) { in _lv_inv_area()
[all …]
Dlv_indev.c73 if(indev_act->driver->disp == NULL) return; /*Not assigned to any displays*/ in lv_indev_read_timer_cb()
79 … indev_act->driver->disp->prev_scr != NULL) return; /*Input disabled or screen animation active*/ in lv_indev_read_timer_cb()
94 indev_act->driver->disp->last_activity_time = lv_tick_get(); in lv_indev_read_timer_cb()
97 indev_act->driver->disp->last_activity_time = lv_tick_get(); in lv_indev_read_timer_cb()
201 lv_obj_set_parent(indev->cursor, lv_disp_get_layer_sys(indev->driver->disp)); in lv_indev_set_cursor()
341 lv_disp_t * disp = i->driver->disp; in indev_pointer_proc() local
346 if(disp->driver->rotated == LV_DISP_ROT_180 || disp->driver->rotated == LV_DISP_ROT_270) { in indev_pointer_proc()
347 data->point.x = disp->driver->hor_res - data->point.x - 1; in indev_pointer_proc()
348 data->point.y = disp->driver->ver_res - data->point.y - 1; in indev_pointer_proc()
350 if(disp->driver->rotated == LV_DISP_ROT_90 || disp->driver->rotated == LV_DISP_ROT_270) { in indev_pointer_proc()
[all …]
Dlv_theme.c38 lv_disp_t * disp = obj ? lv_obj_get_disp(obj) : lv_disp_get_default(); in lv_theme_get_from_obj() local
39 return lv_disp_get_theme(disp); in lv_theme_get_from_obj()
/lvgl-latest/src/extra/themes/default/
Dlv_theme_default.c20 …RADIUS_DEFAULT (disp_size == DISP_LARGE ? lv_disp_dpx(theme.disp, 12) : lv_disp_dpx(theme.disp, 8))
33 #define BORDER_WIDTH lv_disp_dpx(theme.disp, 2)
34 #define OUTLINE_WIDTH lv_disp_dpx(theme.disp, 3)
36 …DISP_LARGE ? lv_disp_dpx(theme.disp, 24) : disp_size == DISP_MEDIUM ? lv_disp_dpx(theme.disp, 20) …
37 …DISP_LARGE ? lv_disp_dpx(theme.disp, 14) : disp_size == DISP_MEDIUM ? lv_disp_dpx(theme.disp, 12) …
38 … DISP_LARGE ? lv_disp_dpx(theme.disp, 8) : disp_size == DISP_MEDIUM ? lv_disp_dpx(theme.disp, 6) :…
239 lv_style_set_pad_all(&styles->scrollbar, lv_disp_dpx(theme.disp, 7)); in style_init()
240 lv_style_set_width(&styles->scrollbar, lv_disp_dpx(theme.disp, 5)); in style_init()
268 lv_style_set_line_width(&styles->card, lv_disp_dpx(theme.disp, 1)); in style_init()
282 lv_style_set_radius(&styles->btn, (disp_size == DISP_LARGE ? lv_disp_dpx(theme.disp, in style_init()
[all …]
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-latest/src/draw/nxp/pxp/
Dlv_gpu_nxp_pxp.c133 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in invalidate_cache() local
134 if(disp->driver->clean_dcache_cb) in invalidate_cache()
135 disp->driver->clean_dcache_cb(disp->driver); in invalidate_cache()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_vglite_utils.c144 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in invalidate_cache() local
145 if(disp->driver->clean_dcache_cb) in invalidate_cache()
146 disp->driver->clean_dcache_cb(disp->driver); in invalidate_cache()
/lvgl-latest/docs/overview/
Ddisplay.md12 When you create the UI, use `lv_disp_set_default(disp)` to tell the library on which display to cre…
25 If you pass `NULL` as `disp` parameter to display related functions the default display will usuall…
54 … specify which display to work on, use `lv_disp_get_scr_act(disp)` and `lv_disp_load_scr(disp, scr…
78 To get time elapsed since the last activity, use `lv_disp_get_inactive_time(disp)`. If `NULL` is pa…
80 You can manually trigger an activity using `lv_disp_trig_activity(disp)`. If `disp` is `NULL`, the …
85 …is a simple color to fill the display. It can be adjusted with `lv_disp_set_bg_color(disp, color)`;
87 …rted image data) to be used as wallpaper. It can be set with `lv_disp_set_bg_image(disp, &my_img)`;
90 The opacity of the background color or image can be adjusted with `lv_disp_set_bg_opa(disp, opa)`.
92 The `disp` parameter of these functions can be `NULL` to select the default display.
/lvgl-latest/src/draw/swm341_dma2d/
Dlv_gpu_swm341_dma2d.c229 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in lv_gpu_swm341_dma2d_wait_cb() local
230 if(disp->driver && disp->driver->wait_cb) { in lv_gpu_swm341_dma2d_wait_cb()
232 disp->driver->wait_cb(disp->driver); in lv_gpu_swm341_dma2d_wait_cb()
/lvgl-latest/src/widgets/
Dlv_canvas.c33 static void init_fake_disp(lv_obj_t * canvas, lv_disp_t * disp, lv_disp_drv_t * drv, lv_area_t * cl…
34 static void deinit_fake_disp(lv_obj_t * canvas, lv_disp_t * disp);
791 static void init_fake_disp(lv_obj_t * canvas, lv_disp_t * disp, lv_disp_drv_t * drv, lv_area_t * cl… in init_fake_disp() argument
801 lv_memset_00(disp, sizeof(lv_disp_t)); in init_fake_disp()
802 disp->driver = drv; in init_fake_disp()
804 lv_disp_drv_init(disp->driver); in init_fake_disp()
805 disp->driver->hor_res = dsc->header.w; in init_fake_disp()
806 disp->driver->ver_res = dsc->header.h; in init_fake_disp()
812 disp->driver->draw_ctx = draw_ctx; in init_fake_disp()
817 lv_disp_drv_use_generic_set_px_cb(disp->driver, dsc->header.cf); in init_fake_disp()
[all …]
Dlv_img.c206 lv_disp_t * disp = lv_obj_get_disp(obj); in lv_img_set_angle() local
207 lv_disp_enable_invalidation(disp, false); in lv_img_set_angle()
209 lv_disp_enable_invalidation(disp, true); in lv_img_set_angle()
240 lv_disp_t * disp = lv_obj_get_disp(obj); in lv_img_set_pivot() local
241 lv_disp_enable_invalidation(disp, false); in lv_img_set_pivot()
243 lv_disp_enable_invalidation(disp, true); in lv_img_set_pivot()
275 lv_disp_t * disp = lv_obj_get_disp(obj); in lv_img_set_zoom() local
276 lv_disp_enable_invalidation(disp, false); in lv_img_set_zoom()
278 lv_disp_enable_invalidation(disp, true); in lv_img_set_zoom()
/lvgl-latest/src/extra/themes/basic/
Dlv_theme_basic.h37 lv_theme_t * lv_theme_basic_init(lv_disp_t * disp);
Dlv_theme_basic.c140 lv_theme_t * lv_theme_basic_init(lv_disp_t * disp) in lv_theme_basic_init() argument
152 theme.disp = disp; in lv_theme_basic_init()
160 if(disp == NULL || lv_disp_get_theme(disp) == &theme) { in lv_theme_basic_init()
/lvgl-latest/src/extra/themes/mono/
Dlv_theme_mono.h39 lv_theme_t * lv_theme_mono_init(lv_disp_t * disp, bool dark_bg, const lv_font_t * font);
/lvgl-latest/src/draw/arm2d/
Dlv_gpu_arm2d.c671 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in lv_gpu_arm2d_wait_cb() local
674 if(disp->driver && disp->driver->wait_cb) { in lv_gpu_arm2d_wait_cb()
675 disp->driver->wait_cb(disp->driver); in lv_gpu_arm2d_wait_cb()
702 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in lv_draw_arm2d_blend() local
703 if(disp->driver->screen_transp == 0) { in lv_draw_arm2d_blend()
736 if(disp->driver->screen_transp) { in lv_draw_arm2d_blend()
1438 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in lv_gpu_arm2d_wait_cb() local
1441 if(disp->driver && disp->driver->wait_cb) { in lv_gpu_arm2d_wait_cb()
1442 disp->driver->wait_cb(disp->driver); in lv_gpu_arm2d_wait_cb()
1553 lv_disp_t * disp = _lv_refr_get_disp_refreshing();
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_blend.c122 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in lv_draw_sw_blend_basic() local
124 if(disp->driver->set_px_cb == NULL) { in lv_draw_sw_blend_basic()
125 if(disp->driver->screen_transp == 0) { in lv_draw_sw_blend_basic()
150 if(disp->driver->antialiasing == 0) { in lv_draw_sw_blend_basic()
168 if(disp->driver->set_px_cb) { in lv_draw_sw_blend_basic()
177 else if(disp->driver->screen_transp) { in lv_draw_sw_blend_basic()
213 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in fill_set_px() local
221disp->driver->set_px_cb(disp->driver, (void *)dest_buf, dest_stride, x, y, color, opa); in fill_set_px()
233disp->driver->set_px_cb(disp->driver, (void *)dest_buf, dest_stride, blend_area->x1 + x, blend_are… in fill_set_px()
610 lv_disp_t * disp = _lv_refr_get_disp_refreshing(); in map_set_px() local
[all …]
/lvgl-latest/src/draw/renesas/
Dlv_gpu_d2_ra6m3.h48 void lv_draw_ra6m3_2d_ctx_deinit(lv_disp_drv_t * disp, lv_draw_ctx_t * draw_ctx);

12