diff options
author | emersion <contact@emersion.fr> | 2019-02-25 14:59:57 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-02 09:37:05 -0700 |
commit | 62fd03a7beb18da6c4a5929e38739cf2199dfa79 (patch) | |
tree | 937fc28ed00480491f47ca75a94b1ba74cb97bab /include/rootston/output.h | |
parent | 8efeca528f9aab16de673e5c9e19028667b1c7bb (diff) |
rootston: refactor rendering
This implements rootston surface iterators to ease rendering, sending
frame/presentation events and accumulating damage.
Diffstat (limited to 'include/rootston/output.h')
-rw-r--r-- | include/rootston/output.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/include/rootston/output.h b/include/rootston/output.h index 3f07ab6f..60648f75 100644 --- a/include/rootston/output.h +++ b/include/rootston/output.h @@ -29,9 +29,27 @@ struct roots_output { struct wl_listener damage_destroy; }; +typedef void (*roots_surface_iterator_func_t)(struct roots_output *output, + struct wlr_surface *surface, struct wlr_box *box, float rotation, + void *user_data); + void rotate_child_position(double *sx, double *sy, double sw, double sh, double pw, double ph, float rotation); +struct roots_input; + +void output_surface_for_each_surface(struct roots_output *output, + struct wlr_surface *surface, double ox, double oy, + roots_surface_iterator_func_t iterator, void *user_data); +void output_view_for_each_surface(struct roots_output *output, + struct roots_view *view, roots_surface_iterator_func_t iterator, + void *user_data); +void output_drag_icons_for_each_surface(struct roots_output *output, + struct roots_input *input, roots_surface_iterator_func_t iterator, + void *user_data); +void output_for_each_surface(struct roots_output *output, + roots_surface_iterator_func_t iterator, void *user_data); + void handle_new_output(struct wl_listener *listener, void *data); struct roots_view; @@ -45,8 +63,8 @@ void output_damage_from_view(struct roots_output *output, void output_damage_whole_drag_icon(struct roots_output *output, struct roots_drag_icon *icon); void output_damage_from_local_surface(struct roots_output *output, - struct wlr_surface *surface, double ox, double oy, float rotation); + struct wlr_surface *surface, double ox, double oy); void output_damage_whole_local_surface(struct roots_output *output, - struct wlr_surface *surface, double ox, double oy, float rotation); + struct wlr_surface *surface, double ox, double oy); #endif |