Lines Matching refs:egl_window
8 wl_egl_window_resize(struct wl_egl_window *egl_window,
12 egl_window->width = width;
13 egl_window->height = height;
14 egl_window->dx = dx;
15 egl_window->dy = dy;
17 if (egl_window->resize_callback)
18 egl_window->resize_callback(egl_window, egl_window->private);
25 struct wl_egl_window *egl_window;
27 egl_window = malloc(sizeof *egl_window);
28 if (!egl_window)
31 egl_window->surface = surface;
32 egl_window->private = NULL;
33 egl_window->resize_callback = NULL;
34 wl_egl_window_resize(egl_window, width, height, 0, 0);
35 egl_window->attached_width = 0;
36 egl_window->attached_height = 0;
38 return egl_window;
42 wl_egl_window_destroy(struct wl_egl_window *egl_window)
44 free(egl_window);
48 wl_egl_window_get_attached_size(struct wl_egl_window *egl_window,
52 *width = egl_window->attached_width;
54 *height = egl_window->attached_height;