• Home
  • Raw
  • Download

Lines Matching refs:egl_window

37 wl_egl_window_resize(struct wl_egl_window *egl_window,  in wl_egl_window_resize()  argument
44 egl_window->width = width; in wl_egl_window_resize()
45 egl_window->height = height; in wl_egl_window_resize()
46 egl_window->dx = dx; in wl_egl_window_resize()
47 egl_window->dy = dy; in wl_egl_window_resize()
49 if (egl_window->resize_callback) in wl_egl_window_resize()
50 egl_window->resize_callback(egl_window, egl_window->private); in wl_egl_window_resize()
57 struct wl_egl_window *egl_window; in wl_egl_window_create() local
62 egl_window = malloc(sizeof *egl_window); in wl_egl_window_create()
63 if (!egl_window) in wl_egl_window_create()
66 egl_window->surface = surface; in wl_egl_window_create()
67 egl_window->private = NULL; in wl_egl_window_create()
68 egl_window->resize_callback = NULL; in wl_egl_window_create()
69 egl_window->destroy_window_callback = NULL; in wl_egl_window_create()
70 wl_egl_window_resize(egl_window, width, height, 0, 0); in wl_egl_window_create()
71 egl_window->attached_width = 0; in wl_egl_window_create()
72 egl_window->attached_height = 0; in wl_egl_window_create()
74 return egl_window; in wl_egl_window_create()
78 wl_egl_window_destroy(struct wl_egl_window *egl_window) in wl_egl_window_destroy() argument
80 if (egl_window->destroy_window_callback) in wl_egl_window_destroy()
81 egl_window->destroy_window_callback(egl_window->private); in wl_egl_window_destroy()
82 free(egl_window); in wl_egl_window_destroy()
86 wl_egl_window_get_attached_size(struct wl_egl_window *egl_window, in wl_egl_window_get_attached_size() argument
90 *width = egl_window->attached_width; in wl_egl_window_get_attached_size()
92 *height = egl_window->attached_height; in wl_egl_window_get_attached_size()