
// Auto generated

// include header:
//#include "qgesturewrapper.h"
//#include "header_cpp.h"

#include "qgesture_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QGesture*> QGesture_Wrapper::basecasters_QGesture;

// static functions implementation in singleton wrapper:

// Class: QGesture
// Function: tr
// Source: QObject
// Static: true
// Parameters: 3
// preceding Parameters: -1

QJSValue
QGesture_WrapperSingleton::tr
(

    const QJSValue&
    a1,
    const QJSValue&
    a2,
    const QJSValue&
    a3
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_char_ptr(handler, a2
                                  , true

                                 )

        && RJSHelper::is_int(handler, a3
                             , true

                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: sourceText (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp:  (char)


        // char pointer string:
        QByteArray a2_ba = RJSHelper::js2cpp_char_ptr(handler, a2).toLocal8Bit();
        const char* a2_cpp = a2_ba.constData();

        // convert js parameter to cpp:  (int)

        int a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = -1;
        }
        else {
            a3_cpp = RJSHelper::js2cpp_int(handler, a3);
        }


        // call function:

        // static member function:
        // call base class static function:
        QString res =

            // call static member function:
            QObject::tr(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for tr";
    handler.trace();
    return QJSValue();

}

void QGesture_Wrapper::init(RJSApi& handler) {

    //qmlRegisterType<QGesture_Wrapper>("org.qcad", 1, 0, "QGesture_Wrapper");
    qmlRegisterInterface<QGesture_Wrapper>("QGesture_Wrapper", 1);


    QJSEngine* engine = handler.getEngine();


    // make type scriptable for JS files:
    QJSValue global = engine->globalObject();
    RJSType_QGesture* t = new RJSType_QGesture();
    global.setProperty("RJSType_QGesture", engine->newQObject(t));

    // initialize ID for this type:
    RJSType_QGesture::getIdStatic();



    // wrapper:
    QJSValue mo = engine->newQMetaObject(&QGesture_Wrapper::staticMetaObject);
    engine->globalObject().setProperty("QGesture_Wrapper", mo);



    // JS base class:
    //QJSValue mob = engine->newQMetaObject(&QGesture_BaseJs::staticMetaObject);
    //engine->globalObject().setProperty("QGesture_BaseJs", mob);

    // singleton wrapper:
    QJSValue mos = engine->newQMetaObject(&QGesture_WrapperSingleton::staticMetaObject);
    engine->globalObject().setProperty("QGesture_WrapperSingleton", mos);

    // create instance of singleton wrapper for static functions:
    QGesture_WrapperSingleton * s = new QGesture_WrapperSingleton(handler);
    engine->globalObject().setProperty("QGesture_WrapperSingletonInstance", engine->newQObject(s));
    QJSEngine::setObjectOwnership(s, QJSEngine::CppOwnership);

    QString fileName = ":generator/js/QGesture.js";
    QFile scriptFile(fileName);
    if (!scriptFile.open(QIODevice::ReadOnly)) {
        qWarning() << "JS script wrapper file not found:" << fileName;
        return;
    }
    QTextStream stream(&scriptFile);
    QString contents = stream.readAll();
    scriptFile.close();

    qDebug() << "Evaluating file: " << fileName;
    QJSValue result = engine->evaluate(contents, fileName);
    if (result.isError()) {
        qWarning()
                << "Uncaught exception at line"
                << result.property("lineNumber").toInt()
                << ":" << result.toString();
    }
}

/*
// special constructor used as prototype:
QGesture_Wrapper::QGesture_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QGesture_Wrapper");
        setEngine(e);

        // signal forwarding:
        //initConnections();
      }

*/


// special constructor to wrap existing object:
QGesture_Wrapper::QGesture_Wrapper(RJSApi& h, QGesture* o, bool wrappedCreated) : RJSWrapperObj(h), wrapped(o), wrappedCreated(wrappedCreated) {
    //RDebug::incCounter(QString("QGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QGesture_Wrapper"));
    //setObjectName("QGesture_Wrapper");
    //setHandler(h);

    // signal forwarding:
    initConnections();
}


// destructor:
QGesture_Wrapper::~QGesture_Wrapper() {
    //RDebug::decCounter(QString("QGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::decCounter(QString("QGesture_Wrapper"));

    //qDebug() << "QGesture_Wrapper::~QGesture_Wrapper";

    // tell script handler that this wrapper no longer exists:
    handler.unregisterWrapper(*this);


    if (wrappedCreated) {

        // never delete wrapped object (non-copyable, CPP ownership or private destructor)
        //qDebug() << "NOT deleting instance of QGesture";

    }

}

// initialization of signal forwarding

void QGesture_Wrapper::initConnections() {

    //setObjectName("QGesture_Wrapper");

    // tell script handler that this wrapper needs to be deleted if the engine is deleted:
    handler.registerWrapper(*this);


    // wrapped object is a QObject and not a wrapper for a null pointer:
    // wrapper is managed by the QObject as child:
    if (hasWrapped()) {
        QJSEngine::setObjectOwnership(this, QJSEngine::CppOwnership);
    }


    if (hasWrapped()) {

        // set parent of wrapper to wrapped:
        // wrapper can be looked up for object:
        QVariant vThis = QVariant::fromValue(this);
        getWrapped()->setProperty("__wrapper__",  vThis);

        // make sure wrapper is deleted when object is deleted:
        // make sure wrapper stays alive as long as the wrapped stays alive::
        QObject::setParent(getWrapped());

        // set up signal forwarding:

        /*
        connect(
          getWrapped(),
          SIGNAL(destroyed(QObject*)),
          &handler,
          SLOT(slotDestroyed(QObject*))
        );
        */

    }
}


// constructors:

// Class: QGesture
// Function:
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1
QGesture_Wrapper::QGesture_Wrapper

(

    // RJSApi:
    QObject* h
    ,
    const QJSValue&
    a1
)

    : RJSWrapperObj(*(RJSApi*)h)

{

    //RDebug::incCounter(QString("QGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QGesture_Wrapper"));

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = nullptr;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);
        }


        // call function:

        // construct wrapper:


        wrapped = new QGesture(
            a1_cpp

        );
        wrappedCreated = true;


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // no constructor without arguments defined
    // allow constructor for prototype objects without args:
    if (
        a1.isUndefined()

    ) {
        wrapped = nullptr;
        wrappedCreated = false;
        return;
    }


    qWarning() << "no matching constructor variant found for QGesture";
    wrapped = nullptr;
    wrappedCreated = false;
    handler.trace();

}


// non-static functions:

// Class: QGesture
// Function: objectName
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::objectName
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        QString res =

            w->objectName(

            );

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for objectName";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: setObjectName
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::setObjectName
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->setObjectName(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setObjectName";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: isWidgetType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::isWidgetType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        bool res =

            w->isWidgetType(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWidgetType";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: isWindowType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::isWindowType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        bool res =

            w->isWindowType(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWindowType";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: signalsBlocked
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::signalsBlocked
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        bool res =

            w->signalsBlocked(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for signalsBlocked";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: blockSignals
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::blockSignals
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: b (bool)

        bool a1_cpp;

        a1_cpp = RJSHelper::js2cpp_bool(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        bool res =

            w->blockSignals(
                a1_cpp

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for blockSignals";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: findChild
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::findChild
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                              , true

                             )

        && RJSHelper::is_Qt_FindChildOptions(handler, a2
                , true

                                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: aName (QString)

        QString a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = QString();
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QString(handler, a1);
        }

        // convert js parameter to cpp: options (Qt::FindChildOptions)

        Qt::FindChildOptions a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = Qt::FindChildrenRecursively;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_Qt_FindChildOptions(handler, a2);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        QObject* res =

            w->findChild<QObject*>(
                a1_cpp
                , a2_cpp

            );

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for findChild";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: children
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::children
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        const QObjectList* res =
            &
            w->children(

            );

        // return type: const QObjectList&

        return RJSHelper::cpp2js_QObjectList(
                   handler,
                   // non-copyable: false
                   // return type is reference, type is copyable:
                   // convert pointer back to reference:
                   *res

               );

    }

    qWarning() << "no matching function variant found for children";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: setParent
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::setParent
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->setParent(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setParent";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: installEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::installEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: filterObj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->installEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for installEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: removeEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::removeEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: obj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->removeEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for removeEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: dumpObjectTree
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::dumpObjectTree
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->dumpObjectTree(

        );

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->dumpObjectTree(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectTree";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: dumpObjectInfo
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::dumpObjectInfo
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->dumpObjectInfo(

        );

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->dumpObjectInfo(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectInfo";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: setProperty
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::setProperty
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_QVariant(handler, a2
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp: value (QVariant)

        QVariant a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QVariant(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        bool res =

            w->setProperty(
                a1_cpp
                , a2_cpp

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for setProperty";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: property
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::property
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        QVariant res =

            w->property(
                a1_cpp

            );

        // return type: QVariant

        return RJSHelper::cpp2js_QVariant(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for property";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: dynamicPropertyNames
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::dynamicPropertyNames
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        QList<QByteArray> res =

            w->dynamicPropertyNames(

            );

        // return type: QList<QByteArray>

        return RJSHelper::cpp2js_QList_QByteArray(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for dynamicPropertyNames";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: parent
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::parent
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        QObject* res =

            w->parent(

            );

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for parent";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: deleteLater
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::deleteLater
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->deleteLater(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for deleteLater";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: gestureType
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::gestureType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        Qt::GestureType res =

            w->gestureType(

            );

        // return type: Qt::GestureType

        return RJSHelper::cpp2js_Qt_GestureType(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureType";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: state
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::state
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        Qt::GestureState res =

            w->state(

            );

        // return type: Qt::GestureState

        return RJSHelper::cpp2js_Qt_GestureState(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for state";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: hotSpot
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::hotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        QPointF res =

            w->hotSpot(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: setHotSpot
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::setHotSpot
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->setHotSpot(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: hasHotSpot
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::hasHotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        bool res =

            w->hasHotSpot(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hasHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: unsetHotSpot
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::unsetHotSpot
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->unsetHotSpot(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for unsetHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: setGestureCancelPolicy
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::setGestureCancelPolicy
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QGesture_GestureCancelPolicy(handler, a1
                                                  )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: policy (QGesture::GestureCancelPolicy)

        QGesture::GestureCancelPolicy a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QGesture_GestureCancelPolicy(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();

        w->setGestureCancelPolicy(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setGestureCancelPolicy";
    handler.trace();
    return QJSValue();

}

// Class: QGesture
// Function: gestureCancelPolicy
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QGesture_Wrapper::gestureCancelPolicy
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QGesture* w = getWrapped();
        QGesture::GestureCancelPolicy res =

            w->gestureCancelPolicy(

            );

        // return type: QGesture::GestureCancelPolicy

        return RJSHelper::cpp2js_QGesture_GestureCancelPolicy(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureCancelPolicy";
    handler.trace();
    return QJSValue();

}


// member functions for static properties, forward to static function



// protected overwritten functions / events and their public invokable counterparts:

#include "qgesture_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QPanGesture*> QPanGesture_Wrapper::basecasters_QPanGesture;

// static functions implementation in singleton wrapper:

void QPanGesture_Wrapper::init(RJSApi& handler) {

    //qmlRegisterType<QPanGesture_Wrapper>("org.qcad", 1, 0, "QPanGesture_Wrapper");
    qmlRegisterInterface<QPanGesture_Wrapper>("QPanGesture_Wrapper", 1);


    QJSEngine* engine = handler.getEngine();


    // make type scriptable for JS files:
    QJSValue global = engine->globalObject();
    RJSType_QPanGesture* t = new RJSType_QPanGesture();
    global.setProperty("RJSType_QPanGesture", engine->newQObject(t));

    // initialize ID for this type:
    RJSType_QPanGesture::getIdStatic();



    // wrapper:
    QJSValue mo = engine->newQMetaObject(&QPanGesture_Wrapper::staticMetaObject);
    engine->globalObject().setProperty("QPanGesture_Wrapper", mo);



    // JS base class:
    //QJSValue mob = engine->newQMetaObject(&QPanGesture_BaseJs::staticMetaObject);
    //engine->globalObject().setProperty("QPanGesture_BaseJs", mob);

    QString fileName = ":generator/js/QPanGesture.js";
    QFile scriptFile(fileName);
    if (!scriptFile.open(QIODevice::ReadOnly)) {
        qWarning() << "JS script wrapper file not found:" << fileName;
        return;
    }
    QTextStream stream(&scriptFile);
    QString contents = stream.readAll();
    scriptFile.close();

    qDebug() << "Evaluating file: " << fileName;
    QJSValue result = engine->evaluate(contents, fileName);
    if (result.isError()) {
        qWarning()
                << "Uncaught exception at line"
                << result.property("lineNumber").toInt()
                << ":" << result.toString();
    }
}

/*
// special constructor used as prototype:
QPanGesture_Wrapper::QPanGesture_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QPanGesture_Wrapper");
        setEngine(e);

        // signal forwarding:
        //initConnections();
      }

*/


// special constructor to wrap existing object:
QPanGesture_Wrapper::QPanGesture_Wrapper(RJSApi& h, QPanGesture* o, bool wrappedCreated) : RJSWrapperObj(h), wrapped(o), wrappedCreated(wrappedCreated) {
    //RDebug::incCounter(QString("QPanGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QPanGesture_Wrapper"));
    //setObjectName("QPanGesture_Wrapper");
    //setHandler(h);

    // signal forwarding:
    initConnections();
}


// destructor:
QPanGesture_Wrapper::~QPanGesture_Wrapper() {
    //RDebug::decCounter(QString("QPanGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::decCounter(QString("QPanGesture_Wrapper"));

    //qDebug() << "QPanGesture_Wrapper::~QPanGesture_Wrapper";

    // tell script handler that this wrapper no longer exists:
    handler.unregisterWrapper(*this);


    if (wrappedCreated) {

        // never delete wrapped object (non-copyable, CPP ownership or private destructor)
        //qDebug() << "NOT deleting instance of QPanGesture";

    }

}

// initialization of signal forwarding

void QPanGesture_Wrapper::initConnections() {

    //setObjectName("QPanGesture_Wrapper");

    // tell script handler that this wrapper needs to be deleted if the engine is deleted:
    handler.registerWrapper(*this);


    // wrapped object is not a QObject:
    // wrapper is managed by script engine:
    //QJSEngine::setObjectOwnership(this, QJSEngine::CppOwnership);


    if (hasWrapped()) {

        // set up signal forwarding:

    }
}


// constructors:

// Class: QPanGesture
// Function:
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1
QPanGesture_Wrapper::QPanGesture_Wrapper

(

    // RJSApi:
    QObject* h
    ,
    const QJSValue&
    a1
)

    : RJSWrapperObj(*(RJSApi*)h)

{

    //RDebug::incCounter(QString("QPanGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QPanGesture_Wrapper"));

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = nullptr;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);
        }


        // call function:

        // construct wrapper:


        wrapped = new QPanGesture(
            a1_cpp

        );
        wrappedCreated = true;


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // no constructor without arguments defined
    // allow constructor for prototype objects without args:
    if (
        a1.isUndefined()

    ) {
        wrapped = nullptr;
        wrappedCreated = false;
        return;
    }


    qWarning() << "no matching constructor variant found for QPanGesture";
    wrapped = nullptr;
    wrappedCreated = false;
    handler.trace();

}


// non-static functions:

// Class: QPanGesture
// Function: gestureType
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::gestureType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        Qt::GestureType res =

            w->gestureType(

            );

        // return type: Qt::GestureType

        return RJSHelper::cpp2js_Qt_GestureType(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureType";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: state
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::state
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        Qt::GestureState res =

            w->state(

            );

        // return type: Qt::GestureState

        return RJSHelper::cpp2js_Qt_GestureState(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for state";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: hotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::hotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        QPointF res =

            w->hotSpot(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: setHotSpot
// Source: QGesture
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::setHotSpot
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();

        w->setHotSpot(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: hasHotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::hasHotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        bool res =

            w->hasHotSpot(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hasHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: unsetHotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::unsetHotSpot
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();

        w->unsetHotSpot(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for unsetHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: setGestureCancelPolicy
// Source: QGesture
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::setGestureCancelPolicy
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QGesture_GestureCancelPolicy(handler, a1
                                                  )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: policy (QGesture::GestureCancelPolicy)

        QGesture::GestureCancelPolicy a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QGesture_GestureCancelPolicy(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();

        w->setGestureCancelPolicy(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setGestureCancelPolicy";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: gestureCancelPolicy
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::gestureCancelPolicy
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        QGesture::GestureCancelPolicy res =

            w->gestureCancelPolicy(

            );

        // return type: QGesture::GestureCancelPolicy

        return RJSHelper::cpp2js_QGesture_GestureCancelPolicy(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureCancelPolicy";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: lastOffset
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::lastOffset
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        QPointF res =

            w->lastOffset(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for lastOffset";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: offset
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::offset
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        QPointF res =

            w->offset(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for offset";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: delta
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::delta
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        QPointF res =

            w->delta(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for delta";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: acceleration
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::acceleration
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();
        qreal res =

            w->acceleration(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for acceleration";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: setLastOffset
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::setLastOffset
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();

        w->setLastOffset(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setLastOffset";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: setOffset
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::setOffset
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();

        w->setOffset(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setOffset";
    handler.trace();
    return QJSValue();

}

// Class: QPanGesture
// Function: setAcceleration
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPanGesture_Wrapper::setAcceleration
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPanGesture* w = getWrapped();

        w->setAcceleration(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setAcceleration";
    handler.trace();
    return QJSValue();

}


// member functions for static properties, forward to static function



// protected overwritten functions / events and their public invokable counterparts:

#include "qgesture_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QPinchGesture*> QPinchGesture_Wrapper::basecasters_QPinchGesture;

// static functions implementation in singleton wrapper:

// Class: QPinchGesture
// Function: tr
// Source: QObject
// Static: true
// Parameters: 3
// preceding Parameters: -1

QJSValue
QPinchGesture_WrapperSingleton::tr
(

    const QJSValue&
    a1,
    const QJSValue&
    a2,
    const QJSValue&
    a3
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_char_ptr(handler, a2
                                  , true

                                 )

        && RJSHelper::is_int(handler, a3
                             , true

                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: sourceText (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp:  (char)


        // char pointer string:
        QByteArray a2_ba = RJSHelper::js2cpp_char_ptr(handler, a2).toLocal8Bit();
        const char* a2_cpp = a2_ba.constData();

        // convert js parameter to cpp:  (int)

        int a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = -1;
        }
        else {
            a3_cpp = RJSHelper::js2cpp_int(handler, a3);
        }


        // call function:

        // static member function:
        // call base class static function:
        QString res =

            // call static member function:
            QObject::tr(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for tr";
    handler.trace();
    return QJSValue();

}

void QPinchGesture_Wrapper::init(RJSApi& handler) {

    //qmlRegisterType<QPinchGesture_Wrapper>("org.qcad", 1, 0, "QPinchGesture_Wrapper");
    qmlRegisterInterface<QPinchGesture_Wrapper>("QPinchGesture_Wrapper", 1);


    QJSEngine* engine = handler.getEngine();


    // make type scriptable for JS files:
    QJSValue global = engine->globalObject();
    RJSType_QPinchGesture* t = new RJSType_QPinchGesture();
    global.setProperty("RJSType_QPinchGesture", engine->newQObject(t));

    // initialize ID for this type:
    RJSType_QPinchGesture::getIdStatic();



    // wrapper:
    QJSValue mo = engine->newQMetaObject(&QPinchGesture_Wrapper::staticMetaObject);
    engine->globalObject().setProperty("QPinchGesture_Wrapper", mo);



    // JS base class:
    //QJSValue mob = engine->newQMetaObject(&QPinchGesture_BaseJs::staticMetaObject);
    //engine->globalObject().setProperty("QPinchGesture_BaseJs", mob);

    // singleton wrapper:
    QJSValue mos = engine->newQMetaObject(&QPinchGesture_WrapperSingleton::staticMetaObject);
    engine->globalObject().setProperty("QPinchGesture_WrapperSingleton", mos);

    // create instance of singleton wrapper for static functions:
    QPinchGesture_WrapperSingleton * s = new QPinchGesture_WrapperSingleton(handler);
    engine->globalObject().setProperty("QPinchGesture_WrapperSingletonInstance", engine->newQObject(s));
    QJSEngine::setObjectOwnership(s, QJSEngine::CppOwnership);

    QString fileName = ":generator/js/QPinchGesture.js";
    QFile scriptFile(fileName);
    if (!scriptFile.open(QIODevice::ReadOnly)) {
        qWarning() << "JS script wrapper file not found:" << fileName;
        return;
    }
    QTextStream stream(&scriptFile);
    QString contents = stream.readAll();
    scriptFile.close();

    qDebug() << "Evaluating file: " << fileName;
    QJSValue result = engine->evaluate(contents, fileName);
    if (result.isError()) {
        qWarning()
                << "Uncaught exception at line"
                << result.property("lineNumber").toInt()
                << ":" << result.toString();
    }
}

/*
// special constructor used as prototype:
QPinchGesture_Wrapper::QPinchGesture_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QPinchGesture_Wrapper");
        setEngine(e);

        // signal forwarding:
        //initConnections();
      }

*/


// special constructor to wrap existing object:
QPinchGesture_Wrapper::QPinchGesture_Wrapper(RJSApi& h, QPinchGesture* o, bool wrappedCreated) : RJSWrapperObj(h), wrapped(o), wrappedCreated(wrappedCreated) {
    //RDebug::incCounter(QString("QPinchGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QPinchGesture_Wrapper"));
    //setObjectName("QPinchGesture_Wrapper");
    //setHandler(h);

    // signal forwarding:
    initConnections();
}


// destructor:
QPinchGesture_Wrapper::~QPinchGesture_Wrapper() {
    //RDebug::decCounter(QString("QPinchGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::decCounter(QString("QPinchGesture_Wrapper"));

    //qDebug() << "QPinchGesture_Wrapper::~QPinchGesture_Wrapper";

    // tell script handler that this wrapper no longer exists:
    handler.unregisterWrapper(*this);


    if (wrappedCreated) {

        // never delete wrapped object (non-copyable, CPP ownership or private destructor)
        //qDebug() << "NOT deleting instance of QPinchGesture";

    }

}

// initialization of signal forwarding

void QPinchGesture_Wrapper::initConnections() {

    //setObjectName("QPinchGesture_Wrapper");

    // tell script handler that this wrapper needs to be deleted if the engine is deleted:
    handler.registerWrapper(*this);


    // wrapped object is a QObject and not a wrapper for a null pointer:
    // wrapper is managed by the QObject as child:
    if (hasWrapped()) {
        QJSEngine::setObjectOwnership(this, QJSEngine::CppOwnership);
    }


    if (hasWrapped()) {

        // set parent of wrapper to wrapped:
        // wrapper can be looked up for object:
        QVariant vThis = QVariant::fromValue(this);
        getWrapped()->setProperty("__wrapper__",  vThis);

        // make sure wrapper is deleted when object is deleted:
        // make sure wrapper stays alive as long as the wrapped stays alive::
        QObject::setParent(getWrapped());

        // set up signal forwarding:

        /*
        connect(
          getWrapped(),
          SIGNAL(destroyed(QObject*)),
          &handler,
          SLOT(slotDestroyed(QObject*))
        );
        */

    }
}


// constructors:

// Class: QPinchGesture
// Function:
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1
QPinchGesture_Wrapper::QPinchGesture_Wrapper

(

    // RJSApi:
    QObject* h
    ,
    const QJSValue&
    a1
)

    : RJSWrapperObj(*(RJSApi*)h)

{

    //RDebug::incCounter(QString("QPinchGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QPinchGesture_Wrapper"));

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = nullptr;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);
        }


        // call function:

        // construct wrapper:


        wrapped = new QPinchGesture(
            a1_cpp

        );
        wrappedCreated = true;


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // no constructor without arguments defined
    // allow constructor for prototype objects without args:
    if (
        a1.isUndefined()

    ) {
        wrapped = nullptr;
        wrappedCreated = false;
        return;
    }


    qWarning() << "no matching constructor variant found for QPinchGesture";
    wrapped = nullptr;
    wrappedCreated = false;
    handler.trace();

}


// non-static functions:

// Class: QPinchGesture
// Function: objectName
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::objectName
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QString res =

            w->objectName(

            );

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for objectName";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setObjectName
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setObjectName
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setObjectName(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setObjectName";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: isWidgetType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::isWidgetType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        bool res =

            w->isWidgetType(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWidgetType";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: isWindowType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::isWindowType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        bool res =

            w->isWindowType(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWindowType";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: signalsBlocked
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::signalsBlocked
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        bool res =

            w->signalsBlocked(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for signalsBlocked";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: blockSignals
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::blockSignals
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: b (bool)

        bool a1_cpp;

        a1_cpp = RJSHelper::js2cpp_bool(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        bool res =

            w->blockSignals(
                a1_cpp

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for blockSignals";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: findChild
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::findChild
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                              , true

                             )

        && RJSHelper::is_Qt_FindChildOptions(handler, a2
                , true

                                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: aName (QString)

        QString a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = QString();
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QString(handler, a1);
        }

        // convert js parameter to cpp: options (Qt::FindChildOptions)

        Qt::FindChildOptions a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = Qt::FindChildrenRecursively;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_Qt_FindChildOptions(handler, a2);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QObject* res =

            w->findChild<QObject*>(
                a1_cpp
                , a2_cpp

            );

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for findChild";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: children
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::children
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        const QObjectList* res =
            &
            w->children(

            );

        // return type: const QObjectList&

        return RJSHelper::cpp2js_QObjectList(
                   handler,
                   // non-copyable: false
                   // return type is reference, type is copyable:
                   // convert pointer back to reference:
                   *res

               );

    }

    qWarning() << "no matching function variant found for children";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setParent
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setParent
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setParent(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setParent";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: installEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::installEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: filterObj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->installEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for installEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: removeEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::removeEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: obj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->removeEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for removeEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: dumpObjectTree
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::dumpObjectTree
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->dumpObjectTree(

        );

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->dumpObjectTree(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectTree";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: dumpObjectInfo
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::dumpObjectInfo
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->dumpObjectInfo(

        );

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->dumpObjectInfo(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectInfo";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setProperty
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setProperty
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_QVariant(handler, a2
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp: value (QVariant)

        QVariant a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QVariant(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        bool res =

            w->setProperty(
                a1_cpp
                , a2_cpp

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for setProperty";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: property
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::property
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QVariant res =

            w->property(
                a1_cpp

            );

        // return type: QVariant

        return RJSHelper::cpp2js_QVariant(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for property";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: dynamicPropertyNames
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::dynamicPropertyNames
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QList<QByteArray> res =

            w->dynamicPropertyNames(

            );

        // return type: QList<QByteArray>

        return RJSHelper::cpp2js_QList_QByteArray(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for dynamicPropertyNames";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: parent
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::parent
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QObject* res =

            w->parent(

            );

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for parent";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: deleteLater
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::deleteLater
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->deleteLater(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for deleteLater";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: gestureType
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::gestureType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        Qt::GestureType res =

            w->gestureType(

            );

        // return type: Qt::GestureType

        return RJSHelper::cpp2js_Qt_GestureType(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureType";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: state
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::state
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        Qt::GestureState res =

            w->state(

            );

        // return type: Qt::GestureState

        return RJSHelper::cpp2js_Qt_GestureState(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for state";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: hotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::hotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QPointF res =

            w->hotSpot(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setHotSpot
// Source: QGesture
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setHotSpot
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setHotSpot(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: hasHotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::hasHotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        bool res =

            w->hasHotSpot(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hasHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: unsetHotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::unsetHotSpot
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->unsetHotSpot(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for unsetHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setGestureCancelPolicy
// Source: QGesture
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setGestureCancelPolicy
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QGesture_GestureCancelPolicy(handler, a1
                                                  )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: policy (QGesture::GestureCancelPolicy)

        QGesture::GestureCancelPolicy a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QGesture_GestureCancelPolicy(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setGestureCancelPolicy(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setGestureCancelPolicy";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: gestureCancelPolicy
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::gestureCancelPolicy
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QGesture::GestureCancelPolicy res =

            w->gestureCancelPolicy(

            );

        // return type: QGesture::GestureCancelPolicy

        return RJSHelper::cpp2js_QGesture_GestureCancelPolicy(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureCancelPolicy";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: totalChangeFlags
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::totalChangeFlags
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QPinchGesture::ChangeFlags res =

            w->totalChangeFlags(

            );

        // return type: QPinchGesture::ChangeFlags

        return RJSHelper::cpp2js_QPinchGesture_ChangeFlags(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for totalChangeFlags";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setTotalChangeFlags
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setTotalChangeFlags
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPinchGesture_ChangeFlags(handler, a1
                                               )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPinchGesture::ChangeFlags)

        QPinchGesture::ChangeFlags a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPinchGesture_ChangeFlags(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setTotalChangeFlags(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setTotalChangeFlags";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: changeFlags
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::changeFlags
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QPinchGesture::ChangeFlags res =

            w->changeFlags(

            );

        // return type: QPinchGesture::ChangeFlags

        return RJSHelper::cpp2js_QPinchGesture_ChangeFlags(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for changeFlags";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setChangeFlags
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setChangeFlags
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPinchGesture_ChangeFlags(handler, a1
                                               )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPinchGesture::ChangeFlags)

        QPinchGesture::ChangeFlags a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPinchGesture_ChangeFlags(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setChangeFlags(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setChangeFlags";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: startCenterPoint
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::startCenterPoint
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QPointF res =

            w->startCenterPoint(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for startCenterPoint";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: lastCenterPoint
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::lastCenterPoint
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QPointF res =

            w->lastCenterPoint(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for lastCenterPoint";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: centerPoint
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::centerPoint
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        QPointF res =

            w->centerPoint(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for centerPoint";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setStartCenterPoint
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setStartCenterPoint
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setStartCenterPoint(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setStartCenterPoint";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setLastCenterPoint
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setLastCenterPoint
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setLastCenterPoint(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setLastCenterPoint";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setCenterPoint
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setCenterPoint
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setCenterPoint(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setCenterPoint";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: totalScaleFactor
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::totalScaleFactor
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        qreal res =

            w->totalScaleFactor(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for totalScaleFactor";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: lastScaleFactor
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::lastScaleFactor
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        qreal res =

            w->lastScaleFactor(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for lastScaleFactor";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: scaleFactor
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::scaleFactor
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        qreal res =

            w->scaleFactor(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for scaleFactor";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setTotalScaleFactor
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setTotalScaleFactor
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setTotalScaleFactor(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setTotalScaleFactor";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setLastScaleFactor
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setLastScaleFactor
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setLastScaleFactor(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setLastScaleFactor";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setScaleFactor
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setScaleFactor
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setScaleFactor(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setScaleFactor";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: totalRotationAngle
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::totalRotationAngle
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        qreal res =

            w->totalRotationAngle(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for totalRotationAngle";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: lastRotationAngle
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::lastRotationAngle
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        qreal res =

            w->lastRotationAngle(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for lastRotationAngle";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: rotationAngle
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::rotationAngle
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();
        qreal res =

            w->rotationAngle(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for rotationAngle";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setTotalRotationAngle
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setTotalRotationAngle
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setTotalRotationAngle(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setTotalRotationAngle";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setLastRotationAngle
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setLastRotationAngle
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setLastRotationAngle(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setLastRotationAngle";
    handler.trace();
    return QJSValue();

}

// Class: QPinchGesture
// Function: setRotationAngle
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPinchGesture_Wrapper::setRotationAngle
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QPinchGesture* w = getWrapped();

        w->setRotationAngle(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setRotationAngle";
    handler.trace();
    return QJSValue();

}


// member functions for static properties, forward to static function



// protected overwritten functions / events and their public invokable counterparts:

#include "qgesture_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QSwipeGesture*> QSwipeGesture_Wrapper::basecasters_QSwipeGesture;

// static functions implementation in singleton wrapper:

void QSwipeGesture_Wrapper::init(RJSApi& handler) {

    //qmlRegisterType<QSwipeGesture_Wrapper>("org.qcad", 1, 0, "QSwipeGesture_Wrapper");
    qmlRegisterInterface<QSwipeGesture_Wrapper>("QSwipeGesture_Wrapper", 1);


    QJSEngine* engine = handler.getEngine();


    // make type scriptable for JS files:
    QJSValue global = engine->globalObject();
    RJSType_QSwipeGesture* t = new RJSType_QSwipeGesture();
    global.setProperty("RJSType_QSwipeGesture", engine->newQObject(t));

    // initialize ID for this type:
    RJSType_QSwipeGesture::getIdStatic();



    // wrapper:
    QJSValue mo = engine->newQMetaObject(&QSwipeGesture_Wrapper::staticMetaObject);
    engine->globalObject().setProperty("QSwipeGesture_Wrapper", mo);



    // JS base class:
    //QJSValue mob = engine->newQMetaObject(&QSwipeGesture_BaseJs::staticMetaObject);
    //engine->globalObject().setProperty("QSwipeGesture_BaseJs", mob);

    QString fileName = ":generator/js/QSwipeGesture.js";
    QFile scriptFile(fileName);
    if (!scriptFile.open(QIODevice::ReadOnly)) {
        qWarning() << "JS script wrapper file not found:" << fileName;
        return;
    }
    QTextStream stream(&scriptFile);
    QString contents = stream.readAll();
    scriptFile.close();

    qDebug() << "Evaluating file: " << fileName;
    QJSValue result = engine->evaluate(contents, fileName);
    if (result.isError()) {
        qWarning()
                << "Uncaught exception at line"
                << result.property("lineNumber").toInt()
                << ":" << result.toString();
    }
}

/*
// special constructor used as prototype:
QSwipeGesture_Wrapper::QSwipeGesture_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QSwipeGesture_Wrapper");
        setEngine(e);

        // signal forwarding:
        //initConnections();
      }

*/


// special constructor to wrap existing object:
QSwipeGesture_Wrapper::QSwipeGesture_Wrapper(RJSApi& h, QSwipeGesture* o, bool wrappedCreated) : RJSWrapperObj(h), wrapped(o), wrappedCreated(wrappedCreated) {
    //RDebug::incCounter(QString("QSwipeGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QSwipeGesture_Wrapper"));
    //setObjectName("QSwipeGesture_Wrapper");
    //setHandler(h);

    // signal forwarding:
    initConnections();
}


// destructor:
QSwipeGesture_Wrapper::~QSwipeGesture_Wrapper() {
    //RDebug::decCounter(QString("QSwipeGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::decCounter(QString("QSwipeGesture_Wrapper"));

    //qDebug() << "QSwipeGesture_Wrapper::~QSwipeGesture_Wrapper";

    // tell script handler that this wrapper no longer exists:
    handler.unregisterWrapper(*this);


    if (wrappedCreated) {

        // never delete wrapped object (non-copyable, CPP ownership or private destructor)
        //qDebug() << "NOT deleting instance of QSwipeGesture";

    }

}

// initialization of signal forwarding

void QSwipeGesture_Wrapper::initConnections() {

    //setObjectName("QSwipeGesture_Wrapper");

    // tell script handler that this wrapper needs to be deleted if the engine is deleted:
    handler.registerWrapper(*this);


    // wrapped object is not a QObject:
    // wrapper is managed by script engine:
    //QJSEngine::setObjectOwnership(this, QJSEngine::CppOwnership);


    if (hasWrapped()) {

        // set up signal forwarding:

    }
}


// constructors:

// Class: QSwipeGesture
// Function:
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1
QSwipeGesture_Wrapper::QSwipeGesture_Wrapper

(

    // RJSApi:
    QObject* h
    ,
    const QJSValue&
    a1
)

    : RJSWrapperObj(*(RJSApi*)h)

{

    //RDebug::incCounter(QString("QSwipeGesture_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QSwipeGesture_Wrapper"));

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = nullptr;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);
        }


        // call function:

        // construct wrapper:


        wrapped = new QSwipeGesture(
            a1_cpp

        );
        wrappedCreated = true;


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // no constructor without arguments defined
    // allow constructor for prototype objects without args:
    if (
        a1.isUndefined()

    ) {
        wrapped = nullptr;
        wrappedCreated = false;
        return;
    }


    qWarning() << "no matching constructor variant found for QSwipeGesture";
    wrapped = nullptr;
    wrappedCreated = false;
    handler.trace();

}


// non-static functions:

// Class: QSwipeGesture
// Function: gestureType
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::gestureType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        Qt::GestureType res =

            w->gestureType(

            );

        // return type: Qt::GestureType

        return RJSHelper::cpp2js_Qt_GestureType(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureType";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: state
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::state
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        Qt::GestureState res =

            w->state(

            );

        // return type: Qt::GestureState

        return RJSHelper::cpp2js_Qt_GestureState(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for state";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: hotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::hotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        QPointF res =

            w->hotSpot(

            );

        // return type: QPointF

        return RJSHelper::cpp2js_QPointF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: setHotSpot
// Source: QGesture
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::setHotSpot
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPointF(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (QPointF)

        QPointF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPointF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();

        w->setHotSpot(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: hasHotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::hasHotSpot
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        bool res =

            w->hasHotSpot(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for hasHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: unsetHotSpot
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::unsetHotSpot
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();

        w->unsetHotSpot(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for unsetHotSpot";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: setGestureCancelPolicy
// Source: QGesture
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::setGestureCancelPolicy
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QGesture_GestureCancelPolicy(handler, a1
                                                  )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: policy (QGesture::GestureCancelPolicy)

        QGesture::GestureCancelPolicy a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QGesture_GestureCancelPolicy(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();

        w->setGestureCancelPolicy(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setGestureCancelPolicy";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: gestureCancelPolicy
// Source: QGesture
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::gestureCancelPolicy
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        QGesture::GestureCancelPolicy res =

            w->gestureCancelPolicy(

            );

        // return type: QGesture::GestureCancelPolicy

        return RJSHelper::cpp2js_QGesture_GestureCancelPolicy(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for gestureCancelPolicy";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: horizontalDirection
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::horizontalDirection
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        QSwipeGesture::SwipeDirection res =

            w->horizontalDirection(

            );

        // return type: QSwipeGesture::SwipeDirection

        return RJSHelper::cpp2js_QSwipeGesture_SwipeDirection(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for horizontalDirection";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: verticalDirection
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::verticalDirection
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        QSwipeGesture::SwipeDirection res =

            w->verticalDirection(

            );

        // return type: QSwipeGesture::SwipeDirection

        return RJSHelper::cpp2js_QSwipeGesture_SwipeDirection(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for verticalDirection";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: swipeAngle
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::swipeAngle
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();
        qreal res =

            w->swipeAngle(

            );

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for swipeAngle";
    handler.trace();
    return QJSValue();

}

// Class: QSwipeGesture
// Function: setSwipeAngle
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSwipeGesture_Wrapper::setSwipeAngle
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: value (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QSwipeGesture* w = getWrapped();

        w->setSwipeAngle(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setSwipeAngle";
    handler.trace();
    return QJSValue();

}


// member functions for static properties, forward to static function



// protected overwritten functions / events and their public invokable counterparts:

