summaryrefslogtreecommitdiffstats
path: root/src/wayland.hpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-08 16:20:39 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit72ca2b377687ef63ad223ab1b55cf6bc3af24062 (patch)
tree9e8343366818cc3a7ff95917944bc8271a126399 /src/wayland.hpp
parent910704d00adeea1b6516e3fd444e5273b8ebbbbb (diff)
fixed display dtor message, added layer request defs
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.hpp')
-rw-r--r--src/wayland.hpp18
1 files changed, 16 insertions, 2 deletions
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<registry> r;
display();
+ ~display();
bool ok() const;
void roundtrip();
int dispatch();
@@ -121,7 +122,7 @@ struct surface : public wayland_proxy<ivi_controller_surface> {
// 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<ivi_controller_layer> {
// 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<ivi_controller_layer> {
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);
};
//