diff --git a/src/backends/meta-cursor.c b/src/backends/meta-cursor.c index d4087a67f..f6b207762 100644 --- a/src/backends/meta-cursor.c +++ b/src/backends/meta-cursor.c @@ -142,6 +142,24 @@ meta_cursor_sprite_get_hotspot (MetaCursorSprite *sprite, *hot_y = priv->hot_y; } +int +meta_cursor_sprite_get_width (MetaCursorSprite *sprite) +{ + CoglTexture *texture; + + texture = meta_cursor_sprite_get_cogl_texture (sprite); + return cogl_texture_get_width (texture); +} + +int +meta_cursor_sprite_get_height (MetaCursorSprite *sprite) +{ + CoglTexture *texture; + + texture = meta_cursor_sprite_get_cogl_texture (sprite); + return cogl_texture_get_height (texture); +} + float meta_cursor_sprite_get_texture_scale (MetaCursorSprite *sprite) { diff --git a/src/backends/meta-cursor.h b/src/backends/meta-cursor.h index 5cac34e46..80eaa313c 100644 --- a/src/backends/meta-cursor.h +++ b/src/backends/meta-cursor.h @@ -67,6 +67,10 @@ void meta_cursor_sprite_get_hotspot (MetaCursorSprite *sprite, int *hot_x, int *hot_y); +int meta_cursor_sprite_get_width (MetaCursorSprite *sprite); + +int meta_cursor_sprite_get_height (MetaCursorSprite *sprite); + float meta_cursor_sprite_get_texture_scale (MetaCursorSprite *sprite); MetaMonitorTransform meta_cursor_sprite_get_texture_transform (MetaCursorSprite *sprite);