Prev | Current Page 883 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

However, size isn ??™ t everything, and if this drawback doesn ??™ t
pose an issue, then hxGtk is definitely the way to go for now, providing all manner of controls and
catering for most application GUI requirements.
Installing the Required Library
Each of the GUI libraries mentioned in this chapter can be installed using the haxelib tool. Simply open a
command window or terminal and type
> haxelib install nGui
or
> haxelib install hxGtk
This installs the library to the lib directory of your haXe installation. Then, to compile your applications
with a particular library, you simply add the necessary ??“ lib switch to your hxml file.
-main MyApp
-lib nGui
-neko app.n
482
Part III: Extending the Possibilities
The nGui Library
As previously mentioned, the nGui library is easy to pick up and run with, so this will be the library of
choice to get your feet wet. At the time of writing this book, the nGui library provides bindings to
around 30 percent of the controls available from the IUP library version 2.


Pages:
871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895