fixed display dtor message, added layer request defs
[staging/windowmanager.git] / src / wayland.hpp
index d0d9c90..38f8946 100644 (file)
@@ -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);
 };
 
 //