diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-23 18:05:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 18:05:41 -0500 |
commit | c09c2dfbc4a33aed90bf4c033a2a75e8a0cecb64 (patch) | |
tree | cb6279425d64e395590753fec23aae948ef91b8b /include/rootston/view.h | |
parent | 03440bbd83b5d68404db8ebc2df310ec0f8c9b32 (diff) | |
parent | a4d601e3d6d6600bc4c26697d282616537ef9b02 (diff) |
Merge pull request #570 from acrisci/decorations
Decorations
Diffstat (limited to 'include/rootston/view.h')
-rw-r--r-- | include/rootston/view.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h index 579b148a..e837586a 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -61,6 +61,10 @@ struct roots_view { double x, y; float rotation; + bool decorated; + int border_width; + int titlebar_height; + bool maximized; struct roots_output *fullscreen_output; struct { @@ -126,4 +130,17 @@ bool view_center(struct roots_view *view); void view_setup(struct roots_view *view); void view_teardown(struct roots_view *view); +void view_get_deco_box(const struct roots_view *view, struct wlr_box *box); + +enum roots_deco_part { + ROOTS_DECO_PART_NONE = 0, + ROOTS_DECO_PART_TOP_BORDER = (1 << 0), + ROOTS_DECO_PART_BOTTOM_BORDER = (1 << 1), + ROOTS_DECO_PART_LEFT_BORDER = (1 << 2), + ROOTS_DECO_PART_RIGHT_BORDER = (1 << 3), + ROOTS_DECO_PART_TITLEBAR = (1 << 4), +}; + +enum roots_deco_part view_get_deco_part(struct roots_view *view, double sx, double sy); + #endif |