/lvgl-latest/examples/others/monkey/ |
D | lv_example_monkey_3.c | 7 int32_t hor_res = LV_HOR_RES; in lv_example_monkey_3() local 20 btn_points[0].x = hor_res / 4; in lv_example_monkey_3() 22 btn_points[1].x = hor_res / 2; in lv_example_monkey_3() 24 btn_points[2].x = hor_res * 3 / 4; in lv_example_monkey_3()
|
/lvgl-latest/src/drivers/glfw/ |
D | lv_opengles_texture.c | 83 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_R8, disp->hor_res, disp->ver_res, 0, GL_RED, GL_UNSIGNED… in lv_opengles_texture_create() 85 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB565, disp->hor_res, disp->ver_res, 0, GL_RGB, GL_UNSI… in lv_opengles_texture_create() 88 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, disp->hor_res, disp->ver_res, 0, GL_BGR, GL_UNSIGNE… in lv_opengles_texture_create() 90 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, disp->hor_res, disp->ver_res, 0, GL_BGRA, GL_UNSIG… in lv_opengles_texture_create() 151 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_R8, disp->hor_res, disp->ver_res, 0, GL_RED, GL_UNSIGNED… in flush_cb() 153 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB565, disp->hor_res, disp->ver_res, 0, GL_RGB, GL_UNSI… in flush_cb() 156 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, disp->hor_res, disp->ver_res, 0, GL_BGR, GL_UNSIGNE… in flush_cb() 158 …GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, disp->hor_res, disp->ver_res, 0, GL_BGRA, GL_UNSIG… in flush_cb()
|
D | lv_glfw_window.c | 70 lv_glfw_window_t * lv_glfw_window_create(int32_t hor_res, int32_t ver_res, bool use_mouse_indev) in lv_glfw_window_create() argument 83 window->window = glfwCreateWindow(hor_res, ver_res, "LVGL Simulator", NULL, in lv_glfw_window_create() 92 window->hor_res = hor_res; in lv_glfw_window_create() 291 lv_opengles_viewport(0, 0, window->hor_res, window->ver_res); in window_update_handler() 305 …render_texture(texture->texture_id, &texture->area, texture->opa, window->hor_res, window->ver_res, in window_update_handler() 308 …render_texture(texture->texture_id, &texture->area, texture->opa, window->hor_res, window->ver_res, in window_update_handler() 388 lv_window->hor_res = width; in framebuffer_size_callback()
|
D | lv_glfw_window_private.h | 37 int32_t hor_res; member
|
/lvgl-latest/src/drivers/sdl/ |
D | lv_sdl_window.c | 83 lv_display_t * lv_sdl_window_create(int32_t hor_res, int32_t ver_res) in lv_sdl_window_create() argument 99 lv_display_t * disp = lv_display_create(hor_res, ver_res); in lv_sdl_window_create() 122 uint32_t stride = lv_draw_buf_width_to_stride(disp->hor_res, in lv_sdl_window_create() 245 int32_t fb_stride = lv_draw_buf_width_to_stride(disp->hor_res, cf); in flush_cb() 349 int32_t hor_res = (int32_t)((float)(disp->hor_res) * dsc->zoom); in window_create() local 353 … hor_res, ver_res, flag); /*last param. SDL_WINDOW_BORDERLESS to hide borders*/ in window_create() 361 lv_memset(dsc->fb1, 0xff, hor_res * ver_res * px_size); in window_create() 363 lv_memset(dsc->fb2, 0xff, hor_res * ver_res * px_size); in window_create() 367 SDL_SetWindowSize(dsc->window, hor_res, ver_res); in window_create() 377 int32_t hor_res = disp->hor_res; in window_update() local [all …]
|
D | lv_sdl_mouse.c | 146 int32_t hor_res = lv_display_get_horizontal_resolution(disp); in lv_sdl_mouse_handler() local 177 indev_dev->last_x = (int16_t)((float)hor_res * event->tfinger.x / zoom); in lv_sdl_mouse_handler() 182 indev_dev->last_x = (int16_t)((float)hor_res * event->tfinger.x / zoom); in lv_sdl_mouse_handler() 186 indev_dev->last_x = (int16_t)((float)hor_res * event->tfinger.x / zoom); in lv_sdl_mouse_handler()
|
D | lv_sdl_window.h | 38 lv_display_t * lv_sdl_window_create(int32_t hor_res, int32_t ver_res);
|
/lvgl-latest/src/drivers/x11/ |
D | lv_x11_display.c | 130 int32_t hor_res = lv_display_get_horizontal_resolution(disp); in x11_flush_cb() local 134 …rc_data = (color_t *)px_map + (LV_X11_RENDER_MODE == LV_DISPLAY_RENDER_MODE_PARTIAL ? 0 : hor_res * in x11_flush_cb() 137 dst_offs = area->x1 + y * hor_res; in x11_flush_cb() 142 …src_data += (LV_X11_RENDER_MODE == LV_DISPLAY_RENDER_MODE_PARTIAL ? 0 : hor_res - (area->x2 - area… in x11_flush_cb() 172 int32_t hor_res = lv_display_get_horizontal_resolution(disp); in x11_resolution_evt_cb() local 177 int sz_buffers = (hor_res * ver_res * (LV_COLOR_DEPTH + 7) / 8); in x11_resolution_evt_cb() 185 size_t sz_buffers = hor_res * ver_res * sizeof(lv_color32_t); in x11_resolution_evt_cb() 188 … hor_res, ver_res, lv_color_format_get_bpp(LV_COLOR_FORMAT_ARGB8888), 0); in x11_resolution_evt_cb() 312 int32_t hor_res = lv_display_get_horizontal_resolution(disp); in x11_window_create() local 320 0, 0, hor_res, ver_res, 0, col_fg, col_bg); in x11_window_create() [all …]
|
D | lv_x11.h | 74 lv_display_t * lv_x11_window_create(char const * title, int32_t hor_res, int32_t ver_res);
|
/lvgl-latest/src/drivers/display/tft_espi/ |
D | lv_tft_espi.cpp | 43 lv_display_t * lv_tft_espi_create(uint32_t hor_res, uint32_t ver_res, void * buf, uint32_t buf_size… in lv_tft_espi_create() argument 49 lv_display_t * disp = lv_display_create(hor_res, ver_res); in lv_tft_espi_create() 55 dsc->tft = new TFT_eSPI(hor_res, ver_res); in lv_tft_espi_create() 89 int32_t hor_res = lv_display_get_horizontal_resolution(disp); in resolution_changed_event_cb() local
|
D | lv_tft_espi.h | 31 lv_display_t * lv_tft_espi_create(uint32_t hor_res, uint32_t ver_res, void * buf, uint32_t buf_size…
|
/lvgl-latest/src/drivers/windows/ |
D | lv_windows_display.c | 46 int32_t hor_res, in lv_windows_create_display() argument 56 data.hor_res = hor_res; in lv_windows_create_display() 136 data->hor_res, in lv_windows_display_thread_entrypoint()
|
/lvgl-latest/src/drivers/nuttx/ |
D | lv_nuttx_lcd.c | 52 static lv_display_t * lcd_init(int fd, int hor_res, int ver_res); 151 static lv_display_t * lcd_init(int fd, int hor_res, int ver_res) in lcd_init() argument 162 lv_display_t * disp = lv_display_create(hor_res, ver_res); in lcd_init() 170 uint32_t buf_size = hor_res * ver_res * px_size; in lcd_init() 173 uint32_t buf_size = hor_res * LV_NUTTX_LCD_BUFFER_SIZE * px_size; in lcd_init()
|
/lvgl-latest/src/drivers/display/fb/ |
D | lv_linux_fbdev.c | 213 int32_t hor_res = dsc->vinfo.xres; in lv_linux_fbdev_set_file() local 216 uint32_t draw_buf_size = hor_res * (dsc->vinfo.bits_per_pixel >> 3); in lv_linux_fbdev_set_file() 232 lv_display_set_resolution(disp, hor_res, ver_res); in lv_linux_fbdev_set_file() 236 lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 254, width * 10)); in lv_linux_fbdev_set_file() 240 hor_res, ver_res, lv_display_get_dpi(disp)); in lv_linux_fbdev_set_file() 324 area->y1 * disp->hor_res * px_size; in flush_cb() 329 color_pos += disp->hor_res * px_size; in flush_cb()
|
/lvgl-latest/src/display/ |
D | lv_display.c | 62 lv_display_t * lv_display_create(int32_t hor_res, int32_t ver_res) in lv_display_create() argument 70 disp->hor_res = hor_res; in lv_display_create() 95 disp->layer_head->buf_area.x2 = hor_res - 1; in lv_display_create() 244 void lv_display_set_resolution(lv_display_t * disp, int32_t hor_res, int32_t ver_res) in lv_display_set_resolution() argument 249 if(disp->hor_res == hor_res && disp->ver_res == ver_res) return; in lv_display_set_resolution() 251 disp->hor_res = hor_res; in lv_display_set_resolution() 257 void lv_display_set_physical_resolution(lv_display_t * disp, int32_t hor_res, int32_t ver_res) in lv_display_set_physical_resolution() argument 262 disp->physical_hor_res = hor_res; in lv_display_set_physical_resolution() 302 return disp->hor_res; in lv_display_get_horizontal_resolution() 318 return disp->hor_res; in lv_display_get_vertical_resolution() [all …]
|
D | lv_display.h | 94 lv_display_t * lv_display_create(int32_t hor_res, int32_t ver_res); 133 void lv_display_set_resolution(lv_display_t * disp, int32_t hor_res, int32_t ver_res); 143 void lv_display_set_physical_resolution(lv_display_t * disp, int32_t hor_res, int32_t ver_res);
|
/lvgl-latest/src/drivers/display/st7735/ |
D | lv_st7735.c | 81 lv_display_t * lv_st7735_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags, in lv_st7735_create() argument 84 …lv_display_t * disp = lv_lcd_generic_mipi_create(hor_res, ver_res, flags, send_cmd_cb, send_color_… in lv_st7735_create()
|
D | lv_st7735.h | 47 lv_display_t * lv_st7735_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags,
|
/lvgl-latest/src/drivers/display/st7796/ |
D | lv_st7796.c | 87 lv_display_t * lv_st7796_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags, in lv_st7796_create() argument 90 …lv_display_t * disp = lv_lcd_generic_mipi_create(hor_res, ver_res, flags, send_cmd_cb, send_color_… in lv_st7796_create()
|
/lvgl-latest/src/drivers/display/ili9341/ |
D | lv_ili9341.c | 85 lv_display_t * lv_ili9341_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags, in lv_ili9341_create() argument 88 …lv_display_t * disp = lv_lcd_generic_mipi_create(hor_res, ver_res, flags, send_cmd_cb, send_color_… in lv_ili9341_create()
|
D | lv_ili9341.h | 47 lv_display_t * lv_ili9341_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags,
|
/lvgl-latest/src/drivers/display/st7789/ |
D | lv_st7789.c | 84 lv_display_t * lv_st7789_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags, in lv_st7789_create() argument 87 …lv_display_t * disp = lv_lcd_generic_mipi_create(hor_res, ver_res, flags, send_cmd_cb, send_color_… in lv_st7789_create()
|
/lvgl-latest/src/drivers/qnx/ |
D | lv_qnx.h | 43 lv_display_t * lv_qnx_window_create(int32_t hor_res, int32_t ver_res);
|
/lvgl-latest/src/drivers/display/lcd/ |
D | lv_lcd_generic_mipi.c | 48 lv_display_t * lv_lcd_generic_mipi_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags, in lv_lcd_generic_mipi_create() argument 51 lv_display_t * disp = lv_display_create(hor_res, ver_res); in lv_lcd_generic_mipi_create() 323 uint16_t hor_res = lv_display_get_horizontal_resolution(disp); in res_chg_event_cb() local 328 LV_UNUSED(hor_res); in res_chg_event_cb()
|
/lvgl-latest/src/drivers/libinput/ |
D | lv_libinput.c | 442 const int32_t hor_res = disp->physical_hor_res > 0 ? disp->physical_hor_res : disp->hor_res; in _read_pointer() local 449 …)LV_CLAMP(INT32_MIN, libinput_event_touch_get_x_transformed(touch_event, hor_res) - disp->offset_x, in _read_pointer() 453 … if(point.x < 0 || point.x > disp->hor_res || point.y < 0 || point.y > disp->ver_res) { in _read_pointer() 517 disp->hor_res - 1); in _read_pointer() 527 … hor_res) - disp->offset_x, INT32_MAX); in _read_pointer() 530 … if(point.x < 0 || point.x > disp->hor_res || point.y < 0 || point.y > disp->ver_res) { in _read_pointer()
|