-
Notifications
You must be signed in to change notification settings - Fork 568
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
Drag and drop support in druid-shell #1742
Comments
In addition to the previous use case I have another. I'm creating an application for images management. |
@Pancir Are you talking about dragging an image from the filesystem or from another app, or are you talking about dragging an image from one place in your app to another? If it's the second then I think this may be a different concern. It could make sense to write a drag-and-drop utility widget that facilitates some of this. |
Perhaps, I am not sure yet, dragging a label on image too, this will just add a text tag to the image. |
Okay, thanks for clarifying! |
Dragging within your app is definitely something you could build now, although it would require some hacking. Full system-wide drag & drop support will be a fairly large project, and would need research and some sort of RFC/design proposal. |
Note that winit's drag & drop support is not really useable if you have multiple drop areas in your app and want to know which drop area received the file. I also have a use case where my GUI needs drag & drop between ui elements and drag & drop from windows explorer onto different drop areas in the UI. I have a partial workaround for Druid has a chance to get this right from the start :) The fix is simple: |
another piece of potentially useful prior-art for this feature: |
This is mentioned in the "longer term future" section of the druid-shell roadmap. Perhaps we're getting close?
My personal use case is to drag files from the filesystem onto the window, ideally with a sub-window drop location.
For implementation reference, Winit has
DroppedFile
/HoveredFile
/HoveredFileCancelled
events for mac, windows, and x11. I wasn't able to find the precise way this is done in GTK... drag and drop are a little bit overloaded terms.The text was updated successfully, but these errors were encountered: