diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-08-07 12:18:38 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-08-07 13:34:10 +0200 |
commit | b2113b73843a180747ccec43a48e369617ddabd0 (patch) | |
tree | 9ffbf204764a0bfa33c95763b109174831d5dca8 /gdk/wayland/gdkprivate-wayland.h | |
parent | 71fe43543c765f12b22e7c6508ed4d58ea5075a6 (diff) | |
download | gtk+-b2113b73843a180747ccec43a48e369617ddabd0.tar.gz |
gdk: Add gdk_cursor_new_from_surface
We need this to be able to handle scaled cursor images.
We implement the new _from_pixbuf by converting to a surface and
assuming the scale was 1.
Diffstat (limited to 'gdk/wayland/gdkprivate-wayland.h')
-rw-r--r-- | gdk/wayland/gdkprivate-wayland.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdk/wayland/gdkprivate-wayland.h b/gdk/wayland/gdkprivate-wayland.h index ebe4f43bd4..e0d48d370d 100644 --- a/gdk/wayland/gdkprivate-wayland.h +++ b/gdk/wayland/gdkprivate-wayland.h @@ -63,10 +63,10 @@ GdkCursor *_gdk_wayland_display_get_cursor_for_type (GdkDisplay *display, GdkCursorType cursor_type); GdkCursor *_gdk_wayland_display_get_cursor_for_name (GdkDisplay *display, const gchar *name); -GdkCursor *_gdk_wayland_display_get_cursor_for_pixbuf (GdkDisplay *display, - GdkPixbuf *pixbuf, - gint x, - gint y); +GdkCursor *_gdk_wayland_display_get_cursor_for_surface (GdkDisplay *display, + cairo_surface_t *surface, + gdouble x, + gdouble y); void _gdk_wayland_display_get_default_cursor_size (GdkDisplay *display, guint *width, guint *height); @@ -81,7 +81,8 @@ struct wl_buffer *_gdk_wayland_cursor_get_buffer (GdkCursor *cursor, int *hotspot_x, int *hotspot_y, int *w, - int *h); + int *h, + int *scale); guint _gdk_wayland_cursor_get_next_image_index (GdkCursor *cursor, guint current_image_index, guint *next_image_delay); |