aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/view.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-02-25 14:59:57 +0100
committerDrew DeVault <sir@cmpwn.com>2019-03-02 09:37:05 -0700
commit62fd03a7beb18da6c4a5929e38739cf2199dfa79 (patch)
tree937fc28ed00480491f47ca75a94b1ba74cb97bab /include/rootston/view.h
parent8efeca528f9aab16de673e5c9e19028667b1c7bb (diff)
rootston: refactor rendering
This implements rootston surface iterators to ease rendering, sending frame/presentation events and accumulating damage.
Diffstat (limited to 'include/rootston/view.h')
-rw-r--r--include/rootston/view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h
index e701b161..531c615b 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -20,6 +20,8 @@ struct roots_view_interface {
void (*maximize)(struct roots_view *view, bool maximized);
void (*set_fullscreen)(struct roots_view *view, bool fullscreen);
void (*close)(struct roots_view *view);
+ void (*for_each_surface)(struct roots_view *view,
+ wlr_surface_iterator_func_t iterator, void *user_data);
void (*destroy)(struct roots_view *view);
};
@@ -250,6 +252,8 @@ void view_set_title(struct roots_view *view, const char *title);
void view_set_app_id(struct roots_view *view, const char *app_id);
void view_create_foreign_toplevel_handle(struct roots_view *view);
void view_get_deco_box(const struct roots_view *view, struct wlr_box *box);
+void view_for_each_surface(struct roots_view *view,
+ wlr_surface_iterator_func_t iterator, void *user_data);
struct roots_wl_shell_surface *roots_wl_shell_surface_from_view(
struct roots_view *view);