mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-22 05:34:12 -04:00
wayland-cursor: remove enum wl_cursor_type
Defining a list of all cursors a theme, client or toolkit should have is not the purpose of libwayland-cursor. The cursor type enum existed for making lookups faster, but this kind of optmization belongs in the toolkits.
This commit is contained in:
parent
086b4e2c1a
commit
f779c57be2
2 changed files with 3 additions and 39 deletions
|
|
@ -29,21 +29,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum wl_cursor_type {
|
||||
WL_CURSOR_BOTTOM_LEFT,
|
||||
WL_CURSOR_BOTTOM_RIGHT,
|
||||
WL_CURSOR_BOTTOM,
|
||||
WL_CURSOR_DRAGGING,
|
||||
WL_CURSOR_LEFT_PTR,
|
||||
WL_CURSOR_LEFT,
|
||||
WL_CURSOR_RIGHT,
|
||||
WL_CURSOR_TOP_LEFT,
|
||||
WL_CURSOR_TOP_RIGHT,
|
||||
WL_CURSOR_TOP,
|
||||
WL_CURSOR_IBEAM,
|
||||
WL_CURSOR_HAND1,
|
||||
};
|
||||
|
||||
struct wl_cursor_theme;
|
||||
|
||||
struct wl_cursor_image {
|
||||
|
|
@ -70,11 +55,7 @@ wl_cursor_theme_destroy(struct wl_cursor_theme *theme);
|
|||
|
||||
struct wl_cursor *
|
||||
wl_cursor_theme_get_cursor(struct wl_cursor_theme *theme,
|
||||
enum wl_cursor_type type);
|
||||
|
||||
struct wl_cursor *
|
||||
wl_cursor_theme_get_cursor_by_name(struct wl_cursor_theme *theme,
|
||||
const char *name);
|
||||
const char *name);
|
||||
|
||||
struct wl_buffer *
|
||||
wl_cursor_image_get_buffer(struct wl_cursor_image *image);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue