diff options
author | emersion <contact@emersion.fr> | 2018-07-27 19:16:36 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-29 14:33:26 +0100 |
commit | 8d5cc8625ce04c657eab6bd5f242a02e97ddd647 (patch) | |
tree | cf6ce6cf223a508361139b223fe72d4fe2c79065 /include/sway/output.h | |
parent | wip: redesign output_view_for_each_surface iterator (diff) | |
download | sway-8d5cc8625ce04c657eab6bd5f242a02e97ddd647.tar.gz sway-8d5cc8625ce04c657eab6bd5f242a02e97ddd647.tar.zst sway-8d5cc8625ce04c657eab6bd5f242a02e97ddd647.zip |
Completely switch over to new iterators
Diffstat (limited to 'include/sway/output.h')
-rw-r--r-- | include/sway/output.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index 7a458a84..70f631a0 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -39,16 +39,6 @@ struct sway_output { | |||
39 | } events; | 39 | } events; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | /** | ||
43 | * Contains a surface's root geometry information. For instance, when rendering | ||
44 | * a popup, this will contain the parent view's position and size. | ||
45 | */ | ||
46 | struct root_geometry { | ||
47 | double x, y; | ||
48 | int width, height; | ||
49 | float rotation; | ||
50 | }; | ||
51 | |||
52 | typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, | 42 | typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, |
53 | struct wlr_surface *surface, struct wlr_box *box, float rotation, | 43 | struct wlr_surface *surface, struct wlr_box *box, float rotation, |
54 | void *user_data); | 44 | void *user_data); |
@@ -77,14 +67,6 @@ struct sway_container *output_get_active_workspace(struct sway_output *output); | |||
77 | void output_render(struct sway_output *output, struct timespec *when, | 67 | void output_render(struct sway_output *output, struct timespec *when, |
78 | pixman_region32_t *damage); | 68 | pixman_region32_t *damage); |
79 | 69 | ||
80 | bool output_get_surface_box(struct root_geometry *geo, | ||
81 | struct sway_output *output, struct wlr_surface *surface, int sx, int sy, | ||
82 | struct wlr_box *surface_box); | ||
83 | |||
84 | void output_surface_for_each_surface(struct wlr_surface *surface, | ||
85 | double ox, double oy, struct root_geometry *geo, | ||
86 | wlr_surface_iterator_func_t iterator, void *user_data); | ||
87 | |||
88 | void output_surface_for_each_surface2(struct sway_output *output, | 70 | void output_surface_for_each_surface2(struct sway_output *output, |
89 | struct wlr_surface *surface, double ox, double oy, float rotation, | 71 | struct wlr_surface *surface, double ox, double oy, float rotation, |
90 | sway_surface_iterator_func_t iterator, void *user_data); | 72 | sway_surface_iterator_func_t iterator, void *user_data); |