Lines Matching refs:height
149 int height; member
232 int height; 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);
411 else if(pos_y >= (window->height + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_enter()
425 else if(pos_y >= (window->height + 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()
473 …ointer_obj->input.pointer.y = LV_MAX(0, LV_MIN(wl_fixed_to_int(sy), app->pointer_obj->height - 1)); in pointer_handle_motion()
608 else if(pos_y >= (window->height + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_button()
627 else if(pos_y >= (window->height + 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()
1149 window->resize_height = height; in wl_shell_handle_configure()
1171 draw_window(window, window->width, window->height); in xdg_surface_handle_configure()
1180 window->height = window->resize_height; in xdg_surface_handle_configure()
1192 int32_t width, int32_t height, struct wl_array * states) in xdg_toplevel_handle_configure() argument
1199 LV_UNUSED(height); 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()
1213 window->resize_height = height; 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
1235 LV_UNUSED(height); in xdg_toplevel_handle_configure_bounds()
1330 obj->height, window->frame_counter); in handle_wl_buffer_release()
1477 LV_LOG_TRACE("create new buffer of width %d height %d", obj->width, obj->height); in sme_new_buffer()
1483 obj->height, in sme_new_buffer()
1541 (obj->width * bpp) * obj->height); in sme_init_buffer()
1670 pos_y = parent->height; 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()
1796 decoration->height = TITLE_BAR_HEIGHT; in create_decoration()
1800 decoration->height = BUTTON_SIZE; in create_decoration()
1805 decoration->height = BUTTON_SIZE; in create_decoration()
1809 decoration->height = BUTTON_SIZE; in create_decoration()
1814 decoration->height = BORDER_SIZE; in create_decoration()
1818 decoration->height = BORDER_SIZE; in create_decoration()
1822 decoration->height = window_height + TITLE_BAR_HEIGHT; in create_decoration()
1826 decoration->height = window_height + TITLE_BAR_HEIGHT; 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()
1860 for(y = 0; y < decoration->height; y++) { in create_decoration()
1876 … color_fill(buf_base, lv_color_make(0xCC, 0xCC, 0xCC), decoration->width, decoration->height); in create_decoration()
1877 for(y = 0; y < decoration->height; y++) { in create_decoration()
1880 …if(((x == BUTTON_PADDING) && (y >= BUTTON_PADDING) && (y < decoration->height - BUTTON_PADDING)) || in create_decoration()
1881 …->width - BUTTON_PADDING)) && (y >= BUTTON_PADDING) && (y <= decoration->height - BUTTON_PADDING))… in create_decoration()
1884 …((y == (decoration->height - BUTTON_PADDING)) && (x >= BUTTON_PADDING) && (x < decoration->width -… in create_decoration()
1891 … color_fill(buf_base, lv_color_make(0xCC, 0xCC, 0xCC), decoration->width, decoration->height); in create_decoration()
1892 for(y = 0; y < decoration->height; y++) { in create_decoration()
1896 … (y > decoration->height - (2 * BUTTON_PADDING)) && (y < decoration->height - 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
1945 window->height = height; in resize_window()
1950 height -= (TITLE_BAR_HEIGHT + (2 * BORDER_SIZE)); in resize_window()
1957 smm_resize(window->body->buffer_group, ((width * bpp) * height) * 2); in resize_window()
1960 window->body->height = height; 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()
2003 height = window->body->height; 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()
2018 … window->body->input.pointer.y = LV_MIN((int32_t)window->body->input.pointer.y, (height - 1)); in resize_window()
2030 static struct window * create_window(struct application * app, int width, int height, const char * … in create_window() argument
2047 window->height = height; in create_window()
2097 draw_window(window, window->width, window->height); in create_window()
2889 window->resize_height = window->height; in lv_wayland_timer_handler()