//Auto-generated by kalyptus. DO NOT EDIT.
#include <smoke.h>
#include <qt_smoke.h>
#include <qpoint.h>
#include <qevent.h>

class x_QTabletEvent : public QTabletEvent {
public:
    static void x_0(Smoke::Stack x) {
	x[0].s_enum = (long)QTabletEvent::NoDevice;
    }
    static void x_1(Smoke::Stack x) {
	x[0].s_enum = (long)QTabletEvent::Puck;
    }
    static void x_2(Smoke::Stack x) {
	x[0].s_enum = (long)QTabletEvent::Stylus;
    }
    static void x_3(Smoke::Stack x) {
	x[0].s_enum = (long)QTabletEvent::Eraser;
    }
    static void x_4(Smoke::Stack x) {
	// QTabletEvent(QEvent::Type, const QPoint&, const QPoint&, int, int, int, int, const QPair<int, int>&)
	x_QTabletEvent* xret = new x_QTabletEvent((QEvent::Type)x[1].s_enum,*(const QPoint *)x[2].s_class,*(const QPoint *)x[3].s_class,(int)x[4].s_int,(int)x[5].s_int,(int)x[6].s_int,(int)x[7].s_int,*(const QPair<int, int> *)x[8].s_voidp);
	x[0].s_class = (void*)xret;
    }
    x_QTabletEvent(QEvent::Type x1, const QPoint& x2, const QPoint& x3, int x4, int x5, int x6, int x7, const QPair<int, int>& x8) : QTabletEvent(x1, x2, x3, x4, x5, x6, x7, x8) {
    }
    static void x_5(Smoke::Stack x) {
	// QTabletEvent(const QPoint&, const QPoint&, int, int, int, int, const QPair<int, int>&)
	x_QTabletEvent* xret = new x_QTabletEvent(*(const QPoint *)x[1].s_class,*(const QPoint *)x[2].s_class,(int)x[3].s_int,(int)x[4].s_int,(int)x[5].s_int,(int)x[6].s_int,*(const QPair<int, int> *)x[7].s_voidp);
	x[0].s_class = (void*)xret;
    }
    x_QTabletEvent(const QPoint& x1, const QPoint& x2, int x3, int x4, int x5, int x6, const QPair<int, int>& x7) : QTabletEvent(x1, x2, x3, x4, x5, x6, x7) {
    }
    void x_6(Smoke::Stack x) const {
	// pressure()
	int xret = this->QTabletEvent::pressure();
	x[0].s_int = xret;
    }
    void x_7(Smoke::Stack x) const {
	// xTilt()
	int xret = this->QTabletEvent::xTilt();
	x[0].s_int = xret;
    }
    void x_8(Smoke::Stack x) const {
	// yTilt()
	int xret = this->QTabletEvent::yTilt();
	x[0].s_int = xret;
    }
    void x_9(Smoke::Stack x) const {
	// pos()
	const QPoint& xret = this->QTabletEvent::pos();
	x[0].s_class = (void*)&xret;
    }
    void x_10(Smoke::Stack x) const {
	// globalPos()
	const QPoint& xret = this->QTabletEvent::globalPos();
	x[0].s_class = (void*)&xret;
    }
    void x_11(Smoke::Stack x) const {
	// x()
	int xret = this->QTabletEvent::x();
	x[0].s_int = xret;
    }
    void x_12(Smoke::Stack x) const {
	// y()
	int xret = this->QTabletEvent::y();
	x[0].s_int = xret;
    }
    void x_13(Smoke::Stack x) const {
	// globalX()
	int xret = this->QTabletEvent::globalX();
	x[0].s_int = xret;
    }
    void x_14(Smoke::Stack x) const {
	// globalY()
	int xret = this->QTabletEvent::globalY();
	x[0].s_int = xret;
    }
    void x_15(Smoke::Stack x) const {
	// device()
	QTabletEvent::TabletDevice xret = this->QTabletEvent::device();
	x[0].s_enum = xret;
    }
    void x_16(Smoke::Stack x) const {
	// isAccepted()
	int xret = this->QTabletEvent::isAccepted();
	x[0].s_int = xret;
    }
    void x_17(Smoke::Stack x) {
	// accept()
	this->QTabletEvent::accept();
	(void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
	// ignore()
	this->QTabletEvent::ignore();
	(void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
	// uniqueId()
	QPair<int,int> xret = this->QTabletEvent::uniqueId();
	x[0].s_voidp = (void*)new QPair<int,int>(xret);
    }
    static void x_20(Smoke::Stack x) {
	// QTabletEvent(const QTabletEvent&)
	x_QTabletEvent* xret = new x_QTabletEvent(*(const QTabletEvent *)x[1].s_class);
	x[0].s_class = (void*)xret;
    }
    x_QTabletEvent(const QTabletEvent& x1) : QTabletEvent(x1) {
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
	switch(xtype) {
	  case 651: //QTabletEvent::TabletDevice
	    switch(xop) {
	      case Smoke::EnumNew:
		xdata = (void*)new QTabletEvent::TabletDevice;
		break;
	      case Smoke::EnumDelete:
		delete (QTabletEvent::TabletDevice*)xdata;
		break;
	      case Smoke::EnumFromLong:
		*(QTabletEvent::TabletDevice*)xdata = (QTabletEvent::TabletDevice)xvalue;
		break;
	      case Smoke::EnumToLong:
		xvalue = (long)*(QTabletEvent::TabletDevice*)xdata;
		break;
	    }
	    break;
	}
    }
    ~x_QTabletEvent() { qt_Smoke->binding->deleted(317, (void*)this); }
};
void xenum_QTabletEvent(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_QTabletEvent::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_QTabletEvent(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QTabletEvent *xself = (x_QTabletEvent*)obj;
    switch(xi) {
	case 0: x_QTabletEvent::x_0(args);	break;
	case 1: x_QTabletEvent::x_1(args);	break;
	case 2: x_QTabletEvent::x_2(args);	break;
	case 3: x_QTabletEvent::x_3(args);	break;
	case 4: x_QTabletEvent::x_4(args);	break;
	case 5: x_QTabletEvent::x_5(args);	break;
	case 6: xself->x_6(args);	break;
	case 7: xself->x_7(args);	break;
	case 8: xself->x_8(args);	break;
	case 9: xself->x_9(args);	break;
	case 10: xself->x_10(args);	break;
	case 11: xself->x_11(args);	break;
	case 12: xself->x_12(args);	break;
	case 13: xself->x_13(args);	break;
	case 14: xself->x_14(args);	break;
	case 15: xself->x_15(args);	break;
	case 16: xself->x_16(args);	break;
	case 17: xself->x_17(args);	break;
	case 18: xself->x_18(args);	break;
	case 19: xself->x_19(args);	break;
	case 20: x_QTabletEvent::x_20(args);	break;
	case 21: delete (QTabletEvent*)xself;	break;
    }
}
