node.js wrapper for wxWidgets
C++ JavaScript
Latest commit da16a8e Oct 10, 2012 @joeferner Update README.md
Permalink
Failed to load latest commit information.
deps working on windows compile Apr 20, 2012
examples running webview example further Apr 20, 2012
lib run script works Feb 13, 2012
src-dummy added more classes Feb 13, 2012
src-generated
src-templates
src working on windows compile Apr 20, 2012
.gitignore moved render template to mnm Feb 14, 2012
README.md Update README.md Oct 9, 2012
build-win32.js Create fsExplorer to simplift the large amount of path wrangling that… Feb 22, 2012
config-win32.json Make the builder capable of building wxWidgets from scratch. Config f… Feb 22, 2012
fsExplorer.js Fix and improve filesystem abstraction Feb 23, 2012
index.js shell of hello world Jan 12, 2012
mnm.js Update master Jul 7, 2012
package.json new version Apr 20, 2012
render-templates.js working on windows compile Apr 20, 2012
rungccxml.sh.patch moved to wxWidgets 2.9.3 Feb 8, 2012
strvararg.h.patch moved to wxWidgets 2.9.3 Feb 8, 2012
wxapi.xml webview working on windows Apr 20, 2012

README.md

Feel free to use this module but, I am no longer supporting it in favor of AppJs

wxNode

node.js wrapper for wxWidgets.

Installation Linux

  • Download and install wxWidgets 2.9.3.
$ npm install wxnode

Installation Windows

  • Download wxWidgets 2.9.3.
  • Download and install node from source (release, 64-bit) "vcbuild.bat release"
cd d:\dev\wxWidgets-2.9.3\build\msw
nmake -f makefile.vc BUILD=release UNICODE=1 RUNTIME_LIBS=static DEBUG_FLAG=0
set WXWIN=d:\dev\wxWidgets-2.9.3
set WXCFG=vc_lib\mswu
cd d:\dev\wxNode
node mnm.js build

Try an example

node examples/helloWorld.js
node examples/...

Quick Examples

var wx = require("wxnode");

var MyApp = wx.App.extend({
  onInit: function() {
    var location = new wx.Point(50, 50);
    var size = new wx.Size(450, 340);
    var frame = new MyFrame("Hello World", location, size);
    frame.show(true);
    this.setTopWindow(frame);
    return true;
  }
});

var MyFrame = wx.Frame.extend({
  init: function(title, pos, size) {
    this._super(null, -1, title, pos, size);

    this.EVT_CLOSE(this.onClose);
  },

  onClose: function(event) {
    process.exit();
  }
});

var app = new MyApp();
app.run();

Building wxWidgets linux

$ sudo apt-get install libwebkitgtk-dev
$ sudo ldconfig
$ ./configure --enable-webview --enable-webview-webkit && make
$ sudo make install

Creating wxapi.xml from wxWidgets

$ sudo apt-get install libwebkitgtk-dev
$ cd wxWidgets-2.9.3/docs/doxygen
$ ./regen.sh xml
$ cd ../..
$ ./configure --enable-webview --enable-webview-webkit
$ patch -p0 -i ~/wxNode/rungccxml.sh.patch
$ patch -p0 -i ~/wxNode/strvararg.h.patch
$ cd utils/ifacecheck/
$ ./rungccxml.sh
$ cp wxapi.xml ~/wxNode/wxapi.xml
$ cd ~/wxNode
$ rm wxapi.json
$ rm -rf build
$ ./render-templates.js && ./mnm.js build