[nim-dev] Re: GTK 3.20 Nim wrapper

  • From: Stefan_Salewski <mail@xxxxxxxxxxxx>
  • To: nim-dev@xxxxxxxxxxxxx
  • Date: Thu, 21 Apr 2016 18:43:51 +0000

OK, it is available at github now:

https://github.com/ngtk3

No nimble install yet, I will try to read the nimble chapter of Dominiks book 
soom, so maybe it will become possible...

The toy chess is available, and a minimal test for each of the ten wrappers. 
Next task may be to add the missing C glib/gobject macros, so that all the C 
examples like application10 can be transfered directly to Nim.

For example, to try the toychess for Linux you may execute these commands:
```code 

cd
mkdir ngtk3
cd ngtk3

git clone https://github.com/ngtk3/common
git clone https://github.com/ngtk3/nim-atk
git clone https://github.com/ngtk3/nim-cairo
git clone https://github.com/ngtk3/nim-chess
git clone https://github.com/ngtk3/nim-gdk3
git clone https://github.com/ngtk3/nim-gdk_pixbuf
git clone https://github.com/ngtk3/nim-gio
git clone https://github.com/ngtk3/nim-glib
git clone https://github.com/ngtk3/nim-gobject
git clone https://github.com/ngtk3/nim-gtk3
git clone https://github.com/ngtk3/nim-gtksourceview
git clone https://github.com/ngtk3/nim-pango

cd nim-chess

ln -s ~/ngtk3/nim-gio/src/gio.nim
ln -s ~/ngtk3/nim-atk/src/atk.nim
ln -s ~/ngtk3/nim-glib/src/glib.nim
ln -s ~/ngtk3/nim-gdk3/src/gdk3.nim
ln -s ~/ngtk3/nim-gtk3/src/gtk3.nim
ln -s ~/ngtk3/nim-gobject/src/gobject.nim
ln -s ~/ngtk3/nim-cairo/src/cairo.nim
ln -s ~/ngtk3/nim-pango/src/pango.nim
ln -s ~/ngtk3/nim-pango/src/pango_cairo.nim
ln -s ~/ngtk3/nim-gdk_pixbuf/src/gdk_pixbuf.nim

nim c -d:release board.nim

/board

``` 
 

Other related posts: