
// Auto generated

#ifndef QPAGELAYOUT_H_WRAPPER
#define QPAGELAYOUT_H_WRAPPER

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

#include "../RJSHelper.h"


#include "RJSWrapperObj.h"

#include <QMarginsF>

#include <QQmlEngine>

#include "RJSType.h"

#include <QPageLayout>

// static functions implementation in singleton wrapper:

// wrapper class for QPageLayout
class QTJSAPI_EXPORT QPageLayout_Wrapper : public RJSWrapperObj {


    Q_OBJECT
    QML_INTERFACE


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

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


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

        // check if pointer points to derrived type:


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

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

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

        return nullptr;

    }

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

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

    // enums:

    enum Unit {
        Millimeter = QPageLayout::Millimeter,
        Point = QPageLayout::Point,
        Inch = QPageLayout::Inch,
        Pica = QPageLayout::Pica,
        Didot = QPageLayout::Didot,
        Cicero = QPageLayout::Cicero,

    };
    Q_ENUM(Unit)

    enum Orientation {
        Portrait = QPageLayout::Portrait,
        Landscape = QPageLayout::Landscape,

    };
    Q_ENUM(Orientation)

    enum Mode {
        StandardMode = QPageLayout::StandardMode,
        FullPageMode = QPageLayout::FullPageMode,

    };
    Q_ENUM(Mode)

    /*
    // special constructor used as prototype:

          Q_INVOKABLE
          QPageLayout_Wrapper(QJSEngine* e);

    */


    // special constructor to wrap existing object:

    //Q_INVOKABLE
    QPageLayout_Wrapper(RJSApi& h, QPageLayout* o, bool wrappedCreated);


    // destructor:

    virtual ~QPageLayout_Wrapper();

    // initialization of signal forwarding

    void initConnections();


    // constructors:

    // Class: QPageLayout
    // Function:
    // Source:
    // Static: false
    // Parameters: 5
    // preceding Parameters: -1

public:
    Q_INVOKABLE
    QPageLayout_Wrapper

    (


        // RJSApi:
        QObject* h

        ,

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

    )

    ;


    // non-static functions:

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

public:
    Q_INVOKABLE

    QJSValue
    swap
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: isEquivalentTo
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isEquivalentTo
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QPageLayout
    // Function: isValid
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    isValid
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: setMode
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setMode
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: mode
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    mode
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: setPageSize
    // Source:
    // Static: false
    // Parameters: 2
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setPageSize
    (


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

    )

    ;

    // Class: QPageLayout
    // Function: pageSize
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    pageSize
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: setOrientation
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setOrientation
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: orientation
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    orientation
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: setUnits
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setUnits
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: units
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    units
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: setMargins
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setMargins
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: setLeftMargin
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setLeftMargin
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: setRightMargin
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setRightMargin
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: setTopMargin
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setTopMargin
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: setBottomMargin
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setBottomMargin
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: margins
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    margins
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QPageLayout
    // Function: marginsPoints
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    marginsPoints
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: marginsPixels
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    marginsPixels
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QPageLayout
    // Function: setMinimumMargins
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setMinimumMargins
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QPageLayout
    // Function: minimumMargins
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    minimumMargins
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: maximumMargins
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    maximumMargins
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: fullRect
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    fullRect
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QPageLayout
    // Function: fullRectPoints
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    fullRectPoints
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: fullRectPixels
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    fullRectPixels
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QPageLayout
    // Function: paintRect
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    paintRect
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // Class: QPageLayout
    // Function: paintRectPoints
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    paintRectPoints
    (


    )

    const

    ;

    // Class: QPageLayout
    // Function: paintRectPixels
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    paintRectPixels
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

    // 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_QPageLayout::getIdStatic();
    }

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

        return false;

    }

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

        return nullptr;
    }

    // get wrapped object (const):
    QPageLayout* 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:
    QPageLayout* wrapped;



    bool wrappedCreated;

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

public:
    static void registerBasecaster_QPageLayout(RJSBasecaster_QPageLayout* bc) {
        basecasters_QPageLayout.append(bc);
    }

};

Q_DECLARE_METATYPE(QPageLayout_Wrapper*)

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


#endif

