View previous topic :: View next topic |
Author |
Message |
acehreli
Joined: 19 Mar 2010 Posts: 2
|
Posted: Fri Mar 19, 2010 1:10 pm Post subject: How can I learn gtkD? |
|
|
I think gtkD doesn't have a tutorial. I hope I am wrong.
Has there been a standard naming convention for gtkD? If so, I could learn from a tutorial for another language and adapt that information to D.
If so, which tutorial do you recommend? Should I start from the original C tutorial or is gtkD closer to say a C++ wrapper of gtk?
Thank you,
Ali |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sat Mar 20, 2010 7:05 am Post subject: |
|
|
For functions the underscores are removed and the first char of each word is upper case also the class name is stripped from the function name, so gtk_widget_show_all() becomes Widget.showAll();
As for tutorials there aren't any for GtkD, you could take a look at the demo's that come with GtkD.
Or you could try to follow a tutorial for one of the other Object oriented bindings for Gtk. |
|
Back to top |
|
|
acehreli
Joined: 19 Mar 2010 Posts: 2
|
Posted: Mon Mar 22, 2010 2:35 am Post subject: |
|
|
Mike Wey wrote: | so gtk_widget_show_all() becomes Widget.showAll(); |
Thank you very much. That definitely helps.
Quote: | As for tutorials there aren't any for GtkD |
The first GtkD tutorial may be written in Turkish then. Since my asking this question, one of us has already started adapting his PyGtk experience to D and has started writing a tutorial.
Ali |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Mon Mar 22, 2010 12:45 pm Post subject: |
|
|
acehreli wrote: | The first GtkD tutorial may be written in Turkish then. Since my asking this question, one of us has already started adapting his PyGtk experience to D and has started writing a tutorial.
Ali |
Great. |
|
Back to top |
|
|
|