diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-06-27 08:24:10 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 5a905147d566e62ceafd8f885143a49e2866947e (patch) | |
tree | 2b5a3fa4215114d0d48f466337decbf1d8308dc2 /src/wayland.hpp | |
parent | d1cebefc3d280fa1960ac203d24edff31ed9e8de (diff) |
wayland: moved screen inline methods to .cpp
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.hpp')
-rw-r--r-- | src/wayland.hpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/wayland.hpp b/src/wayland.hpp index 9a5541d..79dd7ae 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -208,19 +208,9 @@ struct layer : public wayland_proxy<struct ivi_controller_layer>, struct screen : public wayland_proxy<struct ivi_controller_screen>, controller_child { screen(uint32_t i, struct controller *c, struct ivi_controller_screen *p); - - void clear() { ivi_controller_screen_clear(this->proxy); } - void add_layer(layer *l) { - ivi_controller_screen_add_layer(this->proxy, l->proxy); - } - void set_render_order(std::vector<uint32_t> const &ro) { - struct wl_array wlro { - .size = ro.size() * sizeof(ro[0]), - .alloc = ro.capacity() * sizeof(ro[0]), - .data = const_cast<void *>(static_cast<void const *>(ro.data())) - }; - ivi_controller_screen_set_render_order(this->proxy, &wlro); - } + void clear(); + void add_layer(layer *l); + void set_render_order(std::vector<uint32_t> const &ro); }; // _ _ _ |