
// Auto generated

#ifndef QTRANSFORM_H_WRAPPER
#define QTRANSFORM_H_WRAPPER

// include header:
//#include "header_h.h"

#include "../RJSHelper.h"


#include "RJSWrapperObj.h"

#include <QVariant>

#include <QPainterPath>

#include <QQmlEngine>

#include "RJSType.h"

#include <QTransform>

// singleton class wrapper for static functions:
class QTJSAPI_EXPORT QTransform_WrapperSingleton: public QObject {
    Q_OBJECT
    QML_INTERFACE

    // constants:


    // static properties:


public:
    //Q_INVOKABLE
    QTransform_WrapperSingleton(RJSApi& h)
        : QObject(),
          handler(h)

    {}



    // static functions:

    // Class: QTransform
    // Function: squareToQuad
    // Source:
    // Static: true
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    squareToQuad
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: quadToSquare
    // Source:
    // Static: true
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    quadToSquare
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: quadToQuad
    // Source:
    // Static: true
    // Parameters: 3
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    quadToQuad
    (


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

    )

    ;

    // Class: QTransform
    // Function: fromTranslate
    // Source:
    // Static: true
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    fromTranslate
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: fromScale
    // Source:
    // Static: true
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    fromScale
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;


private:
    RJSApi& handler;
    //static QTransform_WrapperSingleton* _singleInstance;

    // constants:

};

// static functions implementation in singleton wrapper:

// wrapper class for QTransform
class QTJSAPI_EXPORT QTransform_Wrapper : public RJSWrapperObj {


    Q_OBJECT
    QML_INTERFACE


private:
    // disable copy constructor:
    QTransform_Wrapper(const QTransform_Wrapper&);

public:
    // initialization of QTransform:
    static void init(RJSApi& handler);


    static QTransform* castToBase(void* vp, /*RJSType ID*/ int t) {

        // check if pointer points to derrived type:


        // hook for modules to cast from other types to base QTransform:
        for (int i=0; i<basecasters_QTransform.length(); i++) {
            RJSBasecaster_QTransform* basecaster = basecasters_QTransform[i];
            QTransform* ret = basecaster->castToBase(t, vp);
            if (ret!=nullptr) {
                return ret;
            }
        }

        // object is a pointer to base class QTransform:
        if (t==RJSType_QTransform::getIdStatic()) {
            return (QTransform*)vp;
        }

        qWarning() << "QTransform_Wrapper::castToBase: type not found: " << RJSHelper::getTypeName(t);

        return nullptr;

    }

    static QTransform* getWrappedBase(RJSWrapper* wrapper) {
        int t = wrapper->getWrappedType();
        void* vp = wrapper->getWrappedVoid();
        if (vp==nullptr) {
            //qWarning() << "getWrapped_QTransform*: wrapper wraps NULL";
        }

        QTransform* ret = castToBase(vp, t);
        if (ret==nullptr && vp!=nullptr) {
            qWarning() << "QTransform*_Wrapper::getWrappedBase: extracted type " << t << "from wrapper is NULL";
        }
        return ret;
    }

    /*
    // special constructor used as prototype:

          Q_INVOKABLE
          QTransform_Wrapper(QJSEngine* e);

    */


    // special constructor to wrap existing object:

    //Q_INVOKABLE
    QTransform_Wrapper(RJSApi& h, QTransform* o, bool wrappedCreated);


    // destructor:

    virtual ~QTransform_Wrapper();

    // initialization of signal forwarding

    void initConnections();


    // constructors:

    // Class: QTransform
    // Function:
    // Source:
    // Static: false
    // Parameters: 9
    // preceding Parameters: -1

public:
    Q_INVOKABLE
    QTransform_Wrapper

    (


        // RJSApi:
        QObject* h

        ,

        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()
          ,
        const QJSValue&
        a3
        = QJSValue()
          ,
        const QJSValue&
        a4
        = QJSValue()
          ,
        const QJSValue&
        a5
        = QJSValue()
          ,
        const QJSValue&
        a6
        = QJSValue()
          ,
        const QJSValue&
        a7
        = QJSValue()
          ,
        const QJSValue&
        a8
        = QJSValue()
          ,
        const QJSValue&
        a9
        = QJSValue()

    )

    ;


    // non-static functions:

    // Class: QTransform
    // Function: isAffine
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isAffine
    (


    )

    const

    ;

    // Class: QTransform
    // Function: isIdentity
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isIdentity
    (


    )

    const

    ;

    // Class: QTransform
    // Function: isInvertible
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isInvertible
    (


    )

    const

    ;

    // Class: QTransform
    // Function: isScaling
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isScaling
    (


    )

    const

    ;

    // Class: QTransform
    // Function: isRotating
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isRotating
    (


    )

    const

    ;

    // Class: QTransform
    // Function: isTranslating
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isTranslating
    (


    )

    const

    ;

    // Class: QTransform
    // Function: type
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    type
    (


    )

    const

    ;

    // Class: QTransform
    // Function: determinant
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    determinant
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m11
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m11
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m12
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m12
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m13
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m13
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m21
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m21
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m22
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m22
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m23
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m23
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m31
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m31
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m32
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m32
    (


    )

    const

    ;

    // Class: QTransform
    // Function: m33
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    m33
    (


    )

    const

    ;

    // Class: QTransform
    // Function: dx
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    dx
    (


    )

    const

    ;

    // Class: QTransform
    // Function: dy
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    dy
    (


    )

    const

    ;

    // Class: QTransform
    // Function: setMatrix
    // Source:
    // Static: false
    // Parameters: 9
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setMatrix
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()
          ,
        const QJSValue&
        a3
        = QJSValue()
          ,
        const QJSValue&
        a4
        = QJSValue()
          ,
        const QJSValue&
        a5
        = QJSValue()
          ,
        const QJSValue&
        a6
        = QJSValue()
          ,
        const QJSValue&
        a7
        = QJSValue()
          ,
        const QJSValue&
        a8
        = QJSValue()
          ,
        const QJSValue&
        a9
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: inverted
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    inverted
    (


    )

    const

    ;

    // Class: QTransform
    // Function: adjoint
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    adjoint
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    transposed
    (


    )

    const

    ;

    // Class: QTransform
    // Function: translate
    // Source:
    // Static: false
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    translate
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: scale
    // Source:
    // Static: false
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    scale
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: shear
    // Source:
    // Static: false
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    shear
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: rotate
    // Source:
    // Static: false
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    rotate
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: rotateRadians
    // Source:
    // Static: false
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    rotateRadians
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

    // Class: QTransform
    // Function: reset
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    reset
    (


    )

    ;

    // Class: QTransform
    // Function: map
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    map
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QTransform
    // Function: mapToPolygon
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    mapToPolygon
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QTransform
    // Function: mapRect
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    mapRect
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    operator_multiply_assign
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // destroy function for non-copyable objects:
    Q_INVOKABLE void destr() {
        if (wrapped!=nullptr) {

            delete wrapped;

            wrapped = nullptr;
        }

    }


    //public:
    // set engine:
    //Q_INVOKABLE void setHandler(RJSApi* h) {
    //  RJSWrapperObj::setHandler(h);
    //}


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



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

public:

    // get type of wrapped object:
    Q_INVOKABLE
    virtual /*RJSType ID*/ int getWrappedType() const {
        return RJSType_QTransform::getIdStatic();
    }

    // return true if wrapped object is owned by C++ (not deleted):
    Q_INVOKABLE
    virtual bool isCppOwnership() const {

        return false;

    }

    // get wrapped object:
    QTransform* getWrapped() {
        if (wrapped!=nullptr) {
            return wrapped;
        }

        return nullptr;
    }

    // get wrapped object (const):
    QTransform* getWrapped() const {
        if (wrapped!=nullptr) {
            return wrapped;
        }

        return nullptr;
    }

    // get wrapped object as void*:
    virtual void* getWrappedVoid() {
        if (wrapped!=nullptr) {
            return wrapped;
        }

        return nullptr;
    }



    bool hasWrapped() const {
        return wrapped!=nullptr

               ;
    }

    Q_INVOKABLE
    bool isNullWrapper() const {
        return !hasWrapped();
    }

    Q_INVOKABLE
    unsigned long long int getAddress() const {
        if (wrapped!=nullptr) {
            return (unsigned long long int)wrapped;
        }

        return (unsigned long long int)0;
    }



    //public slots:
    //void slotDestroyed(QObject* obj) {
    //  qDebug() << "destroying QObject:" << (long int)obj;
    //}



private:
    // wrapped object:
    QTransform* wrapped;



    bool wrappedCreated;

private:
    // list of registered base casters for this wrapper class:
    static QList<RJSBasecaster_QTransform*> basecasters_QTransform;

public:
    static void registerBasecaster_QTransform(RJSBasecaster_QTransform* bc) {
        basecasters_QTransform.append(bc);
    }

};

Q_DECLARE_METATYPE(QTransform_Wrapper*)

Q_DECLARE_INTERFACE(QTransform_Wrapper, "org.qcad.QTransform_Wrapper")


#endif

