Lines Matching defs:cursor
1082 struct wl_cursor* wlCursor = cursorWayland->cursor;
1126 _GLFWcursor* cursor;
1131 cursor = window->wl.currentCursor;
1132 if (cursor && cursor->wl.cursor)
1134 cursor->wl.currentImage += 1;
1135 cursor->wl.currentImage %= cursor->wl.cursor->image_count;
1136 setCursorImage(window, &cursor->wl);
1497 // We only support up to scale=2 for now, since libwayland-cursor
1503 struct wl_cursor* cursor = wl_cursor_theme_get_cursor(theme, cursorName);
1504 if (!cursor)
1508 struct wl_cursor_image* image = cursor->images[0];
2679 "Wayland: The platform does not support setting the cursor position");
2749 GLFWbool _glfwCreateCursorWayland(_GLFWcursor* cursor,
2753 cursor->wl.buffer = createShmBuffer(image);
2754 if (!cursor->wl.buffer)
2757 cursor->wl.width = image->width;
2758 cursor->wl.height = image->height;
2759 cursor->wl.xhot = xhot;
2760 cursor->wl.yhot = yhot;
2764 GLFWbool _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape)
2803 cursor->wl.cursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, name);
2807 cursor->wl.cursorHiDPI =
2811 if (!cursor->wl.cursor)
2839 "Wayland: Standard cursor shape unavailable");
2843 cursor->wl.cursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, name);
2844 if (!cursor->wl.cursor)
2847 "Wayland: Failed to create standard cursor \"%s\"",
2854 if (!cursor->wl.cursorHiDPI)
2856 cursor->wl.cursorHiDPI =
2865 void _glfwDestroyCursorWayland(_GLFWcursor* cursor)
2867 // If it's a standard cursor we don't need to do anything here
2868 if (cursor->wl.cursor)
2871 if (cursor->wl.buffer)
2872 wl_buffer_destroy(cursor->wl.buffer);
3001 void _glfwSetCursorWayland(_GLFWwindow* window, _GLFWcursor* cursor)
3006 window->wl.currentCursor = cursor;
3008 // If we're not in the correct window just save the cursor
3009 // the next time the pointer enters the window the cursor will change
3013 // Update pointer lock to match cursor mode
3040 if (cursor)
3041 setCursorImage(window, &cursor->wl);
3049 "Wayland: Standard cursor not found");