diff options
author | emersion <contact@emersion.fr> | 2017-11-11 17:27:44 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-11-11 17:27:44 +0100 |
commit | ac1573b0e7b0b08413e115bb88682ebedbfbf39a (patch) | |
tree | 4cdbbf78956950066c65c6c5885a0d07bc881fe0 /include | |
parent | 2bee288090d930a09be5f9176a519c1ec02c63de (diff) |
Add scale parameter to wlr_cursor_set_image
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_cursor.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_cursor.h b/include/wlr/types/wlr_cursor.h index 1aac2b94..3df74d28 100644 --- a/include/wlr/types/wlr_cursor.h +++ b/include/wlr/types/wlr_cursor.h @@ -60,9 +60,22 @@ void wlr_cursor_warp_absolute(struct wlr_cursor *cur, void wlr_cursor_move(struct wlr_cursor *cur, struct wlr_input_device *dev, double delta_x, double delta_y); +/** + * Set the cursor image. stride is given in bytes. If pixels is NULL, hides the + * cursor. + * + * If scale isn't zero, the image is only set on outputs having the provided + * scale. + */ void wlr_cursor_set_image(struct wlr_cursor *cur, const uint8_t *pixels, int32_t stride, uint32_t width, uint32_t height, int32_t hotspot_x, - int32_t hotspot_y); + int32_t hotspot_y, uint32_t scale); + +/** + * Set the cursor surface. The surface can be committed to update the cursor + * image. The surface position is substracted from the hotspot. A NULL surface + * commit hides the cursor. + */ void wlr_cursor_set_surface(struct wlr_cursor *cur, struct wlr_surface *surface, int32_t hotspot_x, int32_t hotspot_y); |