mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-24 09:06:21 -04:00
Add surface.map request.
This commit is contained in:
parent
a67a71a7cf
commit
05eff51e41
6 changed files with 188 additions and 34 deletions
12
wayland.h
12
wayland.h
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue