Lines Matching refs:width

148     int width;  member
231 int width; member
253 static void color_fill(void * pixels, lv_color_t color, uint32_t width, uint32_t height);
254 static void color_fill_XRGB8888(void * pixels, lv_color_t color, uint32_t width, uint32_t height);
255 static void color_fill_RGB565(void * pixels, lv_color_t color, uint32_t width, uint32_t height);
258 static bool resize_window(struct window * window, int width, int height);
383 else if(pos_x >= (window->width + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_enter()
397 else if(pos_x >= (window->width + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_enter()
441 wl_surface_damage(app->cursor_surface, 0, 0, cursor_image->width, cursor_image->height); in pointer_handle_enter()
472 …pointer_obj->input.pointer.x = LV_MAX(0, LV_MIN(wl_fixed_to_int(sx), app->pointer_obj->width - 1)); in pointer_handle_motion()
570 else if(pos_x >= (window->width + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_button()
589 else if(pos_x >= (window->width + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_button()
1102 static void draw_window(struct window * window, uint32_t width, uint32_t height) in draw_window() argument
1118 if(!resize_window(window, width, height)) { in draw_window()
1138 uint32_t edges, int32_t width, int32_t height) in wl_shell_handle_configure() argument
1144 if((width <= 0) || (height <= 0)) { in wl_shell_handle_configure()
1147 else if((width != window->width) || (height != window->height)) { in wl_shell_handle_configure()
1148 window->resize_width = width; in wl_shell_handle_configure()
1171 draw_window(window, window->width, window->height); in xdg_surface_handle_configure()
1179 window->width = window->resize_width; in xdg_surface_handle_configure()
1192 int32_t width, int32_t height, struct wl_array * states) in xdg_toplevel_handle_configure() argument
1198 LV_UNUSED(width); in xdg_toplevel_handle_configure()
1201 LV_LOG_TRACE("w:%d h:%d", width, height); in xdg_toplevel_handle_configure()
1202 LV_LOG_TRACE("current body w:%d h:%d", window->body->width, window->body->height); in xdg_toplevel_handle_configure()
1203 LV_LOG_TRACE("window w:%d h:%d", window->width, window->height); in xdg_toplevel_handle_configure()
1206 if((width <= 0) || (height <= 0)) { in xdg_toplevel_handle_configure()
1207 LV_LOG_TRACE("will not resize to w:%d h:%d", width, height); in xdg_toplevel_handle_configure()
1211 if((width != window->width) || (height != window->height)) { in xdg_toplevel_handle_configure()
1212 window->resize_width = width; in xdg_toplevel_handle_configure()
1215 LV_LOG_TRACE("resize_pending is set, will resize to w:%d h:%d", width, height); in xdg_toplevel_handle_configure()
1218 LV_LOG_TRACE("resize_pending not set w:%d h:%d", width, height); in xdg_toplevel_handle_configure()
1231 int32_t width, int32_t height) in xdg_toplevel_handle_configure_bounds() argument
1234 LV_UNUSED(width); in xdg_toplevel_handle_configure_bounds()
1329 obj->width, in handle_wl_buffer_release()
1419 offset = (dmg->x1 + (y * obj->width)) * bpp; in cache_apply_areas()
1477 LV_LOG_TRACE("create new buffer of width %d height %d", obj->width, obj->height); in sme_new_buffer()
1482 obj->width, in sme_new_buffer()
1484 obj->width * bpp, in sme_new_buffer()
1541 (obj->width * bpp) * obj->height); in sme_init_buffer()
1651 pos_x = parent->width - 1 * (BUTTON_MARGIN + BUTTON_SIZE); in attach_decoration()
1656 pos_x = parent->width - 2 * (BUTTON_MARGIN + BUTTON_SIZE); in attach_decoration()
1660 pos_x = parent->width - 3 * (BUTTON_MARGIN + BUTTON_SIZE); in attach_decoration()
1677 pos_x = parent->width; in attach_decoration()
1739 static void color_fill(void * pixels, lv_color_t color, uint32_t width, uint32_t height) in color_fill() argument
1744 color_fill_XRGB8888(pixels, color, width, height); in color_fill()
1747 color_fill_RGB565(pixels, color, width, height); in color_fill()
1755 static void color_fill_XRGB8888(void * pixels, lv_color_t color, uint32_t width, uint32_t height) in color_fill_XRGB8888() argument
1760 buf_end = (unsigned char *)((uint32_t *)buf + width * height); in color_fill_XRGB8888()
1771 static void color_fill_RGB565(void * pixels, lv_color_t color, uint32_t width, uint32_t height) in color_fill_RGB565() argument
1776 buf_end = (uint16_t *)buf + width * height; in color_fill_RGB565()
1795 decoration->width = window_width; in create_decoration()
1799 decoration->width = BUTTON_SIZE; in create_decoration()
1804 decoration->width = BUTTON_SIZE; in create_decoration()
1808 decoration->width = BUTTON_SIZE; in create_decoration()
1813 decoration->width = window_width + 2 * (BORDER_SIZE); in create_decoration()
1817 decoration->width = window_width + 2 * (BORDER_SIZE); in create_decoration()
1821 decoration->width = BORDER_SIZE; in create_decoration()
1825 decoration->width = BORDER_SIZE; in create_decoration()
1835 LV_LOG_TRACE("decoration window %dx%d", decoration->width, decoration->height); in create_decoration()
1838 (decoration->width * bpp) * decoration->height); in create_decoration()
1856 … color_fill(buf_base, lv_color_make(0x66, 0x66, 0x66), decoration->width, decoration->height); in create_decoration()
1859 … color_fill(buf_base, lv_color_make(0xCC, 0xCC, 0xCC), decoration->width, decoration->height); in create_decoration()
1861 for(x = 0; x < decoration->width; x++) { in create_decoration()
1862 … pixel = (lv_color_t *)((unsigned char *)buf_base + (y * (decoration->width * bpp)) + x * bpp); in create_decoration()
1863 if((x >= BUTTON_PADDING) && (x < decoration->width - BUTTON_PADDING)) { in create_decoration()
1864 if((x == y) || (x == decoration->width - 1 - y)) { in create_decoration()
1867 else if((x == y - 1) || (x == decoration->width - y)) { in create_decoration()
1876 … color_fill(buf_base, lv_color_make(0xCC, 0xCC, 0xCC), decoration->width, decoration->height); in create_decoration()
1878 for(x = 0; x < decoration->width; x++) { in create_decoration()
1879 … pixel = (lv_color_t *)((unsigned char *)buf_base + (y * (decoration->width * bpp)) + x * bpp); in create_decoration()
1881 …((x == (decoration->width - BUTTON_PADDING)) && (y >= BUTTON_PADDING) && (y <= decoration->height … in create_decoration()
1882 … ((y == BUTTON_PADDING) && (x >= BUTTON_PADDING) && (x < decoration->width - BUTTON_PADDING)) || in create_decoration()
1883 …((y == (BUTTON_PADDING + 1)) && (x >= BUTTON_PADDING) && (x < decoration->width - BUTTON_PADDING))… in create_decoration()
1884 …n->height - BUTTON_PADDING)) && (x >= BUTTON_PADDING) && (x < decoration->width - BUTTON_PADDING))… in create_decoration()
1891 … color_fill(buf_base, lv_color_make(0xCC, 0xCC, 0xCC), decoration->width, decoration->height); in create_decoration()
1893 for(x = 0; x < decoration->width; x++) { in create_decoration()
1894 … pixel = (lv_color_t *)((unsigned char *)buf_base + (y * (decoration->width * bpp)) + x * bpp); in create_decoration()
1895 if((x >= BUTTON_PADDING) && (x < decoration->width - BUTTON_PADDING) && in create_decoration()
1910 … color_fill(buf_base, lv_color_make(0x66, 0x66, 0x66), decoration->width, decoration->height); in create_decoration()
1933 static bool resize_window(struct window * window, int width, int height) in resize_window() argument
1944 window->width = width; in resize_window()
1949 width -= (2 * BORDER_SIZE); in resize_window()
1957 smm_resize(window->body->buffer_group, ((width * bpp) * height) * 2); in resize_window()
1959 window->body->width = width; in resize_window()
1981 window->body->width, window->body->height)) { in resize_window()
1998 window->width, window->height, in resize_window()
1999 window->body->width, window->body->height, in resize_window()
2002 width = window->body->width; in resize_window()
2007 stride = lv_draw_buf_width_to_stride(width, in resize_window()
2013 width, height / LVGL_DRAW_BUFFER_DIV, stride); in resize_window()
2015 lv_display_set_resolution(window->lv_disp, width, height); in resize_window()
2017 window->body->input.pointer.x = LV_MIN((int32_t)window->body->input.pointer.x, (width - 1)); in resize_window()
2030 static struct window * create_window(struct application * app, int width, int height, const char * … in create_window() argument
2046 window->width = width; in create_window()
2097 draw_window(window, window->width, window->height); in create_window()
2888 window->resize_width = window->width; in lv_wayland_timer_handler()