Skip to content
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 pointer icons #3848

Open
Adanos020 opened this issue Jan 19, 2024 · 1 comment
Open

Custom pointer icons #3848

Adanos020 opened this issue Jan 19, 2024 · 1 comment

Comments

@Adanos020
Copy link
Contributor

Adanos020 commented Jan 19, 2024

Is your feature request related to a problem? Please describe.
I would like my game editor application to be able to change the mouse cursor icon to a custom image. I'm sure many other kinds of applications like image manipulation software could also benefit from this feature

Describe the solution you'd like
The ideal solution would be to just add an extra Custom(ColorImage) or Custom(TextureId) variant to the CursorIcon enum. Please let me know which one is better!

Describe alternatives you've considered
If the above solution isn't viable, another decent one seems to be adding a set_custom_cursor_icon method to Context.

Additional context
Here's an example of what I want to achieve:
image

Also, we're waiting for winit to release with the recently merged PR that added this feature which we can then use in eframe.

@timmb
Copy link

timmb commented Dec 3, 2024

This would be really helpful for us as well - even if it was just an identifier like Custom(&'static str) as we're ultimately using CSS to draw the cursor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants