gtk-rs / examples

DEPRECATED, use https://github.com/gtk-rs/gtk-rs repository instead!
MIT License
284 stars 75 forks source link

clutter-gtk rust binding? #291

Closed artonio closed 4 years ago

artonio commented 4 years ago

I'm sorry, I don't know where else to ask this. Are there rust binding for Clutter-gtk. I really would like to implement drag n drop from clutter to GTK window, anyone know how?

GuillaumeGomez commented 4 years ago

I don't know of any myself. Asking through the GNOME channels might give you more results maybe?

artonio commented 4 years ago

Thanks, I will try. Unfortunately I don't know C well enough to make the bindings :(

GuillaumeGomez commented 4 years ago

If it has gir files, you can use gir to generate most of the library in rust. There even is a tutorial on how to use it here.

artonio commented 4 years ago

Hmm, I don't see the gir files in their repo. Any way i can generate gir files from C?

EPashkin commented 4 years ago

https://packages.ubuntu.com/eoan/libclutter-gtk-1.0-dev have GtkClutter-1.0.gir but it depends for https://packages.ubuntu.com/eoan/libclutter-1.0-dev 's gir file, and it depends for many untranslated libs too.

GuillaumeGomez commented 4 years ago

So you might be able to generate everything if all the generation works well, which I strongly doubt. But that'd be interesting for gir to get new bug reports.

artonio commented 4 years ago

thanks for all the help! i will investigate

GuillaumeGomez commented 4 years ago

Closing then. Don't hesitate to comment here what you did in the end. :)