
// Auto generated

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

#include "qmargins_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QMargins*> QMargins_Wrapper::basecasters_QMargins;

// static functions implementation in singleton wrapper:

void QMargins_Wrapper::init(RJSApi& handler) {

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


    QJSEngine* engine = handler.getEngine();


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

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



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



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

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

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

*/


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

    // signal forwarding:
    initConnections();
}


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

    //qDebug() << "QMargins_Wrapper::~QMargins_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 QMargins";
        delete wrapped;

    }

}

// initialization of signal forwarding

void QMargins_Wrapper::initConnections() {

    //setObjectName("QMargins_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: QMargins
// Function:
// Source:
// Static: false
// Parameters: 4
// preceding Parameters: -1
QMargins_Wrapper::QMargins_Wrapper

(

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

    : RJSWrapperObj(*(RJSApi*)h)

{

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

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

        && RJSHelper::is_int(handler, a2
                            )

        && RJSHelper::is_int(handler, a3
                            )

        && RJSHelper::is_int(handler, a4
                            )


    ) {

        // prepare parameters:

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

        int a1_cpp;

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

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

        int a2_cpp;

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

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

        int a3_cpp;

        a3_cpp = RJSHelper::js2cpp_int(handler, a3);

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

        int a4_cpp;

        a4_cpp = RJSHelper::js2cpp_int(handler, a4);


        // call function:

        // construct wrapper:


        wrapped = new QMargins(
            a1_cpp
            , a2_cpp
            , a3_cpp
            , a4_cpp

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QMargins(

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QMargins(

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QMargins(

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

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


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

}


// non-static functions:

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

QJSValue
QMargins_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:
        QMargins* 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: QMargins
// Function: left
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::left
(

)

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

            w->left(

            );

        // return type: int

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

               );

    }

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

}

// Class: QMargins
// Function: top
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::top
(

)

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

            w->top(

            );

        // return type: int

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

               );

    }

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

}

// Class: QMargins
// Function: right
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::right
(

)

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

            w->right(

            );

        // return type: int

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

               );

    }

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

}

// Class: QMargins
// Function: bottom
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::bottom
(

)

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

            w->bottom(

            );

        // return type: int

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

               );

    }

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

}

// Class: QMargins
// Function: setLeft
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::setLeft
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setLeft(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QMargins
// Function: setTop
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::setTop
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setTop(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QMargins
// Function: setRight
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::setRight
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setRight(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QMargins
// Function: setBottom
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMargins_Wrapper::setBottom
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setBottom(
            a1_cpp

        );

        return QJSValue();

    }

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

}


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



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

#include "qmargins_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QMarginsF*> QMarginsF_Wrapper::basecasters_QMarginsF;

// static functions implementation in singleton wrapper:

void QMarginsF_Wrapper::init(RJSApi& handler) {

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


    QJSEngine* engine = handler.getEngine();


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

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



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



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

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

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

*/


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

    // signal forwarding:
    initConnections();
}


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

    //qDebug() << "QMarginsF_Wrapper::~QMarginsF_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 QMarginsF";
        delete wrapped;

    }

}

// initialization of signal forwarding

void QMarginsF_Wrapper::initConnections() {

    //setObjectName("QMarginsF_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: QMarginsF
// Function:
// Source:
// Static: false
// Parameters: 4
// preceding Parameters: -1
QMarginsF_Wrapper::QMarginsF_Wrapper

(

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

    : RJSWrapperObj(*(RJSApi*)h)

{

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

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

        && RJSHelper::is_qreal(handler, a2
                              )

        && RJSHelper::is_qreal(handler, a3
                              )

        && RJSHelper::is_qreal(handler, a4
                              )


    ) {

        // prepare parameters:

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

        qreal a1_cpp;

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

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

        qreal a2_cpp;

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

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

        qreal a3_cpp;

        a3_cpp = RJSHelper::js2cpp_qreal(handler, a3);

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

        qreal a4_cpp;

        a4_cpp = RJSHelper::js2cpp_qreal(handler, a4);


        // call function:

        // construct wrapper:


        wrapped = new QMarginsF(
            a1_cpp
            , a2_cpp
            , a3_cpp
            , a4_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: margins (QMargins)

        QMargins a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QMarginsF(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QMarginsF(

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QMarginsF(

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QMarginsF(

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

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


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

}


// non-static functions:

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

QJSValue
QMarginsF_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:
        QMarginsF* 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: QMarginsF
// Function: left
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::left
(

)

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

            w->left(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QMarginsF
// Function: top
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::top
(

)

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

            w->top(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QMarginsF
// Function: right
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::right
(

)

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

            w->right(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QMarginsF
// Function: bottom
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::bottom
(

)

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

            w->bottom(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QMarginsF
// Function: setLeft
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::setLeft
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setLeft(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QMarginsF
// Function: setTop
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::setTop
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setTop(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QMarginsF
// Function: setRight
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::setRight
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setRight(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QMarginsF
// Function: setBottom
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::setBottom
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        w->setBottom(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QMarginsF
// Function: toMargins
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QMarginsF_Wrapper::toMargins
(

)

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

            w->toMargins(

            );

        // return type: QMargins

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

               );

    }

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

}


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



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

