-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom cursor icons #3005
Comments
There are a number of PRs on this:
Biggest problem is how to design the desired API for this. |
I guess we could do something like
The issue is that on Wayland you'd need a scaling, but we can accept physical and say that we'll scale based on display resolution? |
What was the reason why CursorIcon resides in its own crate? I found this pr bd9cc2a but I don't think its really worth being in its own crate. |
@valaphee it's used by multiple crates(not only winit) and just encodes w3c icons |
#3218 has been merged 🎉 |
At the moment there is no way to use custom cursor icons (except doing it manually).
All major platforms should support custom cursors even on web.
Loading cursor icons would work the same way as other icons on Windows (LoadImageW), but would require a new method in Window or not using "cursor_icon" and adding a new variant "Custom" to CursorIcon.
The text was updated successfully, but these errors were encountered: