www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - gtkd examples

reply llee <llee goucher.edu> writes:
Does anyone know where I can find code samples that use gtkd?
Or better yet. Can anyone describe the naming conventions used in gtkd, so that
I can use existing gtk documentation. I.E. can anyone tell me how gtk function
names map onto gtkd function names. Also, can anyone tell me how gtk function
parameters map onto gtkd function parameters. Any help will be appreciated.
Jan 14 2008
next sibling parent reply Alan Knowles <alan akbkhome.com> writes:
llee wrote:
 Does anyone know where I can find code samples that use gtkd? 
Leds is probably the biggest example. http://www.dsource.org/projects/leds/browser/trunk/src/leds Or
 better yet. Can anyone describe the naming conventions used in gtkd,
 so that I can use existing gtk documentation. 
GtkWidget* w = gtk_widget_new(...) => Widget x = new Widget(....); gtk_widget_do_something(w, ...) => x.doSomething(......) This is the candydoc for it. http://devel.akbkhome.com/gtkd_docs/src/gtk/GtkD.html you should be able to get them to build with the makedocs.sh in the gtkd distribution - although it's a bit klunky... I.E. can anyone tell me
 how gtk function names map onto gtkd function names. Also, can anyone
 tell me how gtk function parameters map onto gtkd function
 parameters. Any help will be appreciated.
Basically the first parameter to most gtk methods is the object, which is normally removed, and the remaining arguments are used as the object method arguments. Regards Alan
Jan 15 2008
parent okibi <okibi ratedo.com> writes:
Alan Knowles Wrote:

 llee wrote:
 Does anyone know where I can find code samples that use gtkd? 
Leds is probably the biggest example. http://www.dsource.org/projects/leds/browser/trunk/src/leds Or
 better yet. Can anyone describe the naming conventions used in gtkd,
 so that I can use existing gtk documentation. 
GtkWidget* w = gtk_widget_new(...) => Widget x = new Widget(....); gtk_widget_do_something(w, ...) => x.doSomething(......) This is the candydoc for it. http://devel.akbkhome.com/gtkd_docs/src/gtk/GtkD.html you should be able to get them to build with the makedocs.sh in the gtkd distribution - although it's a bit klunky... I.E. can anyone tell me
 how gtk function names map onto gtkd function names. Also, can anyone
 tell me how gtk function parameters map onto gtkd function
 parameters. Any help will be appreciated.
Basically the first parameter to most gtk methods is the object, which is normally removed, and the remaining arguments are used as the object method arguments. Regards Alan
Or you can use the out-dated (yet still relevant) DUI ClassList: http://dui.sourceforge.net/ClassList.html
Jan 15 2008
prev sibling parent reply Jarrod <qwerty ytre.wq> writes:
On Mon, 14 Jan 2008 22:16:08 -0500, llee wrote:

 Does anyone know where I can find code samples that use gtkd? Or better
 yet. Can anyone describe the naming conventions used in gtkd, so that I
 can use existing gtk documentation. I.E. can anyone tell me how gtk
 function names map onto gtkd function names. Also, can anyone tell me
 how gtk function parameters map onto gtkd function parameters. Any help
 will be appreciated.
code with little to no change at all in the syntax. Perhaps you could get some good code examples googling around for gtk- sharp.
Jan 16 2008
parent llee <llee goucher.edu> writes:
Jarrod Wrote:

 On Mon, 14 Jan 2008 22:16:08 -0500, llee wrote:
 
 Does anyone know where I can find code samples that use gtkd? Or better
 yet. Can anyone describe the naming conventions used in gtkd, so that I
 can use existing gtk documentation. I.E. can anyone tell me how gtk
 function names map onto gtkd function names. Also, can anyone tell me
 how gtk function parameters map onto gtkd function parameters. Any help
 will be appreciated.
code with little to no change at all in the syntax. Perhaps you could get some good code examples googling around for gtk- sharp.
Thanks a lot. This should get me started.
Jan 20 2008