mono / gtk-sharp

Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono
http://www.mono-project.com/GtkSharp
Other
426 stars 141 forks source link

[WIP] Showcase how to bind GIR enum #222

Closed Therzok closed 6 years ago

sundermann commented 6 years ago

What about using serialization instead of manual XML parsing? I could think of replacing the current .metadata patching process with something like a generator plugin system. If a binding needs to change the .gir file before it's processed it can provide a plugin to the generator which can then also adjust the XML document after deserialization. Sometimes it's really hard to deal with XPath expressions during metadata patching. A full C# solution would be much handier.

sundermann commented 6 years ago

https://github.com/stsundermann/gi-sharp/tree/master/generator/Gir

This repository has deserialization of gir files which I implemented from my gir schema file. It's complete and can provide information on which elements have which attributes and child elements.

Therzok commented 6 years ago

@stsundermann That could work!

sundermann commented 6 years ago

I can upload the schema file as well if needed.

Therzok commented 6 years ago

Closing in favor of github.com/mono/gir-sharp