d - Learning GtkD - especially custom painting -


i've downloaded gtkd, , i'm trying find resources online me learn it. however, of find either gtk+ (which looks different gtkd syntactically), or limited in scope (such this). there resources out there have missed? how learning gtk+ understanding gtkd? can tell, quite different in terms of code.

well, answer not go far 'nothing @ all', maybe it'll of use.

gtkd wrapper around gtk+. means, there's one-to-one correspondence between functions. also, means object models same.

e.g. there such entities windows, buttons, etc. have relations, like, button can placed on window. conceptually, of objects , relations same both gtkd , gtk+ (v3.x).

and gui toolkit object model important thing study , understand. also, it's biggest thing. so, if understand model: objects there , how can used - you'll successful in writing gui apps using either gtk+ or gtkd.

the syntactical difference you'll need overcome pretty trivial compared this.

i suggest use gtk+ documentation when looking how-to-do-stuff , use gtkd documentation understand how concepts implemented in d. e.g. in gtk+ v2.x add button on window use like

gtk_container_add (gtk_container (window), button); 

and in gtkd can same by

window.add(button); 

in other situations can bit more complex , not straightforward @ first, more , more easy when experience.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -