cursor: Add function for calculating current frame in cursor animation

Given a pointer to struct wl_cursor and an elapsed time in ms.,
wl_cursor_frame() will return the index of the cursor image the should
be displayed.
This commit is contained in:
Ander Conselvan de Oliveira 2012-06-15 17:27:33 +03:00 committed by Kristian Høgsberg
parent b6aa49455e
commit 6b861f7b4d
2 changed files with 45 additions and 7 deletions

View file

@ -60,6 +60,9 @@ wl_cursor_theme_get_cursor(struct wl_cursor_theme *theme,
struct wl_buffer *
wl_cursor_image_get_buffer(struct wl_cursor_image *image);
int
wl_cursor_frame(struct wl_cursor *cursor, uint32_t time);
#ifdef __cplusplus
}
#endif