X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwayland.hpp;h=38f8946d86d2379c122d69c39997ebab4dd5ef6d;hb=119d40642c13259995ee7f51fc7d887b09debd85;hp=d0d9c9050fd1179878c0f92e79689d8868e88244;hpb=910704d00adeea1b6516e3fd444e5273b8ebbbbb;p=staging%2Fwindowmanager.git diff --git a/src/wayland.hpp b/src/wayland.hpp index d0d9c90..38f8946 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -51,6 +51,7 @@ struct display { std::unique_ptr r; display(); + ~display(); bool ok() const; void roundtrip(); int dispatch(); @@ -121,7 +122,7 @@ struct surface : public wayland_proxy { // Events void visibility(int32_t visibility); - void opacity(wl_fixed_t opacity); + void opacity(float opacity); void source_rectangle(int32_t x, int32_t y, int32_t width, int32_t height); void destination_rectangle(int32_t x, int32_t y, int32_t width, int32_t height); @@ -149,7 +150,7 @@ struct layer : public wayland_proxy { // Events void visibility(int32_t visibility); - void opacity(wl_fixed_t opacity); + void opacity(float opacity); void source_rectangle(int32_t x, int32_t y, int32_t width, int32_t height); void destination_rectangle(int32_t x, int32_t y, int32_t width, int32_t height); @@ -157,6 +158,19 @@ struct layer : public wayland_proxy { void orientation(int32_t orientation); void screen(struct wl_output *screen); void destroyed(); + + // Requests + void set_visibility(uint32_t visibility); + void set_opacity(wl_fixed_t opacity); + void set_source_rectangle(int32_t x, int32_t y, int32_t width, int32_t height); + void set_destination_rectangle(int32_t x, int32_t y, int32_t width, int32_t height); + void set_configuration(int32_t width, int32_t height); + void set_orientation(int32_t orientation); + void screenshot(const char *filename); + void clear_surfaces(); + void add_surface(struct surface *surface); + void remove_surface(struct surface *surface); + void set_render_order(struct wl_array *id_surfaces); }; //