~eliasnaur/gio#153: 
File drag (or file share) events

Is there a way to capture files being dragged onto the application window? I did not find anything related in the docs and it seems as if no special event is generated when doing this. If not, I think this would be a great addition to the library. For mobile applications, the equivalent would probably be share events, where another app shares a files with the gioui app.

Please let me know if this is already supported or possible with some workaround, because I want to build a GUI application precisely around this file drag behaviour.

Status
REPORTED
Submitter
~erikgeiser
Assigned to
No-one
Submitted
2 months ago
Updated
2 months ago
Labels
No labels applied.

~eliasnaur 2 months ago

On Sun Aug 2, 2020 at 08:31, ~erikgeiser wrote:

Is there a way to capture files being dragged onto the application window? I did not find anything related in the docs and it seems as if no special event is generated when doing this. For mobile applications, the equivalent would probably be share events, where another app shares a files with the gioui app.

Please let me know if this is already supported or possible with some workaround, because I want to build a GUI application precisely around this file drag behaviour.

There is not (yet) support for drag-and-drop in Gio, sorry. FWIW, d&d is similar to clipboard reading and writing if you want to investigate adding support.

Register here or Log in to comment, or comment via email.