1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef WAYLAND_CURSOR_H
- #define WAYLAND_CURSOR_H
- #include <stdint.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct wl_cursor_theme;
- struct wl_cursor_image {
- uint32_t width;
- uint32_t height;
- uint32_t hotspot_x;
- uint32_t hotspot_y;
- uint32_t delay;
- };
- struct wl_cursor {
- unsigned int image_count;
- struct wl_cursor_image **images;
- char *name;
- };
- struct wl_shm;
- struct wl_cursor_theme *
- wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm);
- void
- wl_cursor_theme_destroy(struct wl_cursor_theme *theme);
- struct wl_cursor *
- wl_cursor_theme_get_cursor(struct wl_cursor_theme *theme,
- const char *name);
- struct wl_buffer *
- wl_cursor_image_get_buffer(struct wl_cursor_image *image);
- int
- wl_cursor_frame(struct wl_cursor *cursor, uint32_t time);
- int
- wl_cursor_frame_and_duration(struct wl_cursor *cursor, uint32_t time,
- uint32_t *duration);
- #ifdef __cplusplus
- }
- #endif
- #endif
|