aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 0152ed55..9f6d36fe 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -47,6 +47,8 @@ struct sway_view_impl {
47 bool (*has_client_side_decorations)(struct sway_view *view); 47 bool (*has_client_side_decorations)(struct sway_view *view);
48 void (*for_each_surface)(struct sway_view *view, 48 void (*for_each_surface)(struct sway_view *view,
49 wlr_surface_iterator_func_t iterator, void *user_data); 49 wlr_surface_iterator_func_t iterator, void *user_data);
50 void (*for_each_popup)(struct sway_view *view,
51 wlr_surface_iterator_func_t iterator, void *user_data);
50 void (*close)(struct sway_view *view); 52 void (*close)(struct sway_view *view);
51 void (*destroy)(struct sway_view *view); 53 void (*destroy)(struct sway_view *view);
52}; 54};
@@ -248,9 +250,18 @@ void view_close(struct sway_view *view);
248 250
249void view_damage_from(struct sway_view *view); 251void view_damage_from(struct sway_view *view);
250 252
253/**
254 * Iterate all surfaces of a view (toplevels + popups).
255 */
251void view_for_each_surface(struct sway_view *view, 256void view_for_each_surface(struct sway_view *view,
252 wlr_surface_iterator_func_t iterator, void *user_data); 257 wlr_surface_iterator_func_t iterator, void *user_data);
253 258
259/**
260 * Iterate all popups recursively.
261 */
262void view_for_each_popup(struct sway_view *view,
263 wlr_surface_iterator_func_t iterator, void *user_data);
264
254// view implementation 265// view implementation
255 266
256void view_init(struct sway_view *view, enum sway_view_type type, 267void view_init(struct sway_view *view, enum sway_view_type type,