QScriptValue REcmaFont::isLoaded (QScriptContext* context, QScriptEngine* engine) { //REcmaHelper::functionStart("REcmaFont::isLoaded", context, engine); //qDebug() << "ECMAScript WRAPPER: REcmaFont::isLoaded"; //QCoreApplication::processEvents(); QScriptValue result = engine->undefinedValue(); // public function: can be called from ECMA wrapper of ECMA shell: RFont* self = getSelf("isLoaded", context); //Q_ASSERT(self!=NULL); if (self==NULL) { return REcmaHelper::throwError("self is NULL", context); } if( context->argumentCount() == 0 ){ // prepare arguments: // end of arguments // call C++ function: // return type 'bool' bool cppResult = self->isLoaded(); // return type: bool // standard Type result = QScriptValue(cppResult); } else { return REcmaHelper::throwError("Wrong number/types of arguments for RFont.isLoaded().", context); } //REcmaHelper::functionEnd("REcmaFont::isLoaded", context, engine); return result; }