2017-08-09 15:58:10 +02:00
|
|
|
#ifndef _WLR_TYPES_WLR_SURFACE_H
|
|
|
|
#define _WLR_TYPES_WLR_SURFACE_H
|
2017-08-09 15:33:30 +02:00
|
|
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
|
2017-08-09 21:58:41 +02:00
|
|
|
struct wlr_frame_callback {
|
|
|
|
struct wl_resource *resource;
|
|
|
|
struct wl_list link;
|
|
|
|
};
|
|
|
|
|
2017-08-09 15:33:30 +02:00
|
|
|
struct wlr_surface {
|
|
|
|
struct wl_resource *pending_buffer;
|
|
|
|
bool pending_attached;
|
|
|
|
bool attached; // whether the surface currently has a buffer attached
|
|
|
|
|
|
|
|
struct wlr_texture *texture;
|
|
|
|
const char *role; // the lifetime-bound role or null
|
|
|
|
struct wl_resource *resource;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
struct wl_signal destroy;
|
|
|
|
struct wl_signal commit;
|
|
|
|
} signals;
|
2017-08-09 21:58:41 +02:00
|
|
|
|
|
|
|
struct wl_list frame_callback_list; // wl_surface.frame
|
2017-08-09 15:33:30 +02:00
|
|
|
};
|
|
|
|
|
2017-08-09 15:58:10 +02:00
|
|
|
struct wlr_renderer;
|
2017-08-09 15:33:30 +02:00
|
|
|
struct wlr_surface *wlr_surface_create(struct wl_resource *res,
|
|
|
|
struct wlr_renderer *renderer);
|
|
|
|
|
|
|
|
#endif
|