#include <ShapeUpAPI.h>
Inheritance diagram for SUJavaScript:
Public Member Functions | |
SUJavaScript () | |
SUJavaScript (SUHANDLE hJavaScript) | |
void | Run () |
void | CallFunction (const char *func_name) |
void | Close () |
var myState1 = 0;
var myLayer = null;
function doSomething()
{
myState++;
}
function init()
{
myLayer = workspace.addNewLayer('Point');
workspace.refresh();
}
// call to init() on file level, see SUJavaScript
init();
SUJavaScript::SUJavaScript | ( | ) | [inline] |
Default constructor.
SUJavaScript::SUJavaScript | ( | SUHANDLE | hJavaScript | ) | [inline] |
Constructor.
hJavaScript | = handle to a ShapeUp JavaScript. |
void SUJavaScript::Run | ( | ) | [inline] |
Executes a loaded JavaScript.
void SUJavaScript::CallFunction | ( | const char * | func_name | ) | [inline] |
Executes a named function in a loaded JavaScript.
func_name | = name of the function to execute. |
void SUJavaScript::Close | ( | ) | [inline] |
Closes a loaded JavaScript.