diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-10-07 10:10:36 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-11-06 10:51:43 -0500 |
commit | 05eff51e413ff48c2edd2a2ab3ca9f9435c5c855 (patch) | |
tree | 7c2251d4bafd6d7f8daa347b19d07f0ccb1ddd53 /wayland.h | |
parent | a67a71a7cf2f6cf17cb10eeeb4e9bb867bb9eb40 (diff) | |
download | wayland-05eff51e413ff48c2edd2a2ab3ca9f9435c5c855.tar.gz wayland-05eff51e413ff48c2edd2a2ab3ca9f9435c5c855.tar.xz wayland-05eff51e413ff48c2edd2a2ab3ca9f9435c5c855.zip |
Add surface.map request.
Diffstat (limited to 'wayland.h')
-rw-r--r-- | wayland.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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); |