/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.6
 */

#include "sipAPIKWidgetsAddons.h"

#include <kruler.h>

#include <qwidget.h>
#include <qnamespace.h>
#include <qnamespace.h>
#include <qevent.h>
#include <qstring.h>
#include <qcoreevent.h>
#include <qevent.h>
#include <qcoreevent.h>
#include <qevent.h>
#include <qabstractslider.h>
#include <qicon.h>
#include <qpainter.h>
#include <qbytearray.h>
#include <qwindow.h>
#include <qpixmap.h>
#include <qrect.h>
#include <qnamespace.h>
#include <qmargins.h>
#include <qnamespace.h>
#include <qgraphicseffect.h>
#include <qgraphicsproxywidget.h>
#include <QtGlobal>
#include <qlocale.h>
#include <qpaintdevice.h>
#include <qpoint.h>
#include <qregion.h>
#include <qwidget.h>
#include <qsize.h>
#include <qfontinfo.h>
#include <qfontmetrics.h>
#include <qfont.h>
#include <qvariant.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qevent.h>
#include <qpaintengine.h>
#include <qlist.h>
#include <qaction.h>
#include <qlayout.h>
#include <qsizepolicy.h>
#include <qnamespace.h>
#include <qkeysequence.h>
#include <qcursor.h>
#include <qbitmap.h>
#include <qpalette.h>
#include <qstyle.h>
#include <qmetaobject.h>
#include <qcoreevent.h>
#include <qobject.h>
#include <qlist.h>
#include <qlist.h>
#include <qthread.h>
#include <qnamespace.h>
#include <qregexp.h>
#include <qregularexpression.h>
#include <qobjectdefs.h>


class sipKRuler : public  ::KRuler
{
public:
    sipKRuler( ::QWidget*);
    sipKRuler( ::Qt::Orientation, ::QWidget*, ::Qt::WindowFlags);
    sipKRuler( ::Qt::Orientation,int, ::QWidget*, ::Qt::WindowFlags);
    virtual ~sipKRuler();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /* Expose this protected enum. */
    enum sipSliderChange {
        SliderRangeChange =  ::QAbstractSlider::SliderRangeChange,
        SliderOrientationChange =  ::QAbstractSlider::SliderOrientationChange,
        SliderStepsChange =  ::QAbstractSlider::SliderStepsChange,
        SliderValueChange =  ::QAbstractSlider::SliderValueChange
    };

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
     ::QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_childEvent(bool, ::QChildEvent*);
    void sipProtectVirt_customEvent(bool, ::QEvent*);
    void sipProtectVirt_connectNotify(bool,const  ::QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const  ::QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const  ::QMetaMethod&) const;
    void sipProtectVirt_mousePressEvent(bool, ::QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool, ::QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool, ::QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool, ::QMouseEvent*);
    void sipProtectVirt_keyReleaseEvent(bool, ::QKeyEvent*);
    void sipProtectVirt_focusInEvent(bool, ::QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool, ::QFocusEvent*);
    void sipProtectVirt_enterEvent(bool, ::QEvent*);
    void sipProtectVirt_leaveEvent(bool, ::QEvent*);
    void sipProtectVirt_moveEvent(bool, ::QMoveEvent*);
    void sipProtectVirt_resizeEvent(bool, ::QResizeEvent*);
    void sipProtectVirt_closeEvent(bool, ::QCloseEvent*);
    void sipProtectVirt_contextMenuEvent(bool, ::QContextMenuEvent*);
    void sipProtectVirt_tabletEvent(bool, ::QTabletEvent*);
    void sipProtectVirt_actionEvent(bool, ::QActionEvent*);
    void sipProtectVirt_dragEnterEvent(bool, ::QDragEnterEvent*);
    void sipProtectVirt_dragMoveEvent(bool, ::QDragMoveEvent*);
    void sipProtectVirt_dragLeaveEvent(bool, ::QDragLeaveEvent*);
    void sipProtectVirt_dropEvent(bool, ::QDropEvent*);
    void sipProtectVirt_showEvent(bool, ::QShowEvent*);
    void sipProtectVirt_hideEvent(bool, ::QHideEvent*);
    int sipProtectVirt_metric(bool, ::QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool, ::QInputMethodEvent*);
    void sipProtect_updateMicroFocus();
    void sipProtect_create( ::WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    bool sipProtectVirt_nativeEvent(bool,const  ::QByteArray&,void*,long*);
     ::QPainter* sipProtectVirt_sharedPainter(bool) const;
    void sipProtectVirt_initPainter(bool, ::QPainter*) const;
    void sipProtect_setRepeatAction( ::QAbstractSlider::SliderAction,int,int);
     ::QAbstractSlider::SliderAction sipProtect_repeatAction() const;
    void sipProtectVirt_sliderChange(bool,int);
    bool sipProtectVirt_event(bool, ::QEvent*);
    void sipProtectVirt_keyPressEvent(bool, ::QKeyEvent*);
    void sipProtectVirt_timerEvent(bool, ::QTimerEvent*);
    void sipProtectVirt_wheelEvent(bool, ::QWheelEvent*);
    void sipProtectVirt_changeEvent(bool, ::QEvent*);
    void sipProtectVirt_paintEvent(bool, ::QPaintEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void initPainter( ::QPainter*) const;
     ::QPainter* sharedPainter() const;
    bool nativeEvent(const  ::QByteArray&,void*,long*);
    bool hasHeightForWidth() const;
    bool focusNextPrevChild(bool);
     ::QVariant inputMethodQuery( ::Qt::InputMethodQuery) const;
    void inputMethodEvent( ::QInputMethodEvent*);
    void changeEvent( ::QEvent*);
    void hideEvent( ::QHideEvent*);
    void showEvent( ::QShowEvent*);
    void dropEvent( ::QDropEvent*);
    void dragLeaveEvent( ::QDragLeaveEvent*);
    void dragMoveEvent( ::QDragMoveEvent*);
    void dragEnterEvent( ::QDragEnterEvent*);
    void actionEvent( ::QActionEvent*);
    void tabletEvent( ::QTabletEvent*);
    void contextMenuEvent( ::QContextMenuEvent*);
    void closeEvent( ::QCloseEvent*);
    void resizeEvent( ::QResizeEvent*);
    void moveEvent( ::QMoveEvent*);
    void paintEvent( ::QPaintEvent*);
    void leaveEvent( ::QEvent*);
    void enterEvent( ::QEvent*);
    void focusOutEvent( ::QFocusEvent*);
    void focusInEvent( ::QFocusEvent*);
    void keyReleaseEvent( ::QKeyEvent*);
    void keyPressEvent( ::QKeyEvent*);
    void wheelEvent( ::QWheelEvent*);
    void mouseMoveEvent( ::QMouseEvent*);
    void mouseDoubleClickEvent( ::QMouseEvent*);
    void mouseReleaseEvent( ::QMouseEvent*);
    void mousePressEvent( ::QMouseEvent*);
    int heightForWidth(int) const;
     ::QSize minimumSizeHint() const;
     ::QSize sizeHint() const;
    void setVisible(bool);
    int devType() const;
     ::QPaintEngine* paintEngine() const;
    int metric( ::QPaintDevice::PaintDeviceMetric) const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);
    void sliderChange( ::QAbstractSlider::SliderChange);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKRuler(const sipKRuler &);
    sipKRuler &operator = (const sipKRuler &);

    char sipPyMethods[47];
};

sipKRuler::sipKRuler( ::QWidget*a0):  ::KRuler(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKRuler::sipKRuler( ::Qt::Orientation a0, ::QWidget*a1, ::Qt::WindowFlags a2):  ::KRuler(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKRuler::sipKRuler( ::Qt::Orientation a0,int a1, ::QWidget*a2, ::Qt::WindowFlags a3):  ::KRuler(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKRuler::~sipKRuler()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKRuler::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_KWidgetsAddons_qt_metaobject(sipPySelf,sipType_KRuler);

    return  ::KRuler::metaObject();
}

int sipKRuler::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KRuler::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_KWidgetsAddons_qt_metacall(sipPySelf,sipType_KRuler,_c,_id,_a);

    return _id;
}

void *sipKRuler::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_KWidgetsAddons_qt_metacast(sipPySelf, sipType_KRuler, _clname, &sipCpp) ? sipCpp :  ::KRuler::qt_metacast(_clname));
}

void sipKRuler::initPainter( ::QPainter*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_initPainter);

    if (!sipMeth)
    {
         ::KRuler::initPainter(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*);

    sipVH_KWidgetsAddons_0(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QPainter* sipKRuler::sharedPainter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_sharedPainter);

    if (!sipMeth)
        return  ::KRuler::sharedPainter();

    extern  ::QPainter* sipVH_KWidgetsAddons_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KWidgetsAddons_1(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipKRuler::nativeEvent(const  ::QByteArray& a0,void*a1,long*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_nativeEvent);

    if (!sipMeth)
        return  ::KRuler::nativeEvent(a0,a1,a2);

    extern bool sipVH_KWidgetsAddons_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QByteArray&,void*,long*);

    return sipVH_KWidgetsAddons_2(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKRuler::hasHeightForWidth() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_hasHeightForWidth);

    if (!sipMeth)
        return  ::KRuler::hasHeightForWidth();

    extern bool sipVH_KWidgetsAddons_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KWidgetsAddons_3(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipKRuler::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return  ::KRuler::focusNextPrevChild(a0);

    extern bool sipVH_KWidgetsAddons_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return sipVH_KWidgetsAddons_4(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QVariant sipKRuler::inputMethodQuery( ::Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return  ::KRuler::inputMethodQuery(a0);

    extern  ::QVariant sipVH_KWidgetsAddons_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::Qt::InputMethodQuery);

    return sipVH_KWidgetsAddons_5(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::inputMethodEvent( ::QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
         ::KRuler::inputMethodEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QInputMethodEvent*);

    sipVH_KWidgetsAddons_6(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::changeEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
         ::KRuler::changeEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_KWidgetsAddons_7(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::hideEvent( ::QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
         ::KRuler::hideEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHideEvent*);

    sipVH_KWidgetsAddons_8(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::showEvent( ::QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
         ::KRuler::showEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QShowEvent*);

    sipVH_KWidgetsAddons_9(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::dropEvent( ::QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
         ::KRuler::dropEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDropEvent*);

    sipVH_KWidgetsAddons_10(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::dragLeaveEvent( ::QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
         ::KRuler::dragLeaveEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragLeaveEvent*);

    sipVH_KWidgetsAddons_11(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::dragMoveEvent( ::QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
         ::KRuler::dragMoveEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragMoveEvent*);

    sipVH_KWidgetsAddons_12(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::dragEnterEvent( ::QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
         ::KRuler::dragEnterEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragEnterEvent*);

    sipVH_KWidgetsAddons_13(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::actionEvent( ::QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
         ::KRuler::actionEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QActionEvent*);

    sipVH_KWidgetsAddons_14(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::tabletEvent( ::QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
         ::KRuler::tabletEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTabletEvent*);

    sipVH_KWidgetsAddons_15(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::contextMenuEvent( ::QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
         ::KRuler::contextMenuEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QContextMenuEvent*);

    sipVH_KWidgetsAddons_16(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::closeEvent( ::QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
         ::KRuler::closeEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QCloseEvent*);

    sipVH_KWidgetsAddons_17(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::resizeEvent( ::QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
         ::KRuler::resizeEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QResizeEvent*);

    sipVH_KWidgetsAddons_18(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::moveEvent( ::QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
         ::KRuler::moveEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMoveEvent*);

    sipVH_KWidgetsAddons_19(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::paintEvent( ::QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
         ::KRuler::paintEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintEvent*);

    sipVH_KWidgetsAddons_20(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::leaveEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
         ::KRuler::leaveEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_KWidgetsAddons_7(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::enterEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
         ::KRuler::enterEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_KWidgetsAddons_7(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::focusOutEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
         ::KRuler::focusOutEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_KWidgetsAddons_21(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::focusInEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
         ::KRuler::focusInEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_KWidgetsAddons_21(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::keyReleaseEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
         ::KRuler::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_KWidgetsAddons_22(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::keyPressEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
         ::KRuler::keyPressEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_KWidgetsAddons_22(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::wheelEvent( ::QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
         ::KRuler::wheelEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWheelEvent*);

    sipVH_KWidgetsAddons_23(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::mouseMoveEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
         ::KRuler::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_KWidgetsAddons_24(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::mouseDoubleClickEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
         ::KRuler::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_KWidgetsAddons_24(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::mouseReleaseEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
         ::KRuler::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_KWidgetsAddons_24(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::mousePressEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
         ::KRuler::mousePressEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_KWidgetsAddons_24(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipKRuler::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return  ::KRuler::heightForWidth(a0);

    extern int sipVH_KWidgetsAddons_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_KWidgetsAddons_25(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QSize sipKRuler::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return  ::KRuler::minimumSizeHint();

    extern  ::QSize sipVH_KWidgetsAddons_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KWidgetsAddons_26(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSize sipKRuler::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return  ::KRuler::sizeHint();

    extern  ::QSize sipVH_KWidgetsAddons_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KWidgetsAddons_26(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipKRuler::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
         ::KRuler::setVisible(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_KWidgetsAddons_27(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipKRuler::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return  ::KRuler::devType();

    extern int sipVH_KWidgetsAddons_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KWidgetsAddons_28(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QPaintEngine* sipKRuler::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return  ::KRuler::paintEngine();

    extern  ::QPaintEngine* sipVH_KWidgetsAddons_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KWidgetsAddons_29(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipKRuler::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::KRuler::metric(a0);

    extern int sipVH_KWidgetsAddons_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_KWidgetsAddons_30(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipKRuler::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KRuler::event(a0);

    extern bool sipVH_KWidgetsAddons_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_KWidgetsAddons_31(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipKRuler::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KRuler::eventFilter(a0,a1);

    extern bool sipVH_KWidgetsAddons_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_KWidgetsAddons_32(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipKRuler::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KRuler::timerEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_KWidgetsAddons_33(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KRuler::childEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_KWidgetsAddons_34(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KRuler::customEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_KWidgetsAddons_7(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KRuler::connectNotify(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_KWidgetsAddons_35(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KRuler::disconnectNotify(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_KWidgetsAddons_35(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKRuler::sliderChange( ::QAbstractSlider::SliderChange a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_sliderChange);

    if (!sipMeth)
    {
         ::KRuler::sliderChange(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    sipVH_KWidgetsAddons_51(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, (int)a0);
}

 ::QObject* sipKRuler::sipProtect_sender() const
{
    return  ::QObject::sender();
}

int sipKRuler::sipProtect_receivers(const char*a0) const
{
    return  ::QObject::receivers(a0);
}

void sipKRuler::sipProtectVirt_childEvent(bool sipSelfWasArg, ::QChildEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::childEvent(a0) : childEvent(a0));
}

void sipKRuler::sipProtectVirt_customEvent(bool sipSelfWasArg, ::QEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::customEvent(a0) : customEvent(a0));
}

void sipKRuler::sipProtectVirt_connectNotify(bool sipSelfWasArg,const  ::QMetaMethod& a0)
{
    (sipSelfWasArg ?  ::QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKRuler::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const  ::QMetaMethod& a0)
{
    (sipSelfWasArg ?  ::QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipKRuler::sipProtect_senderSignalIndex() const
{
    return  ::QObject::senderSignalIndex();
}

bool sipKRuler::sipProtect_isSignalConnected(const  ::QMetaMethod& a0) const
{
    return  ::QObject::isSignalConnected(a0);
}

void sipKRuler::sipProtectVirt_mousePressEvent(bool sipSelfWasArg, ::QMouseEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipKRuler::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg, ::QMouseEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipKRuler::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg, ::QMouseEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipKRuler::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg, ::QMouseEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipKRuler::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg, ::QKeyEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipKRuler::sipProtectVirt_focusInEvent(bool sipSelfWasArg, ::QFocusEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipKRuler::sipProtectVirt_focusOutEvent(bool sipSelfWasArg, ::QFocusEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipKRuler::sipProtectVirt_enterEvent(bool sipSelfWasArg, ::QEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipKRuler::sipProtectVirt_leaveEvent(bool sipSelfWasArg, ::QEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipKRuler::sipProtectVirt_moveEvent(bool sipSelfWasArg, ::QMoveEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipKRuler::sipProtectVirt_resizeEvent(bool sipSelfWasArg, ::QResizeEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::resizeEvent(a0) : resizeEvent(a0));
}

void sipKRuler::sipProtectVirt_closeEvent(bool sipSelfWasArg, ::QCloseEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::closeEvent(a0) : closeEvent(a0));
}

void sipKRuler::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg, ::QContextMenuEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::contextMenuEvent(a0) : contextMenuEvent(a0));
}

void sipKRuler::sipProtectVirt_tabletEvent(bool sipSelfWasArg, ::QTabletEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipKRuler::sipProtectVirt_actionEvent(bool sipSelfWasArg, ::QActionEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipKRuler::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg, ::QDragEnterEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipKRuler::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg, ::QDragMoveEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipKRuler::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg, ::QDragLeaveEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipKRuler::sipProtectVirt_dropEvent(bool sipSelfWasArg, ::QDropEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipKRuler::sipProtectVirt_showEvent(bool sipSelfWasArg, ::QShowEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::showEvent(a0) : showEvent(a0));
}

void sipKRuler::sipProtectVirt_hideEvent(bool sipSelfWasArg, ::QHideEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::hideEvent(a0) : hideEvent(a0));
}

int sipKRuler::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QWidget::metric(a0) : metric(a0));
}

void sipKRuler::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg, ::QInputMethodEvent*a0)
{
    (sipSelfWasArg ?  ::QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipKRuler::sipProtect_updateMicroFocus()
{
     ::QWidget::updateMicroFocus();
}

void sipKRuler::sipProtect_create( ::WId a0,bool a1,bool a2)
{
     ::QWidget::create(a0,a1,a2);
}

void sipKRuler::sipProtect_destroy(bool a0,bool a1)
{
     ::QWidget::destroy(a0,a1);
}

bool sipKRuler::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ?  ::QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipKRuler::sipProtect_focusNextChild()
{
    return  ::QWidget::focusNextChild();
}

bool sipKRuler::sipProtect_focusPreviousChild()
{
    return  ::QWidget::focusPreviousChild();
}

bool sipKRuler::sipProtectVirt_nativeEvent(bool sipSelfWasArg,const  ::QByteArray& a0,void*a1,long*a2)
{
    return (sipSelfWasArg ?  ::QWidget::nativeEvent(a0,a1,a2) : nativeEvent(a0,a1,a2));
}

 ::QPainter* sipKRuler::sipProtectVirt_sharedPainter(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ?  ::QWidget::sharedPainter() : sharedPainter());
}

void sipKRuler::sipProtectVirt_initPainter(bool sipSelfWasArg, ::QPainter*a0) const
{
    (sipSelfWasArg ?  ::QWidget::initPainter(a0) : initPainter(a0));
}

void sipKRuler::sipProtect_setRepeatAction( ::QAbstractSlider::SliderAction a0,int a1,int a2)
{
     ::QAbstractSlider::setRepeatAction(a0,a1,a2);
}

 ::QAbstractSlider::SliderAction sipKRuler::sipProtect_repeatAction() const
{
    return  ::QAbstractSlider::repeatAction();
}

void sipKRuler::sipProtectVirt_sliderChange(bool sipSelfWasArg,int a0)
{
    (sipSelfWasArg ?  ::QAbstractSlider::sliderChange(( ::QAbstractSlider::SliderChange)a0) : sliderChange(( ::QAbstractSlider::SliderChange)a0));
}

bool sipKRuler::sipProtectVirt_event(bool sipSelfWasArg, ::QEvent*a0)
{
    return (sipSelfWasArg ?  ::QAbstractSlider::event(a0) : event(a0));
}

void sipKRuler::sipProtectVirt_keyPressEvent(bool sipSelfWasArg, ::QKeyEvent*a0)
{
    (sipSelfWasArg ?  ::QAbstractSlider::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipKRuler::sipProtectVirt_timerEvent(bool sipSelfWasArg, ::QTimerEvent*a0)
{
    (sipSelfWasArg ?  ::QAbstractSlider::timerEvent(a0) : timerEvent(a0));
}

void sipKRuler::sipProtectVirt_wheelEvent(bool sipSelfWasArg, ::QWheelEvent*a0)
{
    (sipSelfWasArg ?  ::QAbstractSlider::wheelEvent(a0) : wheelEvent(a0));
}

void sipKRuler::sipProtectVirt_changeEvent(bool sipSelfWasArg, ::QEvent*a0)
{
    (sipSelfWasArg ?  ::QAbstractSlider::changeEvent(a0) : changeEvent(a0));
}

void sipKRuler::sipProtectVirt_paintEvent(bool sipSelfWasArg, ::QPaintEvent*a0)
{
    (sipSelfWasArg ?  ::KRuler::paintEvent(a0) : paintEvent(a0));
}


extern "C" {static PyObject *meth_KRuler_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
             ::QObject*sipRes = 0;

        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
            {
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
        {
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
            Q_ASSERT(pyqt5_get_signal_signature);
        }
        
        QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
        {
            sipRes = sipCpp->receivers(signal_signature.constData());
        }
        #else
        if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
        {
            sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
        }
        #endif
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(0, a0);
        }

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QChildEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QMetaMethod* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QMetaMethod* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_senderSignalIndex, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QMetaMethod* a0;
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_isSignalConnected, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QMouseEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_mousePressEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QMouseEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_mouseReleaseEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QMouseEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_mouseDoubleClickEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QMouseEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_mouseMoveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QKeyEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_keyReleaseEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QFocusEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_focusInEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QFocusEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_focusOutEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_enterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_enterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_enterEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_leaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_leaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_leaveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QMoveEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_moveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QResizeEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_resizeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_closeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_closeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QCloseEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QCloseEvent, &a0))
        {
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_closeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_contextMenuEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QContextMenuEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_contextMenuEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QTabletEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_tabletEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_actionEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_actionEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QActionEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QActionEvent, &a0))
        {
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_actionEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_dragEnterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_dragEnterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QDragEnterEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_dragEnterEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_dragMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QDragMoveEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_dragMoveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_dragLeaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QDragLeaveEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_dragLeaveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_dropEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_dropEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QDropEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QDropEvent, &a0))
        {
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_dropEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QShowEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QHideEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_hideEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPaintDevice::PaintDeviceMetric a0;
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_KRuler, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_metric, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_inputMethodEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_inputMethodEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QInputMethodEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_inputMethodEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_updateMicroFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_updateMicroFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            sipCpp->sipProtect_updateMicroFocus();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_updateMicroFocus, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
         ::WId a0def = 0;
         ::WId* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipKRuler *sipCpp;

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1bb", &sipSelf, sipType_KRuler, &sipCpp, sipType_quintptr,&a0, &a0State, &a1, &a2))
        {
            sipCpp->sipProtect_create(*a0,a1,a2);
            sipReleaseType(a0,sipType_quintptr,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_create, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_destroy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_destroy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipKRuler *sipCpp;

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_KRuler, &sipCpp, &a0, &a1))
        {
            sipCpp->sipProtect_destroy(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_destroy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_focusNextPrevChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_focusNextPrevChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_focusNextPrevChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_focusNextChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_focusNextChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusNextChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_focusNextChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_focusPreviousChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_focusPreviousChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusPreviousChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_focusPreviousChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_nativeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_nativeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QByteArray* a0;
        int a0State = 0;
        void* a1;
        long a2;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1v", &sipSelf, sipType_KRuler, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_nativeEvent(sipSelfWasArg,*a0,a1,&a2);
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipBuildResult(0,"(bl)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_nativeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_sharedPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_sharedPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
             ::QPainter*sipRes;

            sipRes = sipCpp->sipProtectVirt_sharedPainter(sipSelfWasArg);

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_sharedPainter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_initPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_initPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPainter* a0;
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QPainter, &a0))
        {
            sipCpp->sipProtectVirt_initPainter(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_initPainter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setRepeatAction(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_setRepeatAction(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
         ::QAbstractSlider::SliderAction a0;
        int a1 = 500;
        int a2 = 50;
        sipKRuler *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_thresholdTime,
            sipName_repeatTime,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|ii", &sipSelf, sipType_KRuler, &sipCpp, sipType_QAbstractSlider_SliderAction, &a0, &a1, &a2))
        {
            sipCpp->sipProtect_setRepeatAction(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setRepeatAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_repeatAction(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_repeatAction(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
             ::QAbstractSlider::SliderAction sipRes;

            sipRes = sipCpp->sipProtect_repeatAction();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QAbstractSlider_SliderAction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_repeatAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_sliderChange(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_sliderChange(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_KRuler, &sipCpp, sipType_QAbstractSlider_SliderChange, &a0))
        {
            sipCpp->sipProtectVirt_sliderChange(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_sliderChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_event, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QKeyEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_keyPressEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QTimerEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QWheelEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_wheelEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_changeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_changeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_changeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setMinValue(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setMinValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setMinValue(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setMinValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_minValue(PyObject *, PyObject *);}
static PyObject *meth_KRuler_minValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->minValue();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_minValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setMaxValue(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setMaxValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setMaxValue(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setMaxValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_maxValue(PyObject *, PyObject *);}
static PyObject *meth_KRuler_maxValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maxValue();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_maxValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setTinyMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setTinyMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setTinyMarkDistance(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setTinyMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_tinyMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_tinyMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->tinyMarkDistance();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_tinyMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setLittleMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setLittleMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setLittleMarkDistance(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setLittleMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_littleMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_littleMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->littleMarkDistance();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_littleMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setMediumMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setMediumMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setMediumMarkDistance(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setMediumMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_mediumMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_mediumMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->mediumMarkDistance();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_mediumMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setBigMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setBigMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setBigMarkDistance(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setBigMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_bigMarkDistance(PyObject *, PyObject *);}
static PyObject *meth_KRuler_bigMarkDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bigMarkDistance();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_bigMarkDistance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setShowTinyMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setShowTinyMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setShowTinyMarks(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setShowTinyMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showTinyMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_showTinyMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showTinyMarks();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showTinyMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setShowLittleMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setShowLittleMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setShowLittleMarks(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setShowLittleMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showLittleMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_showLittleMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showLittleMarks();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showLittleMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setShowMediumMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setShowMediumMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setShowMediumMarks(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setShowMediumMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showMediumMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_showMediumMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showMediumMarks();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showMediumMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setShowBigMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setShowBigMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setShowBigMarks(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setShowBigMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showBigMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_showBigMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showBigMarks();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showBigMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setShowEndMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setShowEndMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setShowEndMarks(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setShowEndMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showEndMarks(PyObject *, PyObject *);}
static PyObject *meth_KRuler_showEndMarks(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showEndMarks();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showEndMarks, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setShowPointer(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setShowPointer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setShowPointer(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setShowPointer, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showPointer(PyObject *, PyObject *);}
static PyObject *meth_KRuler_showPointer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showPointer();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showPointer, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setFrameStyle(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setFrameStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setFrameStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setFrameStyle, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setShowEndLabel(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setShowEndLabel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setShowEndLabel(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setShowEndLabel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_showEndLabel(PyObject *, PyObject *);}
static PyObject *meth_KRuler_showEndLabel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showEndLabel();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_showEndLabel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setEndLabel(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setEndLabel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KRuler, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setEndLabel(*a0);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setEndLabel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_endLabel(PyObject *, PyObject *);}
static PyObject *meth_KRuler_endLabel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
             ::QString*sipRes;

            sipRes = new  ::QString(sipCpp->endLabel());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_endLabel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setRulerMetricStyle(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setRulerMetricStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KRuler::MetricStyle a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KRuler, &sipCpp, sipType_KRuler_MetricStyle, &a0))
        {
            sipCpp->setRulerMetricStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setRulerMetricStyle, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setPixelPerMark(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setPixelPerMark(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        double a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setPixelPerMark(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setPixelPerMark, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_pixelPerMark(PyObject *, PyObject *);}
static PyObject *meth_KRuler_pixelPerMark(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            double sipRes;

            sipRes = sipCpp->pixelPerMark();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_pixelPerMark, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setLength(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setLength(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setLength, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_length(PyObject *, PyObject *);}
static PyObject *meth_KRuler_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->length();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_length, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setLengthFixed(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setLengthFixed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setLengthFixed(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setLengthFixed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_lengthFixed(PyObject *, PyObject *);}
static PyObject *meth_KRuler_lengthFixed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->lengthFixed();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_lengthFixed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_slideUp(PyObject *, PyObject *);}
static PyObject *meth_KRuler_slideUp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 1;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->slideUp(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_slideUp, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_slideDown(PyObject *, PyObject *);}
static PyObject *meth_KRuler_slideDown(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 1;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->slideDown(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_slideDown, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_setOffset(PyObject *, PyObject *);}
static PyObject *meth_KRuler_setOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->setOffset(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_setOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_offset(PyObject *, PyObject *);}
static PyObject *meth_KRuler_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->offset();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_endOffset(PyObject *, PyObject *);}
static PyObject *meth_KRuler_endOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRuler, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->endOffset();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_endOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_slotNewValue(PyObject *, PyObject *);}
static PyObject *meth_KRuler_slotNewValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->slotNewValue(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_slotNewValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_slotNewOffset(PyObject *, PyObject *);}
static PyObject *meth_KRuler_slotNewOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->slotNewOffset(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_slotNewOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_slotEndOffset(PyObject *, PyObject *);}
static PyObject *meth_KRuler_slotEndOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KRuler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRuler, &sipCpp, &a0))
        {
            sipCpp->slotEndOffset(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_slotEndOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRuler_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KRuler_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPaintEvent* a0;
        sipKRuler *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KRuler, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRuler, sipName_paintEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KRuler(void *, const sipTypeDef *);}
static void *cast_KRuler(void *sipCppV, const sipTypeDef *targetType)
{
     ::KRuler *sipCpp = reinterpret_cast< ::KRuler *>(sipCppV);

    if (targetType == sipType_QAbstractSlider)
        return static_cast< ::QAbstractSlider *>(sipCpp);

    if (targetType == sipType_QWidget)
        return static_cast< ::QWidget *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KRuler(void *, int);}
static void release_KRuler(void *sipCppV, int)
{
     ::KRuler *sipCpp = reinterpret_cast< ::KRuler *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_KRuler(sipSimpleWrapper *);}
static void dealloc_KRuler(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKRuler *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KRuler(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KRuler(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KRuler(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKRuler *sipCpp = 0;

    {
         ::QWidget* a0 = nullptr;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            sipCpp = new sipKRuler(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
         ::Qt::Orientation a0;
         ::QWidget* a1 = nullptr;
         ::Qt::WindowFlags a2def = Qt::WindowFlags();
         ::Qt::WindowFlags* a2 = &a2def;
        int a2State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E|JHJ1", sipType_Qt_Orientation, &a0, sipType_QWidget, &a1, sipOwner, sipType_Qt_WindowFlags, &a2, &a2State))
        {
            sipCpp = new sipKRuler(a0,a1,*a2);
            sipReleaseType(a2,sipType_Qt_WindowFlags,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
         ::Qt::Orientation a0;
        int a1;
         ::QWidget* a2 = nullptr;
         ::Qt::WindowFlags a3def = Qt::WindowFlags();
         ::Qt::WindowFlags* a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "Ei|JHJ1", sipType_Qt_Orientation, &a0, &a1, sipType_QWidget, &a2, sipOwner, sipType_Qt_WindowFlags, &a3, &a3State))
        {
            sipCpp = new sipKRuler(a0,a1,a2,*a3);
            sipReleaseType(a3,sipType_Qt_WindowFlags,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KRuler[] = {{3, 2, 1}};


static PyMethodDef methods_KRuler[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), (PyCFunction)meth_KRuler_actionEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_bigMarkDistance), meth_KRuler_bigMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), (PyCFunction)meth_KRuler_changeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_KRuler_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), (PyCFunction)meth_KRuler_closeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_KRuler_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), (PyCFunction)meth_KRuler_contextMenuEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_KRuler_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_KRuler_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_KRuler_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_KRuler_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), (PyCFunction)meth_KRuler_dragEnterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), (PyCFunction)meth_KRuler_dragLeaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), (PyCFunction)meth_KRuler_dragMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), (PyCFunction)meth_KRuler_dropEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endLabel), meth_KRuler_endLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endOffset), meth_KRuler_endOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), (PyCFunction)meth_KRuler_enterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_KRuler_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_KRuler_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), (PyCFunction)meth_KRuler_focusNextChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), (PyCFunction)meth_KRuler_focusNextPrevChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_KRuler_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), (PyCFunction)meth_KRuler_focusPreviousChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_KRuler_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initPainter), (PyCFunction)meth_KRuler_initPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), (PyCFunction)meth_KRuler_inputMethodEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_KRuler_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_KRuler_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_KRuler_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), (PyCFunction)meth_KRuler_leaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_KRuler_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lengthFixed), meth_KRuler_lengthFixed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_littleMarkDistance), meth_KRuler_littleMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxValue), meth_KRuler_maxValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mediumMarkDistance), meth_KRuler_mediumMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_KRuler_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_minValue), meth_KRuler_minValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_KRuler_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_KRuler_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_KRuler_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_KRuler_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_KRuler_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_nativeEvent), (PyCFunction)meth_KRuler_nativeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KRuler_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_KRuler_paintEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_pixelPerMark), meth_KRuler_pixelPerMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_KRuler_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_repeatAction), (PyCFunction)meth_KRuler_repeatAction, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_KRuler_resizeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_KRuler_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_KRuler_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBigMarkDistance), meth_KRuler_setBigMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEndLabel), meth_KRuler_setEndLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFrameStyle), meth_KRuler_setFrameStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLength), meth_KRuler_setLength, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLengthFixed), meth_KRuler_setLengthFixed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLittleMarkDistance), meth_KRuler_setLittleMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxValue), meth_KRuler_setMaxValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMediumMarkDistance), meth_KRuler_setMediumMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMinValue), meth_KRuler_setMinValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOffset), meth_KRuler_setOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPixelPerMark), meth_KRuler_setPixelPerMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRepeatAction), (PyCFunction)meth_KRuler_setRepeatAction, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setRulerMetricStyle), meth_KRuler_setRulerMetricStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowBigMarks), meth_KRuler_setShowBigMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowEndLabel), meth_KRuler_setShowEndLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowEndMarks), meth_KRuler_setShowEndMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowLittleMarks), meth_KRuler_setShowLittleMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowMediumMarks), meth_KRuler_setShowMediumMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowPointer), meth_KRuler_setShowPointer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowTinyMarks), meth_KRuler_setShowTinyMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTinyMarkDistance), meth_KRuler_setTinyMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sharedPainter), (PyCFunction)meth_KRuler_sharedPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showBigMarks), meth_KRuler_showBigMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEndLabel), meth_KRuler_showEndLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEndMarks), meth_KRuler_showEndMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_KRuler_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showLittleMarks), meth_KRuler_showLittleMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showMediumMarks), meth_KRuler_showMediumMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showPointer), meth_KRuler_showPointer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showTinyMarks), meth_KRuler_showTinyMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slideDown), meth_KRuler_slideDown, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slideUp), meth_KRuler_slideUp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sliderChange), (PyCFunction)meth_KRuler_sliderChange, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_slotEndOffset), meth_KRuler_slotEndOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotNewOffset), meth_KRuler_slotNewOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotNewValue), meth_KRuler_slotNewValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_KRuler_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_KRuler_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tinyMarkDistance), meth_KRuler_tinyMarkDistance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), (PyCFunction)meth_KRuler_updateMicroFocus, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_KRuler_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_KRuler[] = {
    {sipName_Centimetres, static_cast<int>( ::KRuler::Centimetres), 78},
    {sipName_Custom, static_cast<int>( ::KRuler::Custom), 78},
    {sipName_Inch, static_cast<int>( ::KRuler::Inch), 78},
    {sipName_Metres, static_cast<int>( ::KRuler::Metres), 78},
    {sipName_Millimetres, static_cast<int>( ::KRuler::Millimetres), 78},
    {sipName_Pixel, static_cast<int>( ::KRuler::Pixel), 78},
};


static pyqt5ClassPluginDef plugin_KRuler = {
    & ::KRuler::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_KWidgetsAddons_KRuler = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KRuler,
        {0},
        &plugin_KRuler
    },
    {
        sipNameNr_KRuler,
        {0, 0, 1},
        93, methods_KRuler,
        6, enummembers_KRuler,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KRuler,
    0,
    init_type_KRuler,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KRuler,
    0,
    0,
    0,
    release_KRuler,
    cast_KRuler,
    0,
    0,
    0,
    0,
    0,
    0
};
