On Sat, 20 Jul 2019 13:33:39 +0200, Mike Wey wrote:

On 19-07-2019 14:35, Giacomo Alberini wrote:

Hi everyone!

First time on the forum, so hello there!

My question is pretty general, I started recently with Gtk and D programming and I think it's a good match.

I also developed small applications in Gtk using Vala, and there I was able to actually subclass Gtk classes and create custom Widget/Object and emit custom signals.

I'd like to know how and whether this is possible with GtkD or if there's a better way to handle communication between custom Widgets.

Thanks in advance to everyone!

For implementing your own Gtk Widget there is:
https://api.gtkd.org/gtkd.Implement.ImplementClass.html

But it currently doesn't provide an easy way to also add signals and/or
properties.

Thanks Mike for the answer!

I'll try to figure out how to handle this, when I'll have some spare time to work on it!

Thanks again!