diff options
author | Kristian Høgsberg <krh@redhat.com> | 2009-01-26 23:42:46 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2009-01-26 23:42:55 -0500 |
commit | 43c28eee32ae9383d3056e45a8f824710ce4615d (patch) | |
tree | 7140bc584f8e7ceff8e6ab570238ccb7779c26b7 /window.h | |
parent | 8e438625ae1599969d6a6dd29fc4e1c05f5763cc (diff) |
Add a toy-display object that caches state.
This will be GdkDisplay for GTK+ on Wayland etc. This restores
the terminal fullscreen mode.
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -32,6 +32,13 @@ struct rectangle { int32_t height; }; +struct display; + +struct display * +display_create(struct wl_display *display, int fd); +struct wl_compositor * +display_get_compositor(struct display *display); + typedef void (*window_resize_handler_t)(struct window *window, void *data); typedef void (*window_frame_handler_t)(struct window *window, uint32_t frame, uint32_t timestamp, void *data); typedef void (*window_acknowledge_handler_t)(struct window *window, uint32_t key, void *data); @@ -39,8 +46,7 @@ typedef void (*window_key_handler_t)(struct window *window, uint32_t key, uint32 struct window * -window_create(struct wl_display *display, int fd, - const char *title, +window_create(struct display *display, const char *title, int32_t x, int32_t y, int32_t width, int32_t height); void |