Open Rogni opened 3 years ago
Could you elaborate a bit more on the use case of the addition of GInterfaceInfo, and the added functions.
To implement a GTK interface in a D class there is also: gtkd.Implement.ImplementInterface https://github.com/gtkd-developers/GtkD/blob/master/generated/gtkd/gtkd/Implement.d#L78 https://github.com/gtkd-developers/GtkD/blob/master/demos/gtkD/DemoCustomList/CustomList.d
for register custom GTypes from D. i didn't find gtkd.Implement.ImplementInterface and started writing my solution. https://github.com/Rogni/ExampleContactsBook/blob/master/src/utils/GObjectType.d#L47 https://github.com/Rogni/ExampleContactsBook/blob/2e1a8ed192b7716bbda1b8bb6bd5166206ab0091/src/controllers/ContactListController.d#L28
I suggest to add generated static field GInterfaceInfo to glib interfaces for register GType from D class.
Example for ListModelIF: