diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-07 11:19:43 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-08 06:03:57 -0500 |
commit | d74ac69f7b932a8833527a41351e3310ad391d7c (patch) | |
tree | 76ae32f195053b38d5bad555376701a9ecb7070c /include/wlr | |
parent | f469784bbc73bf6346430a2caa7dc366ad2d0308 (diff) |
bring edges into wlr
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_xcursor_manager.h | 7 | ||||
-rw-r--r-- | include/wlr/util/edges.h | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_xcursor_manager.h b/include/wlr/types/wlr_xcursor_manager.h index c78a6e8d..63eb5386 100644 --- a/include/wlr/types/wlr_xcursor_manager.h +++ b/include/wlr/types/wlr_xcursor_manager.h @@ -4,6 +4,7 @@ #include <wayland-server.h> #include <wlr/types/wlr_cursor.h> #include <wlr/xcursor.h> +#include <wlr/util/edges.h> /** * A scaled XCursor theme. @@ -50,4 +51,10 @@ struct wlr_xcursor *wlr_xcursor_manager_get_xcursor( void wlr_xcursor_manager_set_cursor_image(struct wlr_xcursor_manager *manager, const char *name, struct wlr_cursor *cursor); +/** + * Get the name of the cursor image for the given edges. + */ +const char *wlr_xcursor_manager_get_resize_name(enum wlr_edges edges); + + #endif diff --git a/include/wlr/util/edges.h b/include/wlr/util/edges.h new file mode 100644 index 00000000..53268323 --- /dev/null +++ b/include/wlr/util/edges.h @@ -0,0 +1,12 @@ +#ifndef WLR_UTIL_EDGES_H +#define WLR_UTIL_EDGES_H + +enum wlr_edges { + WLR_EDGE_NONE = 0, + WLR_EDGE_TOP = 1, + WLR_EDGE_BOTTOM = 2, + WLR_EDGE_LEFT = 4, + WLR_EDGE_RIGHT = 8, +}; + +#endif |