
// Auto generated

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

#include "qpicture_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QPicture*> QPicture_Wrapper::basecasters_QPicture;

// static functions implementation in singleton wrapper:

// Class: QPicture
// Function: devicePixelRatioFScale
// Source: QPaintDevice
// Static: true
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_WrapperSingleton::devicePixelRatioFScale
(

)

{

    {


        // call function:

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

            // call static member function:
            QPaintDevice::devicePixelRatioFScale(

            );

        // return type: qreal

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

               );

    }

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

}

void QPicture_Wrapper::init(RJSApi& handler) {

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


    QJSEngine* engine = handler.getEngine();


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

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



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



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

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

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

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

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

*/


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

    // signal forwarding:
    initConnections();
}


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

    //qDebug() << "QPicture_Wrapper::~QPicture_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 QPicture";
        delete wrapped;

    }

}

// initialization of signal forwarding

void QPicture_Wrapper::initConnections() {

    //setObjectName("QPicture_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: QPicture
// Function:
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1
QPicture_Wrapper::QPicture_Wrapper

(

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

    : RJSWrapperObj(*(RJSApi*)h)

{

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

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

                         )


    ) {

        // prepare parameters:

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

        int a1_cpp;


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


        // call function:

        // construct wrapper:


        wrapped = new QPicture(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp:  (QPicture)

        QPicture a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QPicture(
            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 QPicture";
    wrapped = nullptr;
    wrappedCreated = false;
    handler.trace();

}


// non-static functions:

// Class: QPicture
// Function: paintingActive
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::paintingActive
(

)

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

            w->paintingActive(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QPicture
// Function: width
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::width
(

)

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

            w->width(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: height
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::height
(

)

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

            w->height(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: widthMM
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::widthMM
(

)

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

            w->widthMM(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: heightMM
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::heightMM
(

)

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

            w->heightMM(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: logicalDpiX
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::logicalDpiX
(

)

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

            w->logicalDpiX(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: logicalDpiY
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::logicalDpiY
(

)

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

            w->logicalDpiY(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: physicalDpiX
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::physicalDpiX
(

)

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

            w->physicalDpiX(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: physicalDpiY
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::physicalDpiY
(

)

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

            w->physicalDpiY(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: devicePixelRatio
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::devicePixelRatio
(

)

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

            w->devicePixelRatio(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QPicture
// Function: devicePixelRatioF
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::devicePixelRatioF
(

)

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

            w->devicePixelRatioF(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QPicture
// Function: colorCount
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::colorCount
(

)

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

            w->colorCount(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: depth
// Source: QPaintDevice
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::depth
(

)

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

            w->depth(

            );

        // return type: int

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

               );

    }

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

}

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

QJSValue
QPicture_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:
        QPicture* 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: QPicture
// Function: devType
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::devType
(

)

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

            w->devType(

            );

        // return type: int

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

               );

    }

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

}

// Class: QPicture
// Function: size
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::size
(

)

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

            w->size(

            );

        // return type: uint

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

               );

    }

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

}

// Class: QPicture
// Function: data
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::data
(

)

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

            w->data(

            );

        // return type: const char*

        return RJSHelper::cpp2js_char(
                   handler,
                   // non-copyable: false
                   // return type is pointer, type is copyable:
                   // call pointer implementation of RJSHelper::cpp2js_char:
                   res

               );

    }

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

}

// Class: QPicture
// Function: play
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::play
(

    const QJSValue&
    a1
)

{

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

                                  )


    ) {

        // prepare parameters:

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


        // pointer:
        QPainter*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPainter_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:
        QPicture* w = getWrapped();
        bool res =

            w->play(
                a1_cpp

            );

        // return type: bool

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

               );

    }

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

}

// Class: QPicture
// Function: load
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::load
(

    const QJSValue&
    a1
)

{

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

                                   )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: dev (QIODevice)


        // pointer:
        QIODevice*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QIODevice_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:
        QPicture* w = getWrapped();
        bool res =

            w->load(
                a1_cpp

            );

        // return type: bool

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

               );

    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: fileName (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:
        QPicture* w = getWrapped();
        bool res =

            w->load(
                a1_cpp

            );

        // return type: bool

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

               );

    }

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

}

// Class: QPicture
// Function: save
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::save
(

    const QJSValue&
    a1
)

{

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

                                   )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: dev (QIODevice)


        // pointer:
        QIODevice*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QIODevice_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:
        QPicture* w = getWrapped();
        bool res =

            w->save(
                a1_cpp

            );

        // return type: bool

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

               );

    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: fileName (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:
        QPicture* w = getWrapped();
        bool res =

            w->save(
                a1_cpp

            );

        // return type: bool

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

               );

    }

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

}

// Class: QPicture
// Function: boundingRect
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::boundingRect
(

)

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

            w->boundingRect(

            );

        // return type: QRect

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

               );

    }

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

}

// Class: QPicture
// Function: setBoundingRect
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::setBoundingRect
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: r (QRect)

        QRect a1_cpp;

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

        w->setBoundingRect(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QPicture
// Function: swap
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::swap
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: other (QPicture)

        QPicture a1_cpp;

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

        w->swap(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QPicture
// Function: detach
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::detach
(

)

{

    {


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

        w->detach(

        );

        return QJSValue();

    }

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

}

// Class: QPicture
// Function: isDetached
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::isDetached
(

)

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

            w->isDetached(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QPicture
// Function: paintEngine
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QPicture_Wrapper::paintEngine
(

)

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

            w->paintEngine(

            );

        // return type: QPaintEngine*

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

               );

    }

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

}


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



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

