diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-12-18 17:55:33 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-12-18 17:55:33 -0500 |
commit | de31d5ca6f2650da3c4e8c45acdcee73ed655602 (patch) | |
tree | 70b4ee4696bf6575a384608577665fa3b8aedcee /wayland-client.h | |
parent | c8c5d5872d3e12896eeb70c48883143a50a1cdb7 (diff) | |
download | wayland-de31d5ca6f2650da3c4e8c45acdcee73ed655602.tar.gz wayland-de31d5ca6f2650da3c4e8c45acdcee73ed655602.tar.xz wayland-de31d5ca6f2650da3c4e8c45acdcee73ed655602.zip |
Add preliminary visual support.
Diffstat (limited to 'wayland-client.h')
-rw-r--r-- | wayland-client.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/wayland-client.h b/wayland-client.h index 54889d4..4f4adcc 100644 --- a/wayland-client.h +++ b/wayland-client.h @@ -32,6 +32,7 @@ struct wl_display; struct wl_surface; +struct wl_visual; #define WL_DISPLAY_READABLE 0x01 #define WL_DISPLAY_WRITABLE 0x02 @@ -58,6 +59,12 @@ void wl_display_set_event_handler(struct wl_display *display, struct wl_compositor * wl_display_get_compositor(struct wl_display *display); +struct wl_visual * +wl_display_get_argb_visual(struct wl_display *display); +struct wl_visual * +wl_display_get_premultiplied_argb_visual(struct wl_display *display); +struct wl_visual * +wl_display_get_rgb_visual(struct wl_display *display); struct wl_surface * wl_compositor_create_surface(struct wl_compositor *compositor); @@ -65,8 +72,9 @@ void wl_compositor_commit(struct wl_compositor *compositor, uint32_t key); void wl_surface_destroy(struct wl_surface *surface); -void wl_surface_attach(struct wl_surface *surface, - uint32_t name, int32_t width, int32_t height, uint32_t stride); +void wl_surface_attach(struct wl_surface *surface, uint32_t name, + int32_t width, int32_t height, uint32_t stride, + struct wl_visual *visual); void wl_surface_map(struct wl_surface *surface, int32_t x, int32_t y, int32_t width, int32_t height); void wl_surface_copy(struct wl_surface *surface, int32_t dst_x, int32_t dst_y, |