Scripting enables interoperability of JavaScript- and C++-code. More...
Classes | |
| class | ClassWrapper |
| Makes conversion between JS and C++ objects This only works with C++ classes that are already wrapped to JS code Example: ClassWrapper rectWrapper(context, "Nimble.Rectf"); Nimble::Rectf * rect = new Nimble::Rectf(); v8::Local<v8::Value> wrappedRect = widgetWrapper.wrap(rect); or in another direction: Nimble::Rectf * rect = wrappedRect.unwrap<Nimble::Rectf>(wrappedRect); if (rect) { ... More... | |
| class | JSContext |
| JavaScript entry point to Cornerstone applications. More... | |
| class | Lock |
| JavaScript context locker. More... | |
Scripting enables interoperability of JavaScript- and C++-code.