Lines Matching full:body
219 struct graphic_object * body; member
1109 …ow->decoration[d] = create_graphic_obj(&application, window, (FIRST_DECORATION + d), window->body); in draw_window()
1167 if(window->body->surface_configured == false) { in xdg_surface_handle_configure()
1184 window->body->surface_configured = true; in xdg_surface_handle_configure()
1202 LV_LOG_TRACE("current body w:%d h:%d", window->body->width, window->body->height); in xdg_toplevel_handle_configure()
1917 return attach_decoration(window, decoration, buf, window->body); in create_decoration()
1957 smm_resize(window->body->buffer_group, ((width * bpp) * height) * 2); in resize_window()
1959 window->body->width = width; in resize_window()
1960 window->body->height = height; in resize_window()
1962 /* Pre-allocate two buffers for the window body here */ in resize_window()
1963 body_buf1 = smm_acquire(window->body->buffer_group); in resize_window()
1964 body_buf2 = smm_acquire(window->body->buffer_group); in resize_window()
1967 LV_LOG_ERROR("Cannot pre-allocate backing buffers for window body"); in resize_window()
1968 wl_surface_destroy(window->body->surface); in resize_window()
1981 window->body->width, window->body->height)) { in resize_window()
1997 LV_LOG_TRACE("resize window:%dx%d body:%dx%d frame: %d rendered: %d", in resize_window()
1999 window->body->width, window->body->height, in resize_window()
2002 width = window->body->width; in resize_window()
2003 height = window->body->height; in resize_window()
2017 window->body->input.pointer.x = LV_MIN((int32_t)window->body->input.pointer.x, (width - 1)); in resize_window()
2018 … window->body->input.pointer.y = LV_MIN((int32_t)window->body->input.pointer.y, (height - 1)); in resize_window()
2025 * @description Creates the graphical context for the window body, and then create a toplevel
2045 window->body = create_graphic_obj(app, window, OBJECT_WINDOW, NULL); in create_window()
2049 if(!window->body) { in create_window()
2050 LV_LOG_ERROR("cannot create window body"); in create_window()
2060 window->xdg_surface = xdg_wm_base_get_xdg_surface(app->xdg_wm, window->body->surface); in create_window()
2081 window->body->surface_configured = false; in create_window()
2086 window->wl_shell_surface = wl_shell_get_shell_surface(app->wl_shell, window->body->surface); in create_window()
2121 wl_surface_destroy(window->body->surface); in create_window()
2157 destroy_graphic_obj(window->body); in destroy_window()
2181 buf = window->body->pending_buffer; in _lv_wayland_flush()
2205 buf = smm_acquire(window->body->buffer_group); in _lv_wayland_flush()
2207 LV_LOG_ERROR("cannot acquire a window body buffer"); in _lv_wayland_flush()
2211 window->body->pending_buffer = buf; in _lv_wayland_flush()
2219 LV_LOG_ERROR("cannot map in window body buffer"); in _lv_wayland_flush()
2236 wl_surface_damage(window->body->surface, in _lv_wayland_flush()
2248 wl_surface_attach(window->body->surface, wl_buf, 0, 0); in _lv_wayland_flush()
2249 wl_surface_commit(window->body->surface); in _lv_wayland_flush()
2250 window->body->pending_buffer = NULL; in _lv_wayland_flush()
2253 cb = wl_surface_frame(window->body->surface); in _lv_wayland_flush()
2254 wl_callback_add_listener(cb, &wl_surface_frame_listener, window->body); in _lv_wayland_flush()
2270 window->body->pending_buffer = NULL; in _lv_wayland_flush()
2304 window->body->input.pointer.x = 0; in _lv_wayland_handle_output()
2305 window->body->input.pointer.y = 0; in _lv_wayland_handle_output()
2306 window->body->input.pointer.left_button = LV_INDEV_STATE_RELEASED; in _lv_wayland_handle_output()
2307 window->body->input.pointer.right_button = LV_INDEV_STATE_RELEASED; in _lv_wayland_handle_output()
2308 window->body->input.pointer.wheel_button = LV_INDEV_STATE_RELEASED; in _lv_wayland_handle_output()
2309 window->body->input.pointer.wheel_diff = 0; in _lv_wayland_handle_output()
2310 if(window->application->pointer_obj == window->body) { in _lv_wayland_handle_output()
2314 window->body->input.keyboard.key = 0; in _lv_wayland_handle_output()
2315 window->body->input.keyboard.state = LV_INDEV_STATE_RELEASED; in _lv_wayland_handle_output()
2316 if(window->application->keyboard_obj == window->body) { in _lv_wayland_handle_output()
2349 data->point.x = window->body->input.pointer.x; in _lv_wayland_pointer_read()
2350 data->point.y = window->body->input.pointer.y; in _lv_wayland_pointer_read()
2351 data->state = window->body->input.pointer.left_button; in _lv_wayland_pointer_read()
2362 data->state = window->body->input.pointer.wheel_button; in _lv_wayland_pointeraxis_read()
2363 data->enc_diff = window->body->input.pointer.wheel_diff; in _lv_wayland_pointeraxis_read()
2365 window->body->input.pointer.wheel_diff = 0; in _lv_wayland_pointeraxis_read()
2375 data->key = window->body->input.keyboard.key; in _lv_wayland_keyboard_read()
2376 data->state = window->body->input.keyboard.state; in _lv_wayland_keyboard_read()
2392 recognizer = &window->body->input.recognizer; in _lv_wayland_touch_read()
2394 LV_LOG_TRACE("collected touch events: %d", window->body->input.touch_event_cnt); in _lv_wayland_touch_read()
2396 lv_indev_gesture_detect_pinch(recognizer, &window->body->input.touches[0], in _lv_wayland_touch_read()
2397 window->body->input.touch_event_cnt); in _lv_wayland_touch_read()
2399 window->body->input.touch_event_cnt = 0; in _lv_wayland_touch_read()
2559 * @param hor_res initial horizontal window body size in pixels
2560 * @param ver_res initial vertical window body size in pixels
2580 /* Decorations are enabled, calculate the body size */ in lv_wayland_window_create()
2879 else if(window != NULL && window->body->surface_configured == false) { in lv_wayland_timer_handler()
2883 wl_surface_commit(window->body->surface); in lv_wayland_timer_handler()