2017-06-28 22:51:58 +00:00
|
|
|
#ifndef _EXAMPLE_COMPOSITOR_H
|
|
|
|
#define _EXAMPLE_COMPOSITOR_H
|
|
|
|
#include <wayland-server.h>
|
2017-08-03 13:50:45 +00:00
|
|
|
#include <wlr/render.h>
|
2017-06-28 22:51:58 +00:00
|
|
|
|
|
|
|
struct wl_compositor_state {
|
|
|
|
struct wl_global *wl_global;
|
|
|
|
struct wl_list wl_resources;
|
2017-08-03 13:50:45 +00:00
|
|
|
struct wlr_renderer *renderer;
|
2017-08-03 18:20:51 +00:00
|
|
|
struct wl_list surfaces;
|
2017-08-04 15:53:55 +00:00
|
|
|
struct wl_listener destroy_surface_listener;
|
2017-06-28 22:51:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void wl_compositor_init(struct wl_display *display,
|
2017-08-03 13:50:45 +00:00
|
|
|
struct wl_compositor_state *state, struct wlr_renderer *renderer);
|
2017-06-28 22:51:58 +00:00
|
|
|
|
|
|
|
struct wl_shell_state {
|
|
|
|
struct wl_global *wl_global;
|
|
|
|
struct wl_list wl_resources;
|
|
|
|
};
|
|
|
|
|
2017-08-08 12:09:14 +00:00
|
|
|
struct xdg_shell_state {
|
|
|
|
struct wl_global *wl_global;
|
|
|
|
struct wl_list wl_resources;
|
2017-08-09 11:27:49 +00:00
|
|
|
struct wl_display *display;
|
2017-08-08 12:09:14 +00:00
|
|
|
};
|
|
|
|
|
2017-06-28 22:51:58 +00:00
|
|
|
void wl_shell_init(struct wl_display *display,
|
|
|
|
struct wl_shell_state *state);
|
|
|
|
|
2017-08-08 12:09:14 +00:00
|
|
|
void xdg_shell_init(struct wl_display *display,
|
|
|
|
struct xdg_shell_state *state);
|
|
|
|
|
2017-08-09 14:55:23 +00:00
|
|
|
void xdg_shell_release(struct xdg_shell_state *state);
|
|
|
|
|
2017-06-28 22:51:58 +00:00
|
|
|
#endif
|