With gtk.Builder I can do auto mainWindow = cast(ApplicationWindow)builder.getObject("mainWindow");
But if I want to to make a derived class MainWindow : ApplicationWindow
how could I use it with gtk.Builder? I understand that the native gtk way of doing this is with Composite Widget Templates but I don't see anything on the gtkD docs.
Thanks.