

// Auto generated
// Adds public versions for event handlers to be called from
// JS implementation of these event handlers.

#ifndef QSCROLLAREA_H_BASE
#define QSCROLLAREA_H_BASE

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

#include "../RJSHelper.h"

#include <QQmlEngine>


#include <QScrollArea>

// Base class for QScrollArea
class QScrollArea_Base : public QScrollArea {


    //Q_OBJECT


public:


    // constructors:

    // Class: QScrollArea
    // Function:
    // Parameters: 1
    // preceding Parameters: -1
    QScrollArea_Base

    (


        RJSApi& _h

        ,
        QWidget* parent=nullptr
    )

        : QScrollArea(
              parent
          )

        , handler(_h) /*, recFlag(false)*/

    {}

    // destructor:
    virtual ~QScrollArea_Base() { }

public:
    // set handler:
    //void setHandler(RJSApi* h) {
    //  handler = h;
    //}

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

protected:
    // implementation of protected function
    // calls JS implementation if available
    virtual void actionEvent(
        QActionEvent* event
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE virtual void actionEventPublic(
        QActionEvent* event
    ) {
        //qDebug() << "QScrollArea_Base::actionEventPublic()";
        QScrollArea::actionEvent(
            event
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void setViewportMargins(
        int left, int top, int right, int bottom
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void setViewportMarginsPublic(
        int left, int top, int right, int bottom
    ) {
        //qDebug() << "QScrollArea_Base::setViewportMarginsPublic()";
        QScrollArea::setViewportMargins(
            left, top, right, bottom
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void setViewportMargins(
        const QMargins& margins
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void setViewportMarginsPublic(
        const QMargins& margins
    ) {
        //qDebug() << "QScrollArea_Base::setViewportMarginsPublic()";
        QScrollArea::setViewportMargins(
            margins
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    QMargins viewportMargins(

    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE QMargins viewportMarginsPublic(

    ) {
        //qDebug() << "QScrollArea_Base::viewportMarginsPublic()";

        // TODO: convert return value to QJSValue:
        return
            QScrollArea::viewportMargins(

            );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    virtual bool viewportEvent(
        QEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE virtual bool viewportEventPublic(
        QEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::viewportEventPublic()";

        // TODO: convert return value to QJSValue:
        return
            QScrollArea::viewportEvent(
                a1
            );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void paintEvent(
        QPaintEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void paintEventPublic(
        QPaintEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::paintEventPublic()";
        QScrollArea::paintEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void mousePressEvent(
        QMouseEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void mousePressEventPublic(
        QMouseEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::mousePressEventPublic()";
        QScrollArea::mousePressEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void mouseReleaseEvent(
        QMouseEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void mouseReleaseEventPublic(
        QMouseEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::mouseReleaseEventPublic()";
        QScrollArea::mouseReleaseEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void mouseDoubleClickEvent(
        QMouseEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void mouseDoubleClickEventPublic(
        QMouseEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::mouseDoubleClickEventPublic()";
        QScrollArea::mouseDoubleClickEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void mouseMoveEvent(
        QMouseEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void mouseMoveEventPublic(
        QMouseEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::mouseMoveEventPublic()";
        QScrollArea::mouseMoveEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void wheelEvent(
        QWheelEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void wheelEventPublic(
        QWheelEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::wheelEventPublic()";
        QScrollArea::wheelEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void dragEnterEvent(
        QDragEnterEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void dragEnterEventPublic(
        QDragEnterEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::dragEnterEventPublic()";
        QScrollArea::dragEnterEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void keyPressEvent(
        QKeyEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void keyPressEventPublic(
        QKeyEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::keyPressEventPublic()";
        QScrollArea::keyPressEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    bool event(
        QEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE bool eventPublic(
        QEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::eventPublic()";

        // TODO: convert return value to QJSValue:
        return
            QScrollArea::event(
                a1
            );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    bool eventFilter(
        QObject* a1, QEvent* a2
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE bool eventFilterPublic(
        QObject* a1, QEvent* a2
    ) {
        //qDebug() << "QScrollArea_Base::eventFilterPublic()";

        // TODO: convert return value to QJSValue:
        return
            QScrollArea::eventFilter(
                a1, a2
            );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void resizeEvent(
        QResizeEvent* a1
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void resizeEventPublic(
        QResizeEvent* a1
    ) {
        //qDebug() << "QScrollArea_Base::resizeEventPublic()";
        QScrollArea::resizeEvent(
            a1
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    void scrollContentsBy(
        int dx, int dy
    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE void scrollContentsByPublic(
        int dx, int dy
    ) {
        //qDebug() << "QScrollArea_Base::scrollContentsByPublic()";
        QScrollArea::scrollContentsBy(
            dx, dy
        );
    }

protected:
    // implementation of protected function
    // calls JS implementation if available
    QSize viewportSizeHint(

    );

public:
    // this can be called from JS to call the parent implementation (e.g. Parent.prototype.call(this, ...)):
    // TODO: convert arguments to QJSValue:
    Q_INVOKABLE QSize viewportSizeHintPublic(

    ) {
        //qDebug() << "QScrollArea_Base::viewportSizeHintPublic()";

        // TODO: convert return value to QJSValue:
        return
            QScrollArea::viewportSizeHint(

            );
    }


    // public virtual overwritten functions / events:


    // public pure-virtual functions:


public:
    //void setRecFlag(bool on) {
    //  recFlag = on;
    //}

public:
    QJSValue self;

private:

    RJSApi& handler;

    //bool recFlag;

};

#endif
