
// Auto generated

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

#include "qpoint_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QPoint*> QPoint_Wrapper::basecasters_QPoint;

// static functions implementation in singleton wrapper:

// Class: QPoint
// Function: dotProduct
// Source:
// Static: true
// Parameters: 2
// preceding Parameters: -1

QJSValue
QPoint_WrapperSingleton::dotProduct
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

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

        && RJSHelper::is_QPoint(handler, a2
                               )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: p1 (QPoint)

        QPoint a1_cpp;

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

        // convert js parameter to cpp: p2 (QPoint)

        QPoint a2_cpp;

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


        // call function:

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

            // call static member function:
            QPoint::dotProduct(
                a1_cpp
                , a2_cpp

            );

        // return type: int

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

               );

    }

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

}

#if defined(Q_OS_DARWIN)||defined(Q_QDOC)

#endif

void QPoint_Wrapper::init(RJSApi& handler) {

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


    QJSEngine* engine = handler.getEngine();


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

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



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



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

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

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

    QString fileName = ":generator/js/QPoint.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:
QPoint_Wrapper::QPoint_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QPoint_Wrapper");
        setEngine(e);

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

*/


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

    // signal forwarding:
    initConnections();
}


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

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

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


    if (wrappedCreated) {

        // delete wrapped object (copyable, JS ownership)
        //qDebug() << "deleting instance of QPoint";
        delete wrapped;

    }

}

// initialization of signal forwarding

void QPoint_Wrapper::initConnections() {

    //setObjectName("QPoint_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: QPoint
// Function:
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1
QPoint_Wrapper::QPoint_Wrapper

(

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

    : RJSWrapperObj(*(RJSApi*)h)

{

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

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

        && RJSHelper::is_int(handler, a2
                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: xpos (int)

        int a1_cpp;

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

        // convert js parameter to cpp: ypos (int)

        int a2_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QPoint(
            a1_cpp
            , a2_cpp

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QPoint(

        );
        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()
        && a2.isUndefined()

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


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

}

#if defined(Q_OS_DARWIN)||defined(Q_QDOC)

#endif


// non-static functions:

// Class: QPoint
// Function: isNull
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::isNull
(

)

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:
        QPoint* w = getWrapped();
        bool res =

            w->isNull(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QPoint
// Function: x
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::x
(

)

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:
        QPoint* w = getWrapped();
        int res =

            w->x(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPoint
// Function: y
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::y
(

)

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:
        QPoint* w = getWrapped();
        int res =

            w->y(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPoint
// Function: setX
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::setX
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: x (int)

        int a1_cpp;

        a1_cpp = RJSHelper::js2cpp_int(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:
        QPoint* w = getWrapped();

        w->setX(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QPoint
// Function: setY
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::setY
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: y (int)

        int a1_cpp;

        a1_cpp = RJSHelper::js2cpp_int(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:
        QPoint* w = getWrapped();

        w->setY(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QPoint
// Function: manhattanLength
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::manhattanLength
(

)

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:
        QPoint* w = getWrapped();
        int res =

            w->manhattanLength(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPoint
// Function: transposed
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::transposed
(

)

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:
        QPoint* w = getWrapped();
        QPoint res =

            w->transposed(

            );

        // return type: QPoint

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

               );

    }

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

}

// Class: QPoint
// Function: rx
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::rx
(

)

{

    {


        // 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:
        QPoint* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        int* res =
            &
            w->rx(

            );

        // return type: int&

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

               );

    }

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

}

// Class: QPoint
// Function: ry
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::ry
(

)

{

    {


        // 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:
        QPoint* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        int* res =
            &
            w->ry(

            );

        // return type: int&

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

               );

    }

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

}

// Class: QPoint
// Function: operator_add_assign
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::operator_add_assign
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: p (QPoint)

        QPoint a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPoint(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:
        QPoint* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        QPoint* res =
            &
            w->operator+=(
                a1_cpp

            );

        // return type: QPoint&

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

               );

    }

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

}

// Class: QPoint
// Function: operator_subtract_assign
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::operator_subtract_assign
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: p (QPoint)

        QPoint a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPoint(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:
        QPoint* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        QPoint* res =
            &
            w->operator-=(
                a1_cpp

            );

        // return type: QPoint&

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

               );

    }

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

}

// Class: QPoint
// Function: operator_multiply_assign
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::operator_multiply_assign
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: factor (double)

        double a1_cpp;

        a1_cpp = RJSHelper::js2cpp_double(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:
        QPoint* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        QPoint* res =
            &
            w->operator*=(
                a1_cpp

            );

        // return type: QPoint&

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

               );

    }

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

}

// Class: QPoint
// Function: operator_divide_assign
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPoint_Wrapper::operator_divide_assign
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: divisor (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:
        QPoint* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        QPoint* res =
            &
            w->operator/=(
                a1_cpp

            );

        // return type: QPoint&

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

               );

    }

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

}

#if defined(Q_OS_DARWIN)||defined(Q_QDOC)

#endif


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



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

#include "qpoint_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QPointF*> QPointF_Wrapper::basecasters_QPointF;

// static functions implementation in singleton wrapper:

// Class: QPointF
// Function: dotProduct
// Source:
// Static: true
// Parameters: 2
// preceding Parameters: -1

QJSValue
QPointF_WrapperSingleton::dotProduct
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

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

        && RJSHelper::is_QPointF(handler, a2
                                )


    ) {

        // prepare parameters:

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

        QPointF a1_cpp;

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

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

        QPointF a2_cpp;

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


        // call function:

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

            // call static member function:
            QPointF::dotProduct(
                a1_cpp
                , a2_cpp

            );

        // return type: qreal

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

               );

    }

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

}

#if defined(Q_OS_DARWIN)||defined(Q_QDOC)

#endif

void QPointF_Wrapper::init(RJSApi& handler) {

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


    QJSEngine* engine = handler.getEngine();


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

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



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



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

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

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

    QString fileName = ":generator/js/QPointF.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:
QPointF_Wrapper::QPointF_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QPointF_Wrapper");
        setEngine(e);

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

*/


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

    // signal forwarding:
    initConnections();
}


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

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

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


    if (wrappedCreated) {

        // delete wrapped object (copyable, JS ownership)
        //qDebug() << "deleting instance of QPointF";
        delete wrapped;

    }

}

// initialization of signal forwarding

void QPointF_Wrapper::initConnections() {

    //setObjectName("QPointF_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: QPointF
// Function:
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1
QPointF_Wrapper::QPointF_Wrapper

(

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

    : RJSWrapperObj(*(RJSApi*)h)

{

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

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

        && RJSHelper::is_qreal(handler, a2
                              )


    ) {

        // prepare parameters:

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

        qreal a1_cpp;

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

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

        qreal a2_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QPointF(
            a1_cpp
            , a2_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: p (QPoint)

        QPoint a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QPointF(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QPointF(

        );
        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()
        && a2.isUndefined()

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


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

}

#if defined(Q_OS_DARWIN)||defined(Q_QDOC)

#endif


// non-static functions:

// Class: QPointF
// Function: manhattanLength
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::manhattanLength
(

)

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:
        QPointF* w = getWrapped();
        qreal res =

            w->manhattanLength(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QPointF
// Function: isNull
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::isNull
(

)

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:
        QPointF* w = getWrapped();
        bool res =

            w->isNull(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QPointF
// Function: x
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::x
(

)

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:
        QPointF* w = getWrapped();
        qreal res =

            w->x(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QPointF
// Function: y
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::y
(

)

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:
        QPointF* w = getWrapped();
        qreal res =

            w->y(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QPointF
// Function: setX
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::setX
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: x (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:
        QPointF* w = getWrapped();

        w->setX(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QPointF
// Function: setY
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::setY
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: y (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:
        QPointF* w = getWrapped();

        w->setY(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QPointF
// Function: transposed
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::transposed
(

)

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:
        QPointF* w = getWrapped();
        QPointF res =

            w->transposed(

            );

        // return type: QPointF

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

               );

    }

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

}

// Class: QPointF
// Function: rx
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::rx
(

)

{

    {


        // 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:
        QPointF* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        qreal* res =
            &
            w->rx(

            );

        // return type: qreal&

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

               );

    }

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

}

// Class: QPointF
// Function: ry
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::ry
(

)

{

    {


        // 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:
        QPointF* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        qreal* res =
            &
            w->ry(

            );

        // return type: qreal&

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

               );

    }

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

}

// Class: QPointF
// Function: toPoint
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPointF_Wrapper::toPoint
(

)

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:
        QPointF* w = getWrapped();
        QPoint res =

            w->toPoint(

            );

        // return type: QPoint

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

               );

    }

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

}

#if defined(Q_OS_DARWIN)||defined(Q_QDOC)

#endif


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



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

