#include #include #include #include #include #include #include #include "gen_qscriptvalueiterator.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" QScriptValueIterator* QScriptValueIterator_new(QScriptValue* value) { return new QScriptValueIterator(*value); } bool QScriptValueIterator_HasNext(const QScriptValueIterator* self) { return self->hasNext(); } void QScriptValueIterator_Next(QScriptValueIterator* self) { self->next(); } bool QScriptValueIterator_HasPrevious(const QScriptValueIterator* self) { return self->hasPrevious(); } void QScriptValueIterator_Previous(QScriptValueIterator* self) { self->previous(); } struct miqt_string QScriptValueIterator_Name(const QScriptValueIterator* self) { QString _ret = self->name(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } QScriptString* QScriptValueIterator_ScriptName(const QScriptValueIterator* self) { return new QScriptString(self->scriptName()); } QScriptValue* QScriptValueIterator_Value(const QScriptValueIterator* self) { return new QScriptValue(self->value()); } void QScriptValueIterator_SetValue(QScriptValueIterator* self, QScriptValue* value) { self->setValue(*value); } int QScriptValueIterator_Flags(const QScriptValueIterator* self) { QScriptValue::PropertyFlags _ret = self->flags(); return static_cast(_ret); } void QScriptValueIterator_Remove(QScriptValueIterator* self) { self->remove(); } void QScriptValueIterator_ToFront(QScriptValueIterator* self) { self->toFront(); } void QScriptValueIterator_ToBack(QScriptValueIterator* self) { self->toBack(); } void QScriptValueIterator_OperatorAssign(QScriptValueIterator* self, QScriptValue* value) { self->operator=(*value); } void QScriptValueIterator_Delete(QScriptValueIterator* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }