Home | History | Annotate | Download | only in kmscube

Lines Matching refs:window

16 struct window {
45 struct window *window = (struct window*)data;
47 wl_egl_window_resize(window->egl_window, width, height, 0, 0);
59 static void create_window(struct window *window, int32_t width, int32_t height)
61 window->surface = wl_compositor_create_surface(s_compositor);
62 window->shell_surface = wl_shell_get_shell_surface(s_shell, window->surface);
63 wl_shell_surface_add_listener(window->shell_surface, &shell_surface_listener, window);
64 wl_shell_surface_set_toplevel(window->shell_surface);
65 window->egl_window = wl_egl_window_create(window->surface, width, height);
68 static void delete_window(struct window *window)
70 wl_egl_window_destroy(window->egl_window);
71 wl_shell_surface_destroy(window->shell_surface);
72 wl_surface_destroy(window->surface);
85 struct window window;
86 create_window(&window, width, height);
90 EglSurface surface(egl, window.egl_window);
106 delete_window(&window);