okteta
ScriptEngineInitializer Namespace Reference
Namespaces | |
Private | |
Functions | |
void | addFuctionsToScriptEngine (QScriptEngine *engine) |
QScriptEngine * | newEngine () |
Detailed Description
This class adds all functions to the scriptengine that are needed for the scripts.
For example this allows developers to write something like.
var teststructure = struct({
// now the members
member1 : uint8(),
member2 : array(uint16(),12),
member3 : bitfield("bool",1),
member4 : bitfield("unsigned", 12),
})
- Note
Function Documentation
void ScriptEngineInitializer::addFuctionsToScriptEngine | ( | QScriptEngine * | engine | ) |
add the necessary functions to the QScriptEngine
Definition at line 40 of file scriptengineinitializer.cpp.
QScriptEngine * ScriptEngineInitializer::newEngine | ( | ) |
- Returns
- a new QScriptEngine with the functions added to the global object
Definition at line 106 of file scriptengineinitializer.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.