How do you draw in gtkD? Simple example overriding Widget.draw() doesn't compile.

Gerald via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 26 20:13:39 PST 2016


Generally don't override methods in GtkD, use event handlers like 
addOnDraw. Because GtkD wraps GTK functions an overriden D method 
of GtkD will never get called by GTK since it is working with the 
underlying C functions directly.


More information about the Digitalmars-d-learn mailing list