Add surface.map request.

This commit is contained in:
Kristian Høgsberg 2008-10-07 10:10:36 -04:00
parent a67a71a7cf
commit 05eff51e41
6 changed files with 188 additions and 34 deletions

View file

@ -77,6 +77,13 @@ struct wl_object {
struct wl_surface;
struct wl_display;
struct wl_map {
int32_t x, y, width, height;
};
void wl_surface_set_data(struct wl_surface *surface, void *data);
void *wl_surface_get_data(struct wl_surface *surface);
struct wl_compositor {
struct wl_compositor_interface *interface;
};
@ -84,10 +91,13 @@ struct wl_compositor {
struct wl_compositor_interface {
void (*notify_surface_create)(struct wl_compositor *compositor,
struct wl_surface *surface);
void (*notify_surface_destroy)(struct wl_compositor *compositor,
struct wl_surface *surface);
void (*notify_surface_attach)(struct wl_compositor *compositor,
struct wl_surface *surface, uint32_t name,
uint32_t width, uint32_t height, uint32_t stride);
void (*notify_surface_map)(struct wl_compositor *compositor,
struct wl_surface *surface, struct wl_map *map);
};
struct wl_compositor *wl_compositor_create(void);