diff options
author | emersion <contact@emersion.fr> | 2018-01-27 10:43:17 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-27 10:43:17 +0100 |
commit | 7111dd79efb6cccf39866051a92090cfc9ea5c67 (patch) | |
tree | d3e05791ad4341cddbb038840d99b2d4cd5bdae7 /include | |
parent | a011a1cb075bed2235162f1af7e88d0ee534acad (diff) |
rootston: damage tracking for rotated views
Diffstat (limited to 'include')
-rw-r--r-- | include/rootston/view.h | 1 | ||||
-rw-r--r-- | include/wlr/types/wlr_box.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h index 35660d64..c9d1deb2 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -164,6 +164,7 @@ void view_move_resize(struct roots_view *view, double x, double y, void view_maximize(struct roots_view *view, bool maximized); void view_set_fullscreen(struct roots_view *view, bool fullscreen, struct wlr_output *output); +void view_rotate(struct roots_view *view, float rotation); void view_close(struct roots_view *view); bool view_center(struct roots_view *view); void view_setup(struct roots_view *view); diff --git a/include/wlr/types/wlr_box.h b/include/wlr/types/wlr_box.h index d6cc3509..fc86f0ac 100644 --- a/include/wlr/types/wlr_box.h +++ b/include/wlr/types/wlr_box.h @@ -26,4 +26,10 @@ void wlr_box_transform(const struct wlr_box *box, enum wl_output_transform transform, int width, int height, struct wlr_box *dest); +/** + * Creates the smallest box that contains a rotated box. + */ +void wlr_box_rotated_bounds(const struct wlr_box *box, float rotation, + struct wlr_box *dest); + #endif |